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/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 d73bc480..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,9 +59,14 @@ 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)' @@ -46,14 +74,39 @@ steps: 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/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 index 0fb7ed67..b753cb03 100644 --- a/docs/AccountDetail.md +++ b/docs/AccountDetail.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **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 index adc5355f..1b6cef88 100644 --- a/docs/AccountDetailBase.md +++ b/docs/AccountDetailBase.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **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/AccountsApi.md b/docs/AccountsApi.md index 685117e2..b1fe833b 100644 --- a/docs/AccountsApi.md +++ b/docs/AccountsApi.md @@ -4,28 +4,27 @@ 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 | Answer a signup question -[**ChangePassword**](AccountsApi.md#changepassword) | **PUT** /api/v1.0/accounts/password | Change password -[**ChangePasswordWithPin**](AccountsApi.md#changepasswordwithpin) | **PUT** /api/v1.0/accounts/password/pin | Change password -[**CreateAccount**](AccountsApi.md#createaccount) | **POST** /api/v1.0/accounts | Create account with email address and store name -[**GetAccountDetails**](AccountsApi.md#getaccountdetails) | **GET** /api/v1.0/accounts | Gets the current account detail -[**GetLocalisedTimeZones**](AccountsApi.md#getlocalisedtimezones) | **GET** /api/v1.0/accounts/timezones | [PRIVATE API] Get timezones localised to users language -[**Login**](AccountsApi.md#login) | **POST** /api/v1.0/accounts/login | Login with username and password -[**LoginWithPin**](AccountsApi.md#loginwithpin) | **POST** /api/v1.0/accounts/login/pin | Login with username and password -[**Logout**](AccountsApi.md#logout) | **POST** /api/v1.0/accounts/logout | Log out. It removes Flipdish authorization Cookie. -[**PasswordResetWithToken**](AccountsApi.md#passwordresetwithtoken) | **POST** /api/v1.0/accounts/password | Reset password with token. -[**RequestLoginPin**](AccountsApi.md#requestloginpin) | **POST** /api/v1.0/accounts/pin | Request login PIN. The server sends the PIN to the email address. -[**RequestPasswordReset**](AccountsApi.md#requestpasswordreset) | **POST** /api/v1.0/accounts/passwordreset | Request password reset. Flipdish system will send a token via email. -[**SendPinForPasswordReset**](AccountsApi.md#sendpinforpasswordreset) | **POST** /api/v1.0/accounts/password/resetpin | Request Password Reset PIN. The server sends the PIN to the email address. -[**SkipSignupStep**](AccountsApi.md#skipsignupstep) | **POST** /api/v1.0/accounts/signupstep/{signupStepAction}/skip | Skip a signup question -[**UpdateAccount**](AccountsApi.md#updateaccount) | **PUT** /api/v1.0/accounts | Update account with name and language +[**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) -Answer a signup question + ### Example ```csharp @@ -45,12 +44,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) @@ -66,8 +64,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **signupStepAction** | **string**| Signup step action | - **answerId** | **int?**| Identifier of the answer | + **signupStepAction** | **string**| | + **answerId** | **int?**| | ### Return type @@ -88,7 +86,7 @@ void (empty response body) # **ChangePassword** > void ChangePassword (ChangePasswordModel changePasswordModel) -Change password + ### Example ```csharp @@ -108,11 +106,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountsApi(); - var changePasswordModel = new ChangePasswordModel(); // ChangePasswordModel | Change password model + var changePasswordModel = new ChangePasswordModel(); // ChangePasswordModel | try { - // Change password apiInstance.ChangePassword(changePasswordModel); } catch (Exception e) @@ -128,7 +125,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **changePasswordModel** | [**ChangePasswordModel**](ChangePasswordModel.md)| Change password model | + **changePasswordModel** | [**ChangePasswordModel**](ChangePasswordModel.md)| | ### Return type @@ -145,11 +142,11 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **ChangePasswordWithPin** -> void ChangePasswordWithPin (SetPasswordWithPinModel changePasswordModel) + +# **CreateAccount** +> void CreateAccount (CreateAccountModel createAccountModel) + -Change password ### Example ```csharp @@ -161,7 +158,7 @@ using Flipdish.Model; namespace Example { - public class ChangePasswordWithPinExample + public class CreateAccountExample { public void main() { @@ -169,16 +166,15 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountsApi(); - var changePasswordModel = new SetPasswordWithPinModel(); // SetPasswordWithPinModel | Change password model + var createAccountModel = new CreateAccountModel(); // CreateAccountModel | try { - // Change password - apiInstance.ChangePasswordWithPin(changePasswordModel); + apiInstance.CreateAccount(createAccountModel); } catch (Exception e) { - Debug.Print("Exception when calling AccountsApi.ChangePasswordWithPin: " + e.Message ); + Debug.Print("Exception when calling AccountsApi.CreateAccount: " + e.Message ); } } } @@ -189,7 +185,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **changePasswordModel** | [**SetPasswordWithPinModel**](SetPasswordWithPinModel.md)| Change password model | + **createAccountModel** | [**CreateAccountModel**](CreateAccountModel.md)| | ### Return type @@ -206,11 +202,11 @@ void (empty response body) [[Back to top]](#) [[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) + +# **CreateBasicAccount** +> string CreateBasicAccount (CreateBasicAccountModel basicAccountModel) + -Create account with email address and store name ### Example ```csharp @@ -222,7 +218,7 @@ using Flipdish.Model; namespace Example { - public class CreateAccountExample + public class CreateBasicAccountExample { public void main() { @@ -230,16 +226,16 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountsApi(); - var createAccountModel = new CreateAccountModel(); // CreateAccountModel | Create account model + var basicAccountModel = new CreateBasicAccountModel(); // CreateBasicAccountModel | try { - // Create account with email address and store name - apiInstance.CreateAccount(createAccountModel); + string result = apiInstance.CreateBasicAccount(basicAccountModel); + Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling AccountsApi.CreateAccount: " + e.Message ); + Debug.Print("Exception when calling AccountsApi.CreateBasicAccount: " + e.Message ); } } } @@ -250,11 +246,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **createAccountModel** | [**CreateAccountModel**](CreateAccountModel.md)| Create account model | + **basicAccountModel** | [**CreateBasicAccountModel**](CreateBasicAccountModel.md)| | ### Return type -void (empty response body) +**string** ### Authorization @@ -271,7 +267,7 @@ void (empty response body) # **GetAccountDetails** > RestApiResultAccountDetail GetAccountDetails () -Gets the current account detail + ### Example ```csharp @@ -294,7 +290,6 @@ namespace Example try { - // Gets the current account detail RestApiResultAccountDetail result = apiInstance.GetAccountDetails(); Debug.WriteLine(result); } @@ -329,7 +324,7 @@ This endpoint does not need any parameter. # **GetLocalisedTimeZones** > RestApiArrayResultLocalisedTimeZone GetLocalisedTimeZones () -[PRIVATE API] Get timezones localised to users language + ### Example ```csharp @@ -352,7 +347,6 @@ namespace Example try { - // [PRIVATE API] Get timezones localised to users language RestApiArrayResultLocalisedTimeZone result = apiInstance.GetLocalisedTimeZones(); Debug.WriteLine(result); } @@ -387,7 +381,7 @@ This endpoint does not need any parameter. # **Login** > void Login (LoginModel loginModel) -Login with username and password + ### Example ```csharp @@ -407,11 +401,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountsApi(); - var loginModel = new LoginModel(); // LoginModel | Login model + var loginModel = new LoginModel(); // LoginModel | try { - // Login with username and password apiInstance.Login(loginModel); } catch (Exception e) @@ -427,7 +420,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **loginModel** | [**LoginModel**](LoginModel.md)| Login model | + **loginModel** | [**LoginModel**](LoginModel.md)| | ### Return type @@ -444,11 +437,11 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **LoginWithPin** -> void LoginWithPin (LoginWithPinModel loginModel) + +# **LoginSso** +> void LoginSso () + -Login with username and password ### Example ```csharp @@ -460,7 +453,7 @@ using Flipdish.Model; namespace Example { - public class LoginWithPinExample + public class LoginSsoExample { public void main() { @@ -468,16 +461,14 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountsApi(); - var loginModel = new LoginWithPinModel(); // LoginWithPinModel | Login model try { - // Login with username and password - apiInstance.LoginWithPin(loginModel); + apiInstance.LoginSso(); } catch (Exception e) { - Debug.Print("Exception when calling AccountsApi.LoginWithPin: " + e.Message ); + Debug.Print("Exception when calling AccountsApi.LoginSso: " + e.Message ); } } } @@ -485,10 +476,7 @@ namespace Example ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **loginModel** | [**LoginWithPinModel**](LoginWithPinModel.md)| Login model | +This endpoint does not need any parameter. ### Return type @@ -500,7 +488,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Content-Type**: Not defined - **Accept**: application/json, text/json, application/xml, text/xml [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -509,7 +497,7 @@ void (empty response body) # **Logout** > void Logout () -Log out. It removes Flipdish authorization Cookie. + ### Example ```csharp @@ -532,7 +520,6 @@ namespace Example try { - // Log out. It removes Flipdish authorization Cookie. apiInstance.Logout(); } catch (Exception e) @@ -566,7 +553,7 @@ void (empty response body) # **PasswordResetWithToken** > void PasswordResetWithToken (PasswordResetModel passwordResetModel) -Reset password with token. + ### Example ```csharp @@ -586,11 +573,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountsApi(); - var passwordResetModel = new PasswordResetModel(); // PasswordResetModel | Password reset model + var passwordResetModel = new PasswordResetModel(); // PasswordResetModel | try { - // Reset password with token. apiInstance.PasswordResetWithToken(passwordResetModel); } catch (Exception e) @@ -606,7 +592,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **passwordResetModel** | [**PasswordResetModel**](PasswordResetModel.md)| Password reset model | + **passwordResetModel** | [**PasswordResetModel**](PasswordResetModel.md)| | ### Return type @@ -623,11 +609,11 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **RequestLoginPin** -> RequestLoginPinResposne RequestLoginPin (RequestLoginPinModel requestLoginPinRequest) + +# **RecaptchaValidate** +> void RecaptchaValidate (string token) + -Request login PIN. The server sends the PIN to the email address. ### Example ```csharp @@ -639,7 +625,7 @@ using Flipdish.Model; namespace Example { - public class RequestLoginPinExample + public class RecaptchaValidateExample { public void main() { @@ -647,17 +633,15 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountsApi(); - var requestLoginPinRequest = new RequestLoginPinModel(); // RequestLoginPinModel | Request login PIN request + var token = token_example; // string | try { - // Request login PIN. The server sends the PIN to the email address. - RequestLoginPinResposne result = apiInstance.RequestLoginPin(requestLoginPinRequest); - Debug.WriteLine(result); + apiInstance.RecaptchaValidate(token); } catch (Exception e) { - Debug.Print("Exception when calling AccountsApi.RequestLoginPin: " + e.Message ); + Debug.Print("Exception when calling AccountsApi.RecaptchaValidate: " + e.Message ); } } } @@ -668,11 +652,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestLoginPinRequest** | [**RequestLoginPinModel**](RequestLoginPinModel.md)| Request login PIN request | + **token** | **string**| | ### Return type -[**RequestLoginPinResposne**](RequestLoginPinResposne.md) +void (empty response body) ### Authorization @@ -680,7 +664,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Content-Type**: Not defined - **Accept**: application/json, text/json, application/xml, text/xml [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -689,7 +673,7 @@ Name | Type | Description | Notes # **RequestPasswordReset** > void RequestPasswordReset (RequestPasswordResetModel requestPasswordResetModel) -Request password reset. Flipdish system will send a token via email. + ### Example ```csharp @@ -709,11 +693,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountsApi(); - var requestPasswordResetModel = new RequestPasswordResetModel(); // RequestPasswordResetModel | Request password reset model + var requestPasswordResetModel = new RequestPasswordResetModel(); // RequestPasswordResetModel | try { - // Request password reset. Flipdish system will send a token via email. apiInstance.RequestPasswordReset(requestPasswordResetModel); } catch (Exception e) @@ -729,7 +712,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requestPasswordResetModel** | [**RequestPasswordResetModel**](RequestPasswordResetModel.md)| Request password reset model | + **requestPasswordResetModel** | [**RequestPasswordResetModel**](RequestPasswordResetModel.md)| | ### Return type @@ -746,73 +729,11 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **SendPinForPasswordReset** -> RequestPasswordResetPinResponse SendPinForPasswordReset (RequestPasswordResetModel requestPasswordResetRequest) - -Request Password Reset PIN. The server sends the PIN to the email address. - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class SendPinForPasswordResetExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new AccountsApi(); - var requestPasswordResetRequest = new RequestPasswordResetModel(); // RequestPasswordResetModel | - - try - { - // Request Password Reset PIN. The server sends the PIN to the email address. - RequestPasswordResetPinResponse result = apiInstance.SendPinForPasswordReset(requestPasswordResetRequest); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling AccountsApi.SendPinForPasswordReset: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **requestPasswordResetRequest** | [**RequestPasswordResetModel**](RequestPasswordResetModel.md)| | - -### Return type - -[**RequestPasswordResetPinResponse**](RequestPasswordResetPinResponse.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) - # **SkipSignupStep** > void SkipSignupStep (string signupStepAction) -Skip a signup question + ### Example ```csharp @@ -832,11 +753,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountsApi(); - var signupStepAction = signupStepAction_example; // string | Signup step action + var signupStepAction = signupStepAction_example; // string | try { - // Skip a signup question apiInstance.SkipSignupStep(signupStepAction); } catch (Exception e) @@ -852,7 +772,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **signupStepAction** | **string**| Signup step action | + **signupStepAction** | **string**| | ### Return type @@ -873,7 +793,7 @@ void (empty response body) # **UpdateAccount** > void UpdateAccount (AccountDetailBase updateAccountModel) -Update account with name and language + ### Example ```csharp @@ -893,11 +813,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AccountsApi(); - var updateAccountModel = new AccountDetailBase(); // AccountDetailBase | Update account model + var updateAccountModel = new AccountDetailBase(); // AccountDetailBase | try { - // Update account with name and language apiInstance.UpdateAccount(updateAccountModel); } catch (Exception e) @@ -913,7 +832,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **updateAccountModel** | [**AccountDetailBase**](AccountDetailBase.md)| Update account model | + **updateAccountModel** | [**AccountDetailBase**](AccountDetailBase.md)| | ### Return type diff --git a/docs/AddressApi.md b/docs/AddressApi.md index 19d7c989..58b1d878 100644 --- a/docs/AddressApi.md +++ b/docs/AddressApi.md @@ -4,17 +4,79 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**FormByApp**](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. -[**FormByCountry**](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. -[**FormatGoogleAddress**](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. -[**GetCountries**](AddressApi.md#getcountries) | **GET** /api/v1.0/address/countries | Retuns a list of localised countries +[**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) -Provides a dyamic form definition based for the country of the given appId, with labels localized using the provided language. + ### Example ```csharp @@ -34,12 +96,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AddressApi(); - var appId = appId_example; // string | Application (WhiteLabel) Id (WhiteLabelId or AppNameId). - var language = language_example; // string | (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + var appId = appId_example; // string | + var language = language_example; // string | (optional) try { - // Provides a dyamic form definition based for the country of the given appId, with labels localized using the provided language. RestApiResultAddressFormResponse result = apiInstance.FormByApp(appId, language); Debug.WriteLine(result); } @@ -56,8 +117,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application (WhiteLabel) Id (WhiteLabelId or AppNameId). | - **language** | **string**| (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. | [optional] + **appId** | **string**| | + **language** | **string**| | [optional] ### Return type @@ -78,7 +139,7 @@ Name | Type | Description | Notes # **FormByCountry** > RestApiResultAddressFormResponse FormByCountry (string countryCode, string language = null) -Provides a dyamic form definition for the given country code, with labels localized using the provided language. + ### Example ```csharp @@ -98,12 +159,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AddressApi(); - var countryCode = countryCode_example; // string | The 2 letter ISO country code, e.g.: IE. - var language = language_example; // string | (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + var countryCode = countryCode_example; // string | + var language = language_example; // string | (optional) try { - // Provides a dyamic form definition for the given country code, with labels localized using the provided language. RestApiResultAddressFormResponse result = apiInstance.FormByCountry(countryCode, language); Debug.WriteLine(result); } @@ -120,8 +180,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **countryCode** | **string**| The 2 letter ISO country code, e.g.: IE. | - **language** | **string**| (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. | [optional] + **countryCode** | **string**| | + **language** | **string**| | [optional] ### Return type @@ -142,7 +202,7 @@ Name | Type | Description | Notes # **FormatGoogleAddress** > RestApiResultAddressFormResponse FormatGoogleAddress (GoogleAddress googleAddress, string language = null) -Maps a Google Address Object to the values of the dynamic form associated with the address country and returns the dynamic form. + ### Example ```csharp @@ -162,12 +222,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AddressApi(); - var googleAddress = new GoogleAddress(); // GoogleAddress | A Google address object, as it is retuned from the maps API. - var language = language_example; // string | (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + var googleAddress = new GoogleAddress(); // GoogleAddress | + var language = language_example; // string | (optional) try { - // Maps a Google Address Object to the values of the dynamic form associated with the address country and returns the dynamic form. RestApiResultAddressFormResponse result = apiInstance.FormatGoogleAddress(googleAddress, language); Debug.WriteLine(result); } @@ -184,8 +243,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **googleAddress** | [**GoogleAddress**](GoogleAddress.md)| A Google address object, as it is retuned from the maps API. | - **language** | **string**| (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. | [optional] + **googleAddress** | [**GoogleAddress**](GoogleAddress.md)| | + **language** | **string**| | [optional] ### Return type @@ -206,7 +265,7 @@ Name | Type | Description | Notes # **GetCountries** > RestApiResultCountryFormResponse GetCountries (string language = null) -Retuns a list of localised countries + ### Example ```csharp @@ -230,7 +289,6 @@ namespace Example try { - // Retuns a list of localised countries RestApiResultCountryFormResponse result = apiInstance.GetCountries(language); Debug.WriteLine(result); } diff --git a/docs/Cart.md b/docs/Allergen.md similarity index 51% rename from docs/Cart.md rename to docs/Allergen.md index 99ae79b1..81a32c73 100644 --- a/docs/Cart.md +++ b/docs/Allergen.md @@ -1,11 +1,11 @@ -# Flipdish.Model.Cart +# Flipdish.Model.Allergen ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LineItems** | [**List<LineItem>**](LineItem.md) | Line items from the cart | [optional] -**CartAmount** | [**Price**](Price.md) | Total cart price | [optional] -**Tip** | [**Price**](Price.md) | Total tip amount | [optional] +**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 index 95006812..5de05884 100644 --- a/docs/AnalyticsClientEvent.md +++ b/docs/AnalyticsClientEvent.md @@ -14,7 +14,10 @@ Name | Type | Description | Notes **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 index 25b7f519..54f281b6 100644 --- a/docs/ApmApi.md +++ b/docs/ApmApi.md @@ -4,19 +4,19 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetApmStatus**](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 -[**GetBasicStatistics**](ApmApi.md#getbasicstatistics) | **GET** /api/v1.0/{appId}/apm/statistics | [PRIVATE API] Get Basic Statistics -[**GetCalendarWeekStatistics**](ApmApi.md#getcalendarweekstatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calendar | [PRIVATE API] Get Calendar statistics -[**GetCallsStatistics**](ApmApi.md#getcallsstatistics) | **GET** /api/v1.0/{appId}/apm/statistics/calls/{aggregateDataBy} | [PRIVATE API] Get Calls Statistics -[**GetOrderStatistics**](ApmApi.md#getorderstatistics) | **GET** /api/v1.0/{appId}/apm/statistics/orders/{aggregateDataBy} | [PRIVATE API] Get Order Statistics (Value of Orders) -[**GetPaginatedCallList**](ApmApi.md#getpaginatedcalllist) | **GET** /api/v1.0/{appId}/apm/calls | [PRIVATE API] Get paginated APM call list +[**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) -[PRIVATE API] Returns true if APM is enabled on at least one store in an application + ### Example ```csharp @@ -36,11 +36,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ApmApi(); - var appId = appId_example; // string | App Id + var appId = appId_example; // string | try { - // [PRIVATE API] Returns true if APM is enabled on at least one store in an application RestApiResultApmStatus result = apiInstance.GetApmStatus(appId); Debug.WriteLine(result); } @@ -57,7 +56,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Id | + **appId** | **string**| | ### Return type @@ -78,7 +77,7 @@ Name | Type | Description | Notes # **GetBasicStatistics** > RestApiResultApmStatistics GetBasicStatistics (string appId, List storeId = null) -[PRIVATE API] Get Basic Statistics + ### Example ```csharp @@ -98,12 +97,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ApmApi(); - var appId = appId_example; // string | App Id - var storeId = new List(); // List | List of stores to search by (optional) + var appId = appId_example; // string | + var storeId = new List(); // List | (optional) try { - // [PRIVATE API] Get Basic Statistics RestApiResultApmStatistics result = apiInstance.GetBasicStatistics(appId, storeId); Debug.WriteLine(result); } @@ -120,8 +118,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Id | - **storeId** | [**List<int?>**](int?.md)| List of stores to search by | [optional] + **appId** | **string**| | + **storeId** | [**List<int?>**](int?.md)| | [optional] ### Return type @@ -142,7 +140,7 @@ Name | Type | Description | Notes # **GetCalendarWeekStatistics** > RestApiArrayResultApmHourlyDataPoint GetCalendarWeekStatistics (string appId, List storeId = null) -[PRIVATE API] Get Calendar statistics + ### Example ```csharp @@ -162,12 +160,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ApmApi(); - var appId = appId_example; // string | App Id - var storeId = new List(); // List | List of stores to search by (optional) + var appId = appId_example; // string | + var storeId = new List(); // List | (optional) try { - // [PRIVATE API] Get Calendar statistics RestApiArrayResultApmHourlyDataPoint result = apiInstance.GetCalendarWeekStatistics(appId, storeId); Debug.WriteLine(result); } @@ -184,8 +181,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Id | - **storeId** | [**List<int?>**](int?.md)| List of stores to search by | [optional] + **appId** | **string**| | + **storeId** | [**List<int?>**](int?.md)| | [optional] ### Return type @@ -206,7 +203,7 @@ Name | Type | Description | Notes # **GetCallsStatistics** > RestApiArrayResultApmDataPoint GetCallsStatistics (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) -[PRIVATE API] Get Calls Statistics + ### Example ```csharp @@ -226,14 +223,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ApmApi(); - var appId = appId_example; // string | App Id - var aggregateDataBy = aggregateDataBy_example; // string | Aggregate data by day \\ week - var dataPointLimit = 56; // int? | Amount of data points per request (optional) - var storeId = new List(); // List | List of stores to search by (optional) + var appId = appId_example; // string | + var aggregateDataBy = aggregateDataBy_example; // string | + var dataPointLimit = 56; // int? | (optional) + var storeId = new List(); // List | (optional) try { - // [PRIVATE API] Get Calls Statistics RestApiArrayResultApmDataPoint result = apiInstance.GetCallsStatistics(appId, aggregateDataBy, dataPointLimit, storeId); Debug.WriteLine(result); } @@ -250,10 +246,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Id | - **aggregateDataBy** | **string**| Aggregate data by day \\ week | - **dataPointLimit** | **int?**| Amount of data points per request | [optional] - **storeId** | [**List<int?>**](int?.md)| List of stores to search by | [optional] + **appId** | **string**| | + **aggregateDataBy** | **string**| | + **dataPointLimit** | **int?**| | [optional] + **storeId** | [**List<int?>**](int?.md)| | [optional] ### Return type @@ -274,7 +270,7 @@ Name | Type | Description | Notes # **GetOrderStatistics** > RestApiArrayResultApmCurrencyDataPoint GetOrderStatistics (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) -[PRIVATE API] Get Order Statistics (Value of Orders) + ### Example ```csharp @@ -294,14 +290,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ApmApi(); - var appId = appId_example; // string | App Id - var aggregateDataBy = aggregateDataBy_example; // string | Aggregate data by day \\ week - var dataPointLimit = 56; // int? | Amount of data points per request (optional) - var storeId = new List(); // List | List of stores to search by (optional) + var appId = appId_example; // string | + var aggregateDataBy = aggregateDataBy_example; // string | + var dataPointLimit = 56; // int? | (optional) + var storeId = new List(); // List | (optional) try { - // [PRIVATE API] Get Order Statistics (Value of Orders) RestApiArrayResultApmCurrencyDataPoint result = apiInstance.GetOrderStatistics(appId, aggregateDataBy, dataPointLimit, storeId); Debug.WriteLine(result); } @@ -318,10 +313,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Id | - **aggregateDataBy** | **string**| Aggregate data by day \\ week | - **dataPointLimit** | **int?**| Amount of data points per request | [optional] - **storeId** | [**List<int?>**](int?.md)| List of stores to search by | [optional] + **appId** | **string**| | + **aggregateDataBy** | **string**| | + **dataPointLimit** | **int?**| | [optional] + **storeId** | [**List<int?>**](int?.md)| | [optional] ### Return type @@ -342,7 +337,7 @@ Name | Type | Description | Notes # **GetPaginatedCallList** > RestApiPaginationResultPhoneCall GetPaginatedCallList (string appId, int? page = null, int? limit = null, List storeId = null) -[PRIVATE API] Get paginated APM call list + ### Example ```csharp @@ -362,14 +357,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ApmApi(); - var appId = appId_example; // string | App Id - var page = 56; // int? | Requested page index (optional) - var limit = 56; // int? | Requested page limit (optional) - var storeId = new List(); // List | List of stores to search by (optional) + var appId = appId_example; // string | + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + var storeId = new List(); // List | (optional) try { - // [PRIVATE API] Get paginated APM call list RestApiPaginationResultPhoneCall result = apiInstance.GetPaginatedCallList(appId, page, limit, storeId); Debug.WriteLine(result); } @@ -386,10 +380,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Id | - **page** | **int?**| Requested page index | [optional] - **limit** | **int?**| Requested page limit | [optional] - **storeId** | [**List<int?>**](int?.md)| List of stores to search by | [optional] + **appId** | **string**| | + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + **storeId** | [**List<int?>**](int?.md)| | [optional] ### Return type diff --git a/docs/App.md b/docs/App.md index df1f3927..84403d2f 100644 --- a/docs/App.md +++ b/docs/App.md @@ -5,8 +5,10 @@ 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] -**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] +**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] @@ -16,12 +18,19 @@ Name | Type | Description | Notes **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 aternative to using Panacea websites is to use a custom domain. | [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/AppCompliance.md b/docs/AppCompliance.md index acc42297..84b60949 100644 --- a/docs/AppCompliance.md +++ b/docs/AppCompliance.md @@ -5,6 +5,7 @@ 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 index c577b0e4..74c10200 100644 --- a/docs/AppConfigSalesChannel.md +++ b/docs/AppConfigSalesChannel.md @@ -5,7 +5,7 @@ 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 | [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 index b3990a44..2d7fa61a 100644 --- a/docs/AppConfigUpdateModel.md +++ b/docs/AppConfigUpdateModel.md @@ -6,9 +6,13 @@ 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 aternative to using Panacea websites is to use a custom domain. | [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 index fe614d5b..d157b5ed 100644 --- a/docs/AppCreatedEvent.md +++ b/docs/AppCreatedEvent.md @@ -8,11 +8,15 @@ Name | Type | Description | Notes **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/RequestLoginPinModel.md b/docs/AppLookup.md similarity index 77% rename from docs/RequestLoginPinModel.md rename to docs/AppLookup.md index 29702dde..c1f14e51 100644 --- a/docs/RequestLoginPinModel.md +++ b/docs/AppLookup.md @@ -1,9 +1,9 @@ -# Flipdish.Model.RequestLoginPinModel +# Flipdish.Model.AppLookup ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Email** | **string** | Email address | +**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 index 8bf2b31c..f8708e1f 100644 --- a/docs/AppStoreApi.md +++ b/docs/AppStoreApi.md @@ -4,17 +4,15 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetAppStoreApp**](AppStoreApi.md#getappstoreapp) | **GET** /api/v1.0/appstore/apps/{appStoreAppId} | Get App store app -[**GetAppStoreApps**](AppStoreApi.md#getappstoreapps) | **GET** /api/v1.0/appstore/apps | Get list of App store app summaries +[**GetAppStoreApp**](AppStoreApi.md#getappstoreapp) | **GET** /api/v1.0/appstore/apps/{appStoreAppId} | +[**GetAppStoreApps**](AppStoreApi.md#getappstoreapps) | **GET** /api/v1.0/appstore/apps | # **GetAppStoreApp** -> AppStoreApp GetAppStoreApp (string appStoreAppId) +> RestApiResultAppStoreApp GetAppStoreApp (string appStoreAppId, string appId = null) -Get App store app -App store app must be verified or you are the owner [BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -34,12 +32,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppStoreApi(); - var appStoreAppId = appStoreAppId_example; // string | App store app id + var appStoreAppId = appStoreAppId_example; // string | + var appId = appId_example; // string | (optional) try { - // Get App store app - AppStoreApp result = apiInstance.GetAppStoreApp(appStoreAppId); + RestApiResultAppStoreApp result = apiInstance.GetAppStoreApp(appStoreAppId, appId); Debug.WriteLine(result); } catch (Exception e) @@ -55,11 +53,12 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appStoreAppId** | **string**| App store app id | + **appStoreAppId** | **string**| | + **appId** | **string**| | [optional] ### Return type -[**AppStoreApp**](AppStoreApp.md) +[**RestApiResultAppStoreApp**](RestApiResultAppStoreApp.md) ### Authorization @@ -74,11 +73,9 @@ Name | Type | Description | Notes # **GetAppStoreApps** -> RestApiPaginationResultAppStoreAppSummary GetAppStoreApps (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null) +> RestApiPaginationResultAppStoreAppSummary GetAppStoreApps (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null) -Get list of App store app summaries -Only returns verified applications [BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -98,15 +95,15 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppStoreApi(); - var search = search_example; // string | Query App store app name - var page = 56; // int? | Requested page index (optional) - var limit = 56; // int? | Requested page limit (optional) - var excludeNotOwned = true; // bool? | Exclude App store apps that user is not the owner off (optional) + 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 { - // Get list of App store app summaries - RestApiPaginationResultAppStoreAppSummary result = apiInstance.GetAppStoreApps(search, page, limit, excludeNotOwned); + RestApiPaginationResultAppStoreAppSummary result = apiInstance.GetAppStoreApps(search, page, limit, excludeNotOwned, showOnlyVerified); Debug.WriteLine(result); } catch (Exception e) @@ -122,10 +119,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **search** | **string**| Query App store app name | - **page** | **int?**| Requested page index | [optional] - **limit** | **int?**| Requested page limit | [optional] - **excludeNotOwned** | **bool?**| Exclude App store apps that user is not the owner off | [optional] + **search** | **string**| | + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + **excludeNotOwned** | **bool?**| | [optional] + **showOnlyVerified** | **bool?**| | [optional] ### Return type diff --git a/docs/AppStoreApp.md b/docs/AppStoreApp.md index d88ef4a6..c4f6153d 100644 --- a/docs/AppStoreApp.md +++ b/docs/AppStoreApp.md @@ -3,25 +3,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | Unique App store app id | -**VerificationStatus** | **string** | Application verification status | -**Logo** | **string** | Logo | [optional] -**OAuthAppId** | **string** | OAuth App identifier | -**Details** | **string** | Details | -**ConfigurationType** | **string** | Configuration type <example>External link</example><example>Flipdish hosted</example> | -**StoreSelectorType** | **string** | Store selector type | -**FieldGroups** | [**List<FieldGroup>**](FieldGroup.md) | Field groups | [optional] -**SetupInstructions** | **string** | Setup instructions | [optional] -**ExternalSetupLink** | **string** | External setup link | [optional] -**TeammateAppAccessLevel** | **string** | Teammate app access level | [optional] -**PermissionsType** | **string** | Permissions type | -**Support** | [**AppStoreAppSupportInfo**](AppStoreAppSupportInfo.md) | Support information | [optional] -**Name** | **string** | Name | -**Description** | **string** | Description | -**IsEnabled** | **bool?** | Is application enabled | [optional] -**Categories** | **List<string>** | Categories | -**Countries** | **List<string>** | Countries | -**DeveloperName** | **string** | Developer Name | [optional] +**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 index a864d71a..5b0e9230 100644 --- a/docs/AppStoreAppConfiguration.md +++ b/docs/AppStoreAppConfiguration.md @@ -3,29 +3,33 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | Unique App store app configuration id | -**AppId** | **string** | App id | -**AppStoreAppId** | **string** | App store app id | -**IsEnabled** | **bool?** | Is enabled | -**StoreIds** | **List<int?>** | Stores id's | [optional] -**Settings** | [**List<Setting>**](Setting.md) | Settings | [optional] -**VerificationStatus** | **string** | Application verification status | -**Logo** | **string** | Logo | [optional] -**OAuthAppId** | **string** | OAuth App identifier | -**Details** | **string** | Details | -**ConfigurationType** | **string** | Configuration type <example>External link</example><example>Flipdish hosted</example> | -**StoreSelectorType** | **string** | Store selector type | -**FieldGroups** | [**List<FieldGroup>**](FieldGroup.md) | Field groups | [optional] -**SetupInstructions** | **string** | Setup instructions | [optional] -**ExternalSetupLink** | **string** | External setup link | [optional] -**TeammateAppAccessLevel** | **string** | Teammate app access level | [optional] -**PermissionsType** | **string** | Permissions type | -**Support** | [**AppStoreAppSupportInfo**](AppStoreAppSupportInfo.md) | Support information | [optional] -**Name** | **string** | Name | -**Description** | **string** | Description | -**Categories** | **List<string>** | Categories | -**Countries** | **List<string>** | Countries | -**DeveloperName** | **string** | Developer Name | [optional] +**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 index 167ef8a0..32b61b5e 100644 --- a/docs/AppStoreAppConfigurationSummary.md +++ b/docs/AppStoreAppConfigurationSummary.md @@ -3,17 +3,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | Unique App store app configuration id | -**AppId** | **string** | App Id | -**IsEnabled** | **bool?** | Is enabled | -**Stores** | [**List<ConfiguredStore>**](ConfiguredStore.md) | List of stores | -**ConfigurationType** | **string** | Configuration type | [optional] -**StoreSelectorType** | **string** | Store selector type | [optional] -**AppStoreAppId** | **string** | Unique App store app id | -**Name** | **string** | Name of Appstore app | -**Description** | **string** | Description | -**Logo** | **string** | Logo | [optional] -**DeveloperName** | **string** | Developer name | [optional] +**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 index 4339f964..8933282f 100644 --- a/docs/AppStoreAppSummary.md +++ b/docs/AppStoreAppSummary.md @@ -3,15 +3,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | Unique App store app id | [optional] -**VerificationStatus** | **string** | Application verification status | -**Logo** | **string** | Logo | [optional] -**Name** | **string** | Name | -**Description** | **string** | Description | -**IsEnabled** | **bool?** | Is application enabled | [optional] -**Categories** | **List<string>** | Categories | -**Countries** | **List<string>** | Countries | -**DeveloperName** | **string** | Developer Name | [optional] +**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 index f43e5e79..beeb6fd8 100644 --- a/docs/AppStoreAppSupportInfo.md +++ b/docs/AppStoreAppSupportInfo.md @@ -3,12 +3,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PrivacyPolicy** | **string** | Privacy policy url | [optional] -**TermsOfUse** | **string** | Terms of use url | [optional] -**CompanyWebsite** | **string** | Company website url | [optional] -**LearnMore** | **string** | Learn more url | [optional] -**InstallationMessage** | **string** | Installation message | [optional] -**SupportEmail** | **string** | Support email | [optional] +**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 index 11518c3e..36a10991 100644 --- a/docs/AppStoreConfigCreatedEvent.md +++ b/docs/AppStoreConfigCreatedEvent.md @@ -6,11 +6,15 @@ 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 index 9a6fb068..7b41b387 100644 --- a/docs/AppStoreConfigDeletedEvent.md +++ b/docs/AppStoreConfigDeletedEvent.md @@ -6,11 +6,15 @@ 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 index 10682a4e..53b903a9 100644 --- a/docs/AppStoreConfigUpdatedEvent.md +++ b/docs/AppStoreConfigUpdatedEvent.md @@ -6,11 +6,15 @@ 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 index 949d0325..d4e0e4df 100644 --- a/docs/AppStoreConfigurationsApi.md +++ b/docs/AppStoreConfigurationsApi.md @@ -4,21 +4,83 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateAppStoreConfig**](AppStoreConfigurationsApi.md#createappstoreconfig) | **POST** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config | Create App store app configuration -[**DeleteAppStoreConfig**](AppStoreConfigurationsApi.md#deleteappstoreconfig) | **DELETE** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | Delete App store app configuration -[**GetAppStoreConfig**](AppStoreConfigurationsApi.md#getappstoreconfig) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | Get App store app configuration -[**GetConfiguredAppSingleApp**](AppStoreConfigurationsApi.md#getconfiguredappsingleapp) | **GET** /api/v1.0/{appId}/appstore/apps/{appStoreAppId} | Get list of App store app configurations for one App store app -[**GetConfiguredApps**](AppStoreConfigurationsApi.md#getconfiguredapps) | **GET** /api/v1.0/{appId}/appstore/apps | Get list of App store apps which have been configured -[**UpdateAppStoreConfig**](AppStoreConfigurationsApi.md#updateappstoreconfig) | **PUT** /api/v1.0/{appId}/appstore/apps/{appStoreAppId}/config/{configId} | Update App store app configuration +[**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) -Create App store app configuration -[BETA - this endpoint is under development, do not use it in your production system] This adds an Application to a Whitelabel that can later be configured to specific stores ### Example ```csharp @@ -38,12 +100,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppStoreConfigurationsApi(); - var appId = appId_example; // string | App id - var appStoreAppId = appStoreAppId_example; // string | App store app id + var appId = appId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | try { - // Create App store app configuration RestApiResultAppStoreAppConfiguration result = apiInstance.CreateAppStoreConfig(appId, appStoreAppId); Debug.WriteLine(result); } @@ -60,8 +121,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App id | - **appStoreAppId** | **string**| App store app id | + **appId** | **string**| | + **appStoreAppId** | **string**| | ### Return type @@ -82,9 +143,7 @@ Name | Type | Description | Notes # **DeleteAppStoreConfig** > RestApiStringResult DeleteAppStoreConfig (string appId, string appStoreAppId, string configId) -Delete App store app configuration -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -104,13 +163,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppStoreConfigurationsApi(); - var appId = appId_example; // string | App id - var appStoreAppId = appStoreAppId_example; // string | App store app id - var configId = configId_example; // string | App store app configuration id + var appId = appId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + var configId = configId_example; // string | try { - // Delete App store app configuration RestApiStringResult result = apiInstance.DeleteAppStoreConfig(appId, appStoreAppId, configId); Debug.WriteLine(result); } @@ -127,9 +185,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App id | - **appStoreAppId** | **string**| App store app id | - **configId** | **string**| App store app configuration id | + **appId** | **string**| | + **appStoreAppId** | **string**| | + **configId** | **string**| | ### Return type @@ -146,13 +204,78 @@ Name | Type | Description | Notes [[Back to top]](#) [[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** -> AppStoreAppConfiguration GetAppStoreConfig (string appId, string appStoreAppId, string configId) +> RestApiResultAppStoreAppConfiguration GetAppStoreConfig (string appId, string appStoreAppId, string configId) -Get App store app configuration -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -172,14 +295,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppStoreConfigurationsApi(); - var appId = appId_example; // string | App id - var appStoreAppId = appStoreAppId_example; // string | App store app id - var configId = configId_example; // string | App store app configuration id + var appId = appId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + var configId = configId_example; // string | try { - // Get App store app configuration - AppStoreAppConfiguration result = apiInstance.GetAppStoreConfig(appId, appStoreAppId, configId); + RestApiResultAppStoreAppConfiguration result = apiInstance.GetAppStoreConfig(appId, appStoreAppId, configId); Debug.WriteLine(result); } catch (Exception e) @@ -195,13 +317,13 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App id | - **appStoreAppId** | **string**| App store app id | - **configId** | **string**| App store app configuration id | + **appId** | **string**| | + **appStoreAppId** | **string**| | + **configId** | **string**| | ### Return type -[**AppStoreAppConfiguration**](AppStoreAppConfiguration.md) +[**RestApiResultAppStoreAppConfiguration**](RestApiResultAppStoreAppConfiguration.md) ### Authorization @@ -218,9 +340,7 @@ Name | Type | Description | Notes # **GetConfiguredAppSingleApp** > RestApiArrayResultAppStoreAppConfigurationSummary GetConfiguredAppSingleApp (string appId, string appStoreAppId) -Get list of App store app configurations for one App store app -[ALPHA - this endpoint is not ready to be consumed] ### Example ```csharp @@ -240,12 +360,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppStoreConfigurationsApi(); - var appId = appId_example; // string | App id - var appStoreAppId = appStoreAppId_example; // string | App store app id + var appId = appId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | try { - // Get list of App store app configurations for one App store app RestApiArrayResultAppStoreAppConfigurationSummary result = apiInstance.GetConfiguredAppSingleApp(appId, appStoreAppId); Debug.WriteLine(result); } @@ -262,8 +381,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App id | - **appStoreAppId** | **string**| App store app id | + **appId** | **string**| | + **appStoreAppId** | **string**| | ### Return type @@ -282,11 +401,9 @@ Name | Type | Description | Notes # **GetConfiguredApps** -> RestApiArrayResultAppStoreAppConfigurationHeader GetConfiguredApps (string appId) +> RestApiArrayResultAppStoreAppSummary GetConfiguredApps (string appId) -Get list of App store apps which have been configured -[ALPHA - this endpoint is not ready to be consumed] ### Example ```csharp @@ -306,12 +423,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppStoreConfigurationsApi(); - var appId = appId_example; // string | App id + var appId = appId_example; // string | try { - // Get list of App store apps which have been configured - RestApiArrayResultAppStoreAppConfigurationHeader result = apiInstance.GetConfiguredApps(appId); + RestApiArrayResultAppStoreAppSummary result = apiInstance.GetConfiguredApps(appId); Debug.WriteLine(result); } catch (Exception e) @@ -327,11 +443,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App id | + **appId** | **string**| | ### Return type -[**RestApiArrayResultAppStoreAppConfigurationHeader**](RestApiArrayResultAppStoreAppConfigurationHeader.md) +[**RestApiArrayResultAppStoreAppSummary**](RestApiArrayResultAppStoreAppSummary.md) ### Authorization @@ -348,9 +464,7 @@ Name | Type | Description | Notes # **UpdateAppStoreConfig** > void UpdateAppStoreConfig (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration) -Update App store app configuration -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -370,14 +484,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppStoreConfigurationsApi(); - var appId = appId_example; // string | App id - var appStoreAppId = appStoreAppId_example; // string | App store app id - var configId = configId_example; // string | App store app configuration id - var updateAppStoreAppConfiguration = new UpdateAppStoreAppConfiguration(); // UpdateAppStoreAppConfiguration | Update App store app configuration + var appId = appId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + var configId = configId_example; // string | + var updateAppStoreAppConfiguration = new UpdateAppStoreAppConfiguration(); // UpdateAppStoreAppConfiguration | try { - // Update App store app configuration apiInstance.UpdateAppStoreConfig(appId, appStoreAppId, configId, updateAppStoreAppConfiguration); } catch (Exception e) @@ -393,10 +506,76 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App id | - **appStoreAppId** | **string**| App store app id | - **configId** | **string**| App store app configuration id | - **updateAppStoreAppConfiguration** | [**UpdateAppStoreAppConfiguration**](UpdateAppStoreAppConfiguration.md)| Update App store app configuration | + **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 diff --git a/docs/AppStoreDeveloperApi.md b/docs/AppStoreDeveloperApi.md index 763b55b8..3e1f2590 100644 --- a/docs/AppStoreDeveloperApi.md +++ b/docs/AppStoreDeveloperApi.md @@ -4,20 +4,21 @@ 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 | Update App store app verification -[**CreateAppStoreApp**](AppStoreDeveloperApi.md#createappstoreapp) | **POST** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps | Create App store app -[**DeleteAppStoreApp**](AppStoreDeveloperApi.md#deleteappstoreapp) | **DELETE** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId} | Delete App store app -[**UpdateAppStoreApp**](AppStoreDeveloperApi.md#updateappstoreapp) | **PUT** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId} | Update App store app -[**UploadAppStoreAppLogo**](AppStoreDeveloperApi.md#uploadappstoreapplogo) | **POST** /api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}/logo | Upload the App store app logo \\ icon +[**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) -Update App store app verification -[BETA - this endpoint is under development, do not use it in your production system][Note: Only Flipdish staff can verify apps] ### Example ```csharp @@ -37,13 +38,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppStoreDeveloperApi(); - var oauthAppId = oauthAppId_example; // string | OAuth App identifier - var appStoreAppId = appStoreAppId_example; // string | App store app id - var verificationStatus = verificationStatus_example; // string | New verification status + var oauthAppId = oauthAppId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + var verificationStatus = verificationStatus_example; // string | try { - // Update App store app verification apiInstance.AppVerificationUpdate(oauthAppId, appStoreAppId, verificationStatus); } catch (Exception e) @@ -59,9 +59,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| OAuth App identifier | - **appStoreAppId** | **string**| App store app id | - **verificationStatus** | **string**| New verification status | + **oauthAppId** | **string**| | + **appStoreAppId** | **string**| | + **verificationStatus** | **string**| | ### Return type @@ -82,9 +82,7 @@ void (empty response body) # **CreateAppStoreApp** > RestApiResultAppStoreApp CreateAppStoreApp (string oauthAppId, CreateAppStoreApp createAppStoreApp) -Create App store app -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -104,12 +102,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppStoreDeveloperApi(); - var oauthAppId = oauthAppId_example; // string | OAuth App identifier - var createAppStoreApp = new CreateAppStoreApp(); // CreateAppStoreApp | App store app + var oauthAppId = oauthAppId_example; // string | + var createAppStoreApp = new CreateAppStoreApp(); // CreateAppStoreApp | try { - // Create App store app RestApiResultAppStoreApp result = apiInstance.CreateAppStoreApp(oauthAppId, createAppStoreApp); Debug.WriteLine(result); } @@ -126,8 +123,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| OAuth App identifier | - **createAppStoreApp** | [**CreateAppStoreApp**](CreateAppStoreApp.md)| App store app | + **oauthAppId** | **string**| | + **createAppStoreApp** | [**CreateAppStoreApp**](CreateAppStoreApp.md)| | ### Return type @@ -148,9 +145,7 @@ Name | Type | Description | Notes # **DeleteAppStoreApp** > RestApiStringResult DeleteAppStoreApp (string oauthAppId, string appStoreAppId) -Delete App store app -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -170,12 +165,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppStoreDeveloperApi(); - var oauthAppId = oauthAppId_example; // string | OAuth App identifier - var appStoreAppId = appStoreAppId_example; // string | App store app id + var oauthAppId = oauthAppId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | try { - // Delete App store app RestApiStringResult result = apiInstance.DeleteAppStoreApp(oauthAppId, appStoreAppId); Debug.WriteLine(result); } @@ -192,8 +186,133 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| OAuth App identifier | - **appStoreAppId** | **string**| App store app id | + **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 @@ -214,9 +333,7 @@ Name | Type | Description | Notes # **UpdateAppStoreApp** > void UpdateAppStoreApp (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp) -Update App store app -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -236,13 +353,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppStoreDeveloperApi(); - var oauthAppId = oauthAppId_example; // string | OAuth App identifier - var appStoreAppId = appStoreAppId_example; // string | App store app id - var appStoreApp = new UpdateAppStoreApp(); // UpdateAppStoreApp | Update App store app + var oauthAppId = oauthAppId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | + var appStoreApp = new UpdateAppStoreApp(); // UpdateAppStoreApp | try { - // Update App store app apiInstance.UpdateAppStoreApp(oauthAppId, appStoreAppId, appStoreApp); } catch (Exception e) @@ -258,9 +374,73 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| OAuth App identifier | - **appStoreAppId** | **string**| App store app id | - **appStoreApp** | [**UpdateAppStoreApp**](UpdateAppStoreApp.md)| Update App store app | + **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 @@ -281,7 +461,7 @@ void (empty response body) # **UploadAppStoreAppLogo** > void UploadAppStoreAppLogo (string oauthAppId, string appStoreAppId, System.IO.Stream image) -Upload the App store app logo \\ icon + ### Example ```csharp @@ -301,13 +481,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppStoreDeveloperApi(); - var oauthAppId = oauthAppId_example; // string | OAuth App identifier - var appStoreAppId = appStoreAppId_example; // string | App store app id + var oauthAppId = oauthAppId_example; // string | + var appStoreAppId = appStoreAppId_example; // string | var image = new System.IO.Stream(); // System.IO.Stream | App Store App Logo try { - // Upload the App store app logo \\ icon apiInstance.UploadAppStoreAppLogo(oauthAppId, appStoreAppId, image); } catch (Exception e) @@ -323,8 +502,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| OAuth App identifier | - **appStoreAppId** | **string**| App store app id | + **oauthAppId** | **string**| | + **appStoreAppId** | **string**| | **image** | **System.IO.Stream**| App Store App Logo | ### Return type 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 index b287ea85..f29723eb 100644 --- a/docs/AppUpdatedEvent.md +++ b/docs/AppUpdatedEvent.md @@ -9,11 +9,15 @@ Name | Type | Description | Notes **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 index c5b78d1a..c1dcc6ce 100644 --- a/docs/AppsApi.md +++ b/docs/AppsApi.md @@ -4,26 +4,158 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetApp**](AppsApi.md#getapp) | **GET** /api/v1.0/apps/{appId} | Get the application configuration -[**GetAppHostnameStatus**](AppsApi.md#getapphostnamestatus) | **GET** /api/v1.0/apps/{appId}/hostnamestatus | Get the application hostname DNS delegation states for A and CNAME records. -[**GetApps**](AppsApi.md#getapps) | **GET** /api/v1.0/apps | Get Apps -[**GetCompliance**](AppsApi.md#getcompliance) | **GET** /api/v1.0/apps/{appId}/compliance | Get the application compliance configuration -[**GetPanaceaVanityUrl**](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] -[**GetSupportedCountries**](AppsApi.md#getsupportedcountries) | **GET** /api/v1.0/apps/supportedcountries | Get all supported countries. -[**IsPanaceaVanityUrlAvailable**](AppsApi.md#ispanaceavanityurlavailable) | **GET** /api/v1.0/apps/{appId}/panacea/url/available | Is panacea vanity url available -[**SetAppConfig**](AppsApi.md#setappconfig) | **POST** /api/v1.0/apps/{appId}/config | Set the application configuration -[**SetAppHostname**](AppsApi.md#setapphostname) | **POST** /api/v1.0/apps/{appId}/hostname | Set the application hostname. -[**SetAppLanguages**](AppsApi.md#setapplanguages) | **POST** /api/v1.0/apps/{appId}/config/languages | Set the application languages -[**SetCompliance**](AppsApi.md#setcompliance) | **POST** /api/v1.0/apps/{appId}/compliance | Set the application compliance configuration -[**SetPanaceaVanityUrl**](AppsApi.md#setpanaceavanityurl) | **POST** /api/v1.0/apps/{appId}/panacea/url | Set panacea vanity url -[**UploadAppLogo**](AppsApi.md#uploadapplogo) | **POST** /api/v1.0/apps/{appId}/logo | Set the application logo \\ icon +[**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) -Get the application configuration + ### Example ```csharp @@ -43,11 +175,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppsApi(); - var appId = appId_example; // string | Application identifier + var appId = appId_example; // string | try { - // Get the application configuration RestApiResultApp result = apiInstance.GetApp(appId); Debug.WriteLine(result); } @@ -64,7 +195,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | + **appId** | **string**| | ### Return type @@ -85,9 +216,7 @@ Name | Type | Description | Notes # **GetAppHostnameStatus** > RestApiResultDnsRecordInformation GetAppHostnameStatus (string appId) -Get the application hostname DNS delegation states for A and CNAME records. -A domain might be ready but still need 10 minutes to work properly because of HAProxy. ### Example ```csharp @@ -107,11 +236,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppsApi(); - var appId = appId_example; // string | Application identifier. + var appId = appId_example; // string | try { - // Get the application hostname DNS delegation states for A and CNAME records. RestApiResultDnsRecordInformation result = apiInstance.GetAppHostnameStatus(appId); Debug.WriteLine(result); } @@ -128,7 +256,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier. | + **appId** | **string**| | ### Return type @@ -145,11 +273,72 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) -Get Apps + ### Example ```csharp @@ -175,7 +364,6 @@ namespace Example try { - // Get Apps RestApiPaginationResultApp result = apiInstance.GetApps(nameFilter, page, limit); Debug.WriteLine(result); } @@ -215,7 +403,7 @@ Name | Type | Description | Notes # **GetCompliance** > RestApiResultAppCompliance GetCompliance (string appId) -Get the application compliance configuration + ### Example ```csharp @@ -235,11 +423,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppsApi(); - var appId = appId_example; // string | Application identifier + var appId = appId_example; // string | try { - // Get the application compliance configuration RestApiResultAppCompliance result = apiInstance.GetCompliance(appId); Debug.WriteLine(result); } @@ -256,7 +443,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | + **appId** | **string**| | ### Return type @@ -277,7 +464,7 @@ Name | Type | Description | Notes # **GetPanaceaVanityUrl** > RestApiStringResult GetPanaceaVanityUrl (string appId) -Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] + ### Example ```csharp @@ -297,11 +484,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppsApi(); - var appId = appId_example; // string | Application identifier. + var appId = appId_example; // string | try { - // Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] RestApiStringResult result = apiInstance.GetPanaceaVanityUrl(appId); Debug.WriteLine(result); } @@ -318,7 +504,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier. | + **appId** | **string**| | ### Return type @@ -339,7 +525,7 @@ Name | Type | Description | Notes # **GetSupportedCountries** > RestApiArrayResultSupportedCountry GetSupportedCountries () -Get all supported countries. + ### Example ```csharp @@ -362,7 +548,6 @@ namespace Example try { - // Get all supported countries. RestApiArrayResultSupportedCountry result = apiInstance.GetSupportedCountries(); Debug.WriteLine(result); } @@ -397,9 +582,7 @@ This endpoint does not need any parameter. # **IsPanaceaVanityUrlAvailable** > RestApiStringResult IsPanaceaVanityUrlAvailable (string vanityUrl, string appId) -Is panacea vanity url available -Minimum length of 3 characters ### Example ```csharp @@ -419,12 +602,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppsApi(); - var vanityUrl = vanityUrl_example; // string | Vanity url to check + var vanityUrl = vanityUrl_example; // string | var appId = appId_example; // string | try { - // Is panacea vanity url available RestApiStringResult result = apiInstance.IsPanaceaVanityUrlAvailable(vanityUrl, appId); Debug.WriteLine(result); } @@ -441,7 +623,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **vanityUrl** | **string**| Vanity url to check | + **vanityUrl** | **string**| | **appId** | **string**| | ### Return type @@ -459,11 +641,136 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) -Set the application configuration + ### Example ```csharp @@ -483,12 +790,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppsApi(); - var appId = appId_example; // string | Application identifier - var appConfigUpdate = new AppConfigUpdateModel(); // AppConfigUpdateModel | Changes to the configuration + var appId = appId_example; // string | + var appConfigUpdate = new AppConfigUpdateModel(); // AppConfigUpdateModel | try { - // Set the application configuration RestApiResultApp result = apiInstance.SetAppConfig(appId, appConfigUpdate); Debug.WriteLine(result); } @@ -505,8 +811,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **appConfigUpdate** | [**AppConfigUpdateModel**](AppConfigUpdateModel.md)| Changes to the configuration | + **appId** | **string**| | + **appConfigUpdate** | [**AppConfigUpdateModel**](AppConfigUpdateModel.md)| | ### Return type @@ -527,9 +833,7 @@ Name | Type | Description | Notes # **SetAppHostname** > RestApiStringResult SetAppHostname (string appId, string hostname, bool? isEmbed = null) -Set the application hostname. -If no subdomain is specified in {hostname} 'www' will be prepended. ### Example ```csharp @@ -549,13 +853,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppsApi(); - var appId = appId_example; // string | Application identifier. - var hostname = hostname_example; // string | The new Hostname. - var isEmbed = true; // bool? | Will the website be embedded (optional) + var appId = appId_example; // string | + var hostname = hostname_example; // string | + var isEmbed = true; // bool? | (optional) try { - // Set the application hostname. RestApiStringResult result = apiInstance.SetAppHostname(appId, hostname, isEmbed); Debug.WriteLine(result); } @@ -572,9 +875,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier. | - **hostname** | **string**| The new Hostname. | - **isEmbed** | **bool?**| Will the website be embedded | [optional] + **appId** | **string**| | + **hostname** | **string**| | + **isEmbed** | **bool?**| | [optional] ### Return type @@ -595,7 +898,7 @@ Name | Type | Description | Notes # **SetAppLanguages** > RestApiResultApp SetAppLanguages (string appId, List languages) -Set the application languages + ### Example ```csharp @@ -615,12 +918,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppsApi(); - var appId = appId_example; // string | Application identifier - var languages = new List(); // List | New list of languages + var appId = appId_example; // string | + var languages = new List(); // List | try { - // Set the application languages RestApiResultApp result = apiInstance.SetAppLanguages(appId, languages); Debug.WriteLine(result); } @@ -637,8 +939,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **languages** | [**List<Language>**](Language.md)| New list of languages | + **appId** | **string**| | + **languages** | [**List<Language>**](Language.md)| | ### Return type @@ -655,11 +957,73 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) -Set the application compliance configuration + ### Example ```csharp @@ -679,12 +1043,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppsApi(); - var appId = appId_example; // string | Application identifier - var complianceType = complianceType_example; // string | Compliance type + var appId = appId_example; // string | + var complianceType = complianceType_example; // string | try { - // Set the application compliance configuration RestApiResultAppCompliance result = apiInstance.SetCompliance(appId, complianceType); Debug.WriteLine(result); } @@ -701,8 +1064,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **complianceType** | **string**| Compliance type | + **appId** | **string**| | + **complianceType** | **string**| | ### Return type @@ -723,9 +1086,7 @@ Name | Type | Description | Notes # **SetPanaceaVanityUrl** > RestApiStringResult SetPanaceaVanityUrl (string appId, string vanityUrl) -Set panacea vanity url -Minimum length of 3 characters ### Example ```csharp @@ -745,12 +1106,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppsApi(); - var appId = appId_example; // string | Application identifier. - var vanityUrl = vanityUrl_example; // string | Vanity url + var appId = appId_example; // string | + var vanityUrl = vanityUrl_example; // string | try { - // Set panacea vanity url RestApiStringResult result = apiInstance.SetPanaceaVanityUrl(appId, vanityUrl); Debug.WriteLine(result); } @@ -767,8 +1127,137 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier. | - **vanityUrl** | **string**| Vanity url | + **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 @@ -789,7 +1278,7 @@ Name | Type | Description | Notes # **UploadAppLogo** > void UploadAppLogo (string appId, System.IO.Stream image) -Set the application logo \\ icon + ### Example ```csharp @@ -809,12 +1298,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AppsApi(); - var appId = appId_example; // string | Application identifier + var appId = appId_example; // string | var image = new System.IO.Stream(); // System.IO.Stream | App Logo try { - // Set the application logo \\ icon apiInstance.UploadAppLogo(appId, image); } catch (Exception e) @@ -830,7 +1318,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | + **appId** | **string**| | **image** | **System.IO.Stream**| App Logo | ### Return type 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/AuditLogsApi.md b/docs/AuditLogsApi.md index 34fbec10..f829942b 100644 --- a/docs/AuditLogsApi.md +++ b/docs/AuditLogsApi.md @@ -4,17 +4,15 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AddOrderAuditLog**](AuditLogsApi.md#addorderauditlog) | **POST** /api/v1.0/auditlogs/orders/{orderId} | Create an order audit log event -[**AddStoreAuditLogEvent**](AuditLogsApi.md#addstoreauditlogevent) | **POST** /api/v1.0/auditlogs/stores/{storeId} | Create a store audit log event +[**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) -Create an order audit log event -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -39,7 +37,6 @@ namespace Example try { - // Create an order audit log event apiInstance.AddOrderAuditLog(orderId, externalEventCreate); } catch (Exception e) @@ -77,9 +74,7 @@ void (empty response body) # **AddStoreAuditLogEvent** > void AddStoreAuditLogEvent (int? storeId, List externalEventCreate) -Create a store audit log event -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -104,7 +99,6 @@ namespace Example try { - // Create a store audit log event apiInstance.AddStoreAuditLogEvent(storeId, externalEventCreate); } catch (Exception e) diff --git a/docs/AuthorizationTokensApi.md b/docs/AuthorizationTokensApi.md index ac1455e5..271942b8 100644 --- a/docs/AuthorizationTokensApi.md +++ b/docs/AuthorizationTokensApi.md @@ -4,15 +4,15 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetAuthorizationTokens**](AuthorizationTokensApi.md#getauthorizationtokens) | **GET** /api/v1.0/{appId}/authorizationtokens/{oauthAppId} | Get authorization tokens -[**RevokeToken**](AuthorizationTokensApi.md#revoketoken) | **DELETE** /api/v1.0/{appId}/authorizationtokens/{key} | Revoke token +[**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) -Get authorization tokens + ### Example ```csharp @@ -32,14 +32,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AuthorizationTokensApi(); - var oauthAppId = oauthAppId_example; // string | Client identifier + var oauthAppId = oauthAppId_example; // string | var appId = appId_example; // string | - var page = 56; // int? | Requested page number (optional) - var limit = 56; // int? | Requested page limit (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) try { - // Get authorization tokens RestApiPaginationResultOAuthTokenModel result = apiInstance.GetAuthorizationTokens(oauthAppId, appId, page, limit); Debug.WriteLine(result); } @@ -56,10 +55,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| Client identifier | + **oauthAppId** | **string**| | **appId** | **string**| | - **page** | **int?**| Requested page number | [optional] - **limit** | **int?**| Requested page limit | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] ### Return type @@ -80,7 +79,7 @@ Name | Type | Description | Notes # **RevokeToken** > void RevokeToken (string key, string appId) -Revoke token + ### Example ```csharp @@ -100,12 +99,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new AuthorizationTokensApi(); - var key = key_example; // string | Token identifier key + var key = key_example; // string | var appId = appId_example; // string | try { - // Revoke token apiInstance.RevokeToken(key, appId); } catch (Exception e) @@ -121,7 +119,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **key** | **string**| Token identifier key | + **key** | **string**| | **appId** | **string**| | ### Return type diff --git a/docs/BalanceDetails.md b/docs/BalanceDetails.md index 2304ca9b..34ee73e1 100644 --- a/docs/BalanceDetails.md +++ b/docs/BalanceDetails.md @@ -3,8 +3,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**OpeningBalance** | **double?** | | [optional] -**ClosingBalance** | **double?** | | [optional] +**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 index a4460b32..f0321d2f 100644 --- a/docs/BankAccount.md +++ b/docs/BankAccount.md @@ -10,11 +10,13 @@ Name | Type | Description | Notes **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 index a8ae3764..92a25c57 100644 --- a/docs/BankAccountApi.md +++ b/docs/BankAccountApi.md @@ -4,22 +4,22 @@ 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} | [PRIVATE API] Attach Bank Account to Store -[**CreateBankAccount**](BankAccountApi.md#createbankaccount) | **POST** /api/v1.0/{appId}/bankaccounts | Create a new Bank Account and attach to this App -[**DeleteBankAccount**](BankAccountApi.md#deletebankaccount) | **DELETE** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | Delete BankAccount -[**GetBankAccountById**](BankAccountApi.md#getbankaccountbyid) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | Get BankAccount Detail by Id -[**GetBankAccounts**](BankAccountApi.md#getbankaccounts) | **GET** /api/v1.0/{appId}/bankaccounts | Get List of BankAccounts for WL -[**GetCountriesWithFieldDefinitions**](BankAccountApi.md#getcountrieswithfielddefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/countries-field-definitions | Get bank account fields definitions -[**GetFieldDefinitions**](BankAccountApi.md#getfielddefinitions) | **GET** /api/v1.0/{appId}/bankaccounts/field-definitions | Get bank account fields definitions -[**UpdateBankAccount**](BankAccountApi.md#updatebankaccount) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId} | Update BankAccount -[**UpdateBankAccountState**](BankAccountApi.md#updatebankaccountstate) | **POST** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/state/{state} | [PRIVATE API] Update State of Bank Account +[**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) +> void AttachBankAccountToStore (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null) + -[PRIVATE API] Attach Bank Account to Store ### Example ```csharp @@ -39,14 +39,14 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new BankAccountApi(); - var appId = appId_example; // string | App Name - var bankAccountId = 56; // int? | Id of account to be updated - var storeId = 56; // int? | Store to be attached to Bank account + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var storeId = 56; // int? | + var skipBankAccountUpdateWarningEmail = true; // bool? | (optional) try { - // [PRIVATE API] Attach Bank Account to Store - apiInstance.AttachBankAccountToStore(appId, bankAccountId, storeId); + apiInstance.AttachBankAccountToStore(appId, bankAccountId, storeId, skipBankAccountUpdateWarningEmail); } catch (Exception e) { @@ -61,9 +61,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name | - **bankAccountId** | **int?**| Id of account to be updated | - **storeId** | **int?**| Store to be attached to Bank account | + **appId** | **string**| | + **bankAccountId** | **int?**| | + **storeId** | **int?**| | + **skipBankAccountUpdateWarningEmail** | **bool?**| | [optional] ### Return type @@ -84,7 +85,7 @@ void (empty response body) # **CreateBankAccount** > RestApiResultBankAccountDetail CreateBankAccount (string appId, BankAccountCreate account) -Create a new Bank Account and attach to this App + ### Example ```csharp @@ -104,12 +105,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new BankAccountApi(); - var appId = appId_example; // string | App Name - var account = new BankAccountCreate(); // BankAccountCreate | Account to be created + var appId = appId_example; // string | + var account = new BankAccountCreate(); // BankAccountCreate | try { - // Create a new Bank Account and attach to this App RestApiResultBankAccountDetail result = apiInstance.CreateBankAccount(appId, account); Debug.WriteLine(result); } @@ -126,8 +126,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name | - **account** | [**BankAccountCreate**](BankAccountCreate.md)| Account to be created | + **appId** | **string**| | + **account** | [**BankAccountCreate**](BankAccountCreate.md)| | ### Return type @@ -148,7 +148,7 @@ Name | Type | Description | Notes # **DeleteBankAccount** > void DeleteBankAccount (string appId, int? bankAccountId) -Delete BankAccount + ### Example ```csharp @@ -168,12 +168,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new BankAccountApi(); - var appId = appId_example; // string | App Name - var bankAccountId = 56; // int? | Id of account to be marked as deleted + var appId = appId_example; // string | + var bankAccountId = 56; // int? | try { - // Delete BankAccount apiInstance.DeleteBankAccount(appId, bankAccountId); } catch (Exception e) @@ -189,8 +188,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name | - **bankAccountId** | **int?**| Id of account to be marked as deleted | + **appId** | **string**| | + **bankAccountId** | **int?**| | ### Return type @@ -211,7 +210,7 @@ void (empty response body) # **GetBankAccountById** > RestApiResultBankAccountDetail GetBankAccountById (int? bankAccountId, string appId) -Get BankAccount Detail by Id + ### Example ```csharp @@ -231,12 +230,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new BankAccountApi(); - var bankAccountId = 56; // int? | Id of account + var bankAccountId = 56; // int? | var appId = appId_example; // string | try { - // Get BankAccount Detail by Id RestApiResultBankAccountDetail result = apiInstance.GetBankAccountById(bankAccountId, appId); Debug.WriteLine(result); } @@ -253,7 +251,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **bankAccountId** | **int?**| Id of account | + **bankAccountId** | **int?**| | **appId** | **string**| | ### Return type @@ -275,7 +273,7 @@ Name | Type | Description | Notes # **GetBankAccounts** > RestApiArrayResultBankAccountSummary GetBankAccounts (string appId) -Get List of BankAccounts for WL + ### Example ```csharp @@ -295,11 +293,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new BankAccountApi(); - var appId = appId_example; // string | App Name + var appId = appId_example; // string | try { - // Get List of BankAccounts for WL RestApiArrayResultBankAccountSummary result = apiInstance.GetBankAccounts(appId); Debug.WriteLine(result); } @@ -316,7 +313,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name | + **appId** | **string**| | ### Return type @@ -337,7 +334,7 @@ Name | Type | Description | Notes # **GetCountriesWithFieldDefinitions** > RestApiArrayResultCountryWithAccountFieldsDefinitions GetCountriesWithFieldDefinitions (string appId) -Get bank account fields definitions + ### Example ```csharp @@ -361,7 +358,6 @@ namespace Example try { - // Get bank account fields definitions RestApiArrayResultCountryWithAccountFieldsDefinitions result = apiInstance.GetCountriesWithFieldDefinitions(appId); Debug.WriteLine(result); } @@ -399,7 +395,7 @@ Name | Type | Description | Notes # **GetFieldDefinitions** > RestApiResultAccountFieldsDefinitions GetFieldDefinitions (string appId) -Get bank account fields definitions + ### Example ```csharp @@ -423,7 +419,6 @@ namespace Example try { - // Get bank account fields definitions RestApiResultAccountFieldsDefinitions result = apiInstance.GetFieldDefinitions(appId); Debug.WriteLine(result); } @@ -461,7 +456,7 @@ Name | Type | Description | Notes # **UpdateBankAccount** > void UpdateBankAccount (string appId, int? bankAccountId, BankAccountCreate account) -Update BankAccount + ### Example ```csharp @@ -481,13 +476,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new BankAccountApi(); - var appId = appId_example; // string | App Name - var bankAccountId = 56; // int? | Id of account to be updated - var account = new BankAccountCreate(); // BankAccountCreate | Details to update account with + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var account = new BankAccountCreate(); // BankAccountCreate | try { - // Update BankAccount apiInstance.UpdateBankAccount(appId, bankAccountId, account); } catch (Exception e) @@ -503,9 +497,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name | - **bankAccountId** | **int?**| Id of account to be updated | - **account** | [**BankAccountCreate**](BankAccountCreate.md)| Details to update account with | + **appId** | **string**| | + **bankAccountId** | **int?**| | + **account** | [**BankAccountCreate**](BankAccountCreate.md)| | ### Return type @@ -526,7 +520,7 @@ void (empty response body) # **UpdateBankAccountState** > void UpdateBankAccountState (string appId, int? bankAccountId, string state, string reason) -[PRIVATE API] Update State of Bank Account + ### Example ```csharp @@ -546,14 +540,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new BankAccountApi(); - var appId = appId_example; // string | App Name - var bankAccountId = 56; // int? | Id of account to be updated - var state = state_example; // string | New state - var reason = reason_example; // string | Reason for state change, Mandatory for rejections + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var state = state_example; // string | + var reason = reason_example; // string | try { - // [PRIVATE API] Update State of Bank Account apiInstance.UpdateBankAccountState(appId, bankAccountId, state, reason); } catch (Exception e) @@ -569,10 +562,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name | - **bankAccountId** | **int?**| Id of account to be updated | - **state** | **string**| New state | - **reason** | **string**| Reason for state change, Mandatory for rejections | + **appId** | **string**| | + **bankAccountId** | **int?**| | + **state** | **string**| | + **reason** | **string**| | ### Return type 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/BankAccountCreatedEvent.md b/docs/BankAccountCreatedEvent.md index 3850a5de..87277b79 100644 --- a/docs/BankAccountCreatedEvent.md +++ b/docs/BankAccountCreatedEvent.md @@ -3,13 +3,17 @@ 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 index 6c17b8c4..d39f281e 100644 --- a/docs/BankAccountDeletedEvent.md +++ b/docs/BankAccountDeletedEvent.md @@ -3,13 +3,17 @@ 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/BankAccountSummary.md b/docs/BankAccountSummary.md index 45b6a701..e090339d 100644 --- a/docs/BankAccountSummary.md +++ b/docs/BankAccountSummary.md @@ -5,8 +5,12 @@ 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] diff --git a/docs/BankAccountUpdatedEvent.md b/docs/BankAccountUpdatedEvent.md index 049bd6a6..68a6fd36 100644 --- a/docs/BankAccountUpdatedEvent.md +++ b/docs/BankAccountUpdatedEvent.md @@ -3,13 +3,17 @@ 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/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/CampaignStatistics.md b/docs/CampaignStatistics.md index a00b414b..1d687db8 100644 --- a/docs/CampaignStatistics.md +++ b/docs/CampaignStatistics.md @@ -3,11 +3,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VouchersIssued** | **int?** | Number of issued vouchers | [optional] -**VouchersRedeemed** | **int?** | Number of redeemed vouchers | [optional] -**Conversion** | **double?** | Conversion percentage of campaign (VouchersIssued / VouchersRedeemed) | [optional] -**SalesGenerated** | **double?** | Sales generated by campaign (TotalAmount - FeeChargedToCustomer ie. the discounted sale value) | [optional] -**ReturnOfInvestment** | **double?** | Return of investment percentage of campaign (TotalAmount / DiscountAmount) | [optional] +**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 index fe20dcfa..dfe96743 100644 --- a/docs/CampaignsApi.md +++ b/docs/CampaignsApi.md @@ -4,23 +4,23 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateLoyaltyCampaign**](CampaignsApi.md#createloyaltycampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty | Creates loyalty campaign -[**CreateRetentionCampaign**](CampaignsApi.md#createretentioncampaign) | **POST** /api/v1.0/{appId}/campaigns/retention | Creates retention campaign -[**GetLoyaltyCampaignsForApp**](CampaignsApi.md#getloyaltycampaignsforapp) | **GET** /api/v1.0/{appId}/campaigns/loyalty | Gets loyalty campaigns for app -[**GetLoyaltyCampaignsForStore**](CampaignsApi.md#getloyaltycampaignsforstore) | **GET** /api/v1.0/{appId}/campaigns/loyalty/{storeId} | Gets loyalty campaigns for store -[**GetRetentionCampaignsForApp**](CampaignsApi.md#getretentioncampaignsforapp) | **GET** /api/v1.0/{appId}/campaigns/retention | Gets retention campaigns for app -[**GetRetentionCampaignsForStore**](CampaignsApi.md#getretentioncampaignsforstore) | **GET** /api/v1.0/{appId}/campaigns/retention/{storeId} | Gets retention campaigns for store -[**GetStoreList**](CampaignsApi.md#getstorelist) | **GET** /api/v1.0/{appId}/campaigns/stores | Gets list of stores for app -[**RemoveCampaign**](CampaignsApi.md#removecampaign) | **DELETE** /api/v1.0/{appId}/campaigns/{campaignId} | Deletes a campaign -[**UpdateLoyaltyCampaign**](CampaignsApi.md#updateloyaltycampaign) | **POST** /api/v1.0/{appId}/campaigns/loyalty/{campaignId} | Updates loyalty campaign -[**UpdateRetentionCampaign**](CampaignsApi.md#updateretentioncampaign) | **POST** /api/v1.0/{appId}/campaigns/retention/{campaignId} | Updates retention campaign +[**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) -Creates loyalty campaign + ### Example ```csharp @@ -40,12 +40,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CampaignsApi(); - var appId = appId_example; // string | App Name Id - var campaign = new LoyaltyCampaignBase(); // LoyaltyCampaignBase | Loyalty campaign details + var appId = appId_example; // string | + var campaign = new LoyaltyCampaignBase(); // LoyaltyCampaignBase | try { - // Creates loyalty campaign RestApiResultLoyaltyCampaign result = apiInstance.CreateLoyaltyCampaign(appId, campaign); Debug.WriteLine(result); } @@ -62,8 +61,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **campaign** | [**LoyaltyCampaignBase**](LoyaltyCampaignBase.md)| Loyalty campaign details | + **appId** | **string**| | + **campaign** | [**LoyaltyCampaignBase**](LoyaltyCampaignBase.md)| | ### Return type @@ -84,7 +83,7 @@ Name | Type | Description | Notes # **CreateRetentionCampaign** > RestApiResultRetentionCampaign CreateRetentionCampaign (string appId, RetentionCampaignBase campaign) -Creates retention campaign + ### Example ```csharp @@ -104,12 +103,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CampaignsApi(); - var appId = appId_example; // string | App Name Id - var campaign = new RetentionCampaignBase(); // RetentionCampaignBase | Retention campaign details + var appId = appId_example; // string | + var campaign = new RetentionCampaignBase(); // RetentionCampaignBase | try { - // Creates retention campaign RestApiResultRetentionCampaign result = apiInstance.CreateRetentionCampaign(appId, campaign); Debug.WriteLine(result); } @@ -126,8 +124,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **campaign** | [**RetentionCampaignBase**](RetentionCampaignBase.md)| Retention campaign details | + **appId** | **string**| | + **campaign** | [**RetentionCampaignBase**](RetentionCampaignBase.md)| | ### Return type @@ -148,7 +146,7 @@ Name | Type | Description | Notes # **GetLoyaltyCampaignsForApp** > RestApiArrayResultLoyaltyCampaign GetLoyaltyCampaignsForApp (string appId) -Gets loyalty campaigns for app + ### Example ```csharp @@ -168,11 +166,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CampaignsApi(); - var appId = appId_example; // string | App Name Id + var appId = appId_example; // string | try { - // Gets loyalty campaigns for app RestApiArrayResultLoyaltyCampaign result = apiInstance.GetLoyaltyCampaignsForApp(appId); Debug.WriteLine(result); } @@ -189,7 +186,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | + **appId** | **string**| | ### Return type @@ -210,7 +207,7 @@ Name | Type | Description | Notes # **GetLoyaltyCampaignsForStore** > RestApiArrayResultLoyaltyCampaign GetLoyaltyCampaignsForStore (string appId, int? storeId) -Gets loyalty campaigns for store + ### Example ```csharp @@ -230,12 +227,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CampaignsApi(); - var appId = appId_example; // string | App Name Id - var storeId = 56; // int? | Store Id + var appId = appId_example; // string | + var storeId = 56; // int? | try { - // Gets loyalty campaigns for store RestApiArrayResultLoyaltyCampaign result = apiInstance.GetLoyaltyCampaignsForStore(appId, storeId); Debug.WriteLine(result); } @@ -252,8 +248,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **storeId** | **int?**| Store Id | + **appId** | **string**| | + **storeId** | **int?**| | ### Return type @@ -274,7 +270,7 @@ Name | Type | Description | Notes # **GetRetentionCampaignsForApp** > RestApiArrayResultRetentionCampaign GetRetentionCampaignsForApp (string appId) -Gets retention campaigns for app + ### Example ```csharp @@ -294,11 +290,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CampaignsApi(); - var appId = appId_example; // string | App Name Id + var appId = appId_example; // string | try { - // Gets retention campaigns for app RestApiArrayResultRetentionCampaign result = apiInstance.GetRetentionCampaignsForApp(appId); Debug.WriteLine(result); } @@ -315,7 +310,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | + **appId** | **string**| | ### Return type @@ -336,7 +331,7 @@ Name | Type | Description | Notes # **GetRetentionCampaignsForStore** > RestApiArrayResultRetentionCampaign GetRetentionCampaignsForStore (string appId, int? storeId) -Gets retention campaigns for store + ### Example ```csharp @@ -356,12 +351,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CampaignsApi(); - var appId = appId_example; // string | App Name Id - var storeId = 56; // int? | Store Id + var appId = appId_example; // string | + var storeId = 56; // int? | try { - // Gets retention campaigns for store RestApiArrayResultRetentionCampaign result = apiInstance.GetRetentionCampaignsForStore(appId, storeId); Debug.WriteLine(result); } @@ -378,8 +372,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **storeId** | **int?**| Store Id | + **appId** | **string**| | + **storeId** | **int?**| | ### Return type @@ -400,7 +394,7 @@ Name | Type | Description | Notes # **GetStoreList** > RestApiArrayResultStoreListItem GetStoreList (string appId, bool? onlyPublished = null) -Gets list of stores for app + ### Example ```csharp @@ -420,12 +414,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CampaignsApi(); - var appId = appId_example; // string | App Name Id + var appId = appId_example; // string | var onlyPublished = true; // bool? | (optional) try { - // Gets list of stores for app RestApiArrayResultStoreListItem result = apiInstance.GetStoreList(appId, onlyPublished); Debug.WriteLine(result); } @@ -442,7 +435,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | + **appId** | **string**| | **onlyPublished** | **bool?**| | [optional] ### Return type @@ -464,7 +457,7 @@ Name | Type | Description | Notes # **RemoveCampaign** > void RemoveCampaign (string appId, int? campaignId) -Deletes a campaign + ### Example ```csharp @@ -484,12 +477,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CampaignsApi(); - var appId = appId_example; // string | App Name Id - var campaignId = 56; // int? | Campaign Id + var appId = appId_example; // string | + var campaignId = 56; // int? | try { - // Deletes a campaign apiInstance.RemoveCampaign(appId, campaignId); } catch (Exception e) @@ -505,8 +497,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **campaignId** | **int?**| Campaign Id | + **appId** | **string**| | + **campaignId** | **int?**| | ### Return type @@ -527,7 +519,7 @@ void (empty response body) # **UpdateLoyaltyCampaign** > RestApiResultLoyaltyCampaign UpdateLoyaltyCampaign (string appId, int? campaignId, LoyaltyCampaignBase campaign) -Updates loyalty campaign + ### Example ```csharp @@ -547,13 +539,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CampaignsApi(); - var appId = appId_example; // string | App Name Id - var campaignId = 56; // int? | Loyalty campaign Id - var campaign = new LoyaltyCampaignBase(); // LoyaltyCampaignBase | Loyalty campaign details + var appId = appId_example; // string | + var campaignId = 56; // int? | + var campaign = new LoyaltyCampaignBase(); // LoyaltyCampaignBase | try { - // Updates loyalty campaign RestApiResultLoyaltyCampaign result = apiInstance.UpdateLoyaltyCampaign(appId, campaignId, campaign); Debug.WriteLine(result); } @@ -570,9 +561,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **campaignId** | **int?**| Loyalty campaign Id | - **campaign** | [**LoyaltyCampaignBase**](LoyaltyCampaignBase.md)| Loyalty campaign details | + **appId** | **string**| | + **campaignId** | **int?**| | + **campaign** | [**LoyaltyCampaignBase**](LoyaltyCampaignBase.md)| | ### Return type @@ -593,7 +584,7 @@ Name | Type | Description | Notes # **UpdateRetentionCampaign** > RestApiResultRetentionCampaign UpdateRetentionCampaign (string appId, int? campaignId, RetentionCampaignBase campaign) -Updates retention campaign + ### Example ```csharp @@ -613,13 +604,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CampaignsApi(); - var appId = appId_example; // string | App Name Id - var campaignId = 56; // int? | Retention campaign Id - var campaign = new RetentionCampaignBase(); // RetentionCampaignBase | Retention campaign details + var appId = appId_example; // string | + var campaignId = 56; // int? | + var campaign = new RetentionCampaignBase(); // RetentionCampaignBase | try { - // Updates retention campaign RestApiResultRetentionCampaign result = apiInstance.UpdateRetentionCampaign(appId, campaignId, campaign); Debug.WriteLine(result); } @@ -636,9 +626,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **campaignId** | **int?**| Retention campaign Id | - **campaign** | [**RetentionCampaignBase**](RetentionCampaignBase.md)| Retention campaign details | + **appId** | **string**| | + **campaignId** | **int?**| | + **campaign** | [**RetentionCampaignBase**](RetentionCampaignBase.md)| | ### Return type 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/CardReadersApi.md b/docs/CardReadersApi.md index 2c087b36..1a176179 100644 --- a/docs/CardReadersApi.md +++ b/docs/CardReadersApi.md @@ -4,29 +4,27 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AuthorizeStripeTerminal**](CardReadersApi.md#authorizestripeterminal) | **POST** /api/v1.0/{appId}/stripeterminal/authorize | Get Authorization Key for Stripe Terminal -[**CancelCurrentlyInitiatedBluetoothDeviceUpdate**](CardReadersApi.md#cancelcurrentlyinitiatedbluetoothdeviceupdate) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/cancelUpdate | Cancel currently initiated install update for bluetooth terminal -[**CancelReaderAction**](CardReadersApi.md#cancelreaderaction) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/{readerId}/cancel_action | Cancel terminals action -[**CardReadersGetReader**](CardReadersApi.md#cardreadersgetreader) | **GET** /api/v1.0/{appId}/payments/terminals/stripe/{readerId} | Get reader -[**GenerateStripeTerminalLocation**](CardReadersApi.md#generatestripeterminallocation) | **POST** /api/v1.0/{appId}/stripeterminal/location | Get Location ID for Stripe Terminal -[**GetBluetoothTerminalStatus**](CardReadersApi.md#getbluetoothterminalstatus) | **GET** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/status | Get the status of the bluetooth terminal -[**GetStripeConnectionToken**](CardReadersApi.md#getstripeconnectiontoken) | **GET** /api/v1.0/{appId}/stripeterminal/connectiontoken | Get Connection Token For a Stripe Terminal -[**InitiateBluetoothTerminalDeviceUpdateCheck**](CardReadersApi.md#initiatebluetoothterminaldeviceupdatecheck) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/checkForUpdate | Trigger check for Bluetooth device update on Kiosk -[**InitiateKioskBluetoothPairingMode**](CardReadersApi.md#initiatekioskbluetoothpairingmode) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/pair | Initiate stripe terminal pairing mode -[**InitiateKioskBluetoothUpdateInstall**](CardReadersApi.md#initiatekioskbluetoothupdateinstall) | **POST** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/{terminalType}/installUpdate | Initiate Kiosk Update Install for bluetooth terminal -[**InitiateReaderProcessPaymentIntent**](CardReadersApi.md#initiatereaderprocesspaymentintent) | **POST** /api/v1.0/{appId}/payments/terminals/stripe/{readerId}/processPaymentIntent | Initiate Stripe terminal to Process Payment Intent +[**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 | Un-register terminal by deleting it from stripe -[**UnpairCurrentlyPairedBluetoothDevice**](CardReadersApi.md#unpaircurrentlypairedbluetoothdevice) | **DELETE** /api/v1.0/{appId}/cardreaders/kiosk/{deviceId}/bluetooth/unpair | Unpair the currently paired stripe terminal +[**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 | - -# **AuthorizeStripeTerminal** -> RestApiResultStripeTerminalPrivateKey AuthorizeStripeTerminal (string appId) + +# **CancelCurrentlyInitiatedBluetoothDeviceUpdate** +> void CancelCurrentlyInitiatedBluetoothDeviceUpdate (string appId, string deviceId, string terminalType) -Get Authorization Key for Stripe Terminal -Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -38,7 +36,7 @@ using Flipdish.Model; namespace Example { - public class AuthorizeStripeTerminalExample + public class CancelCurrentlyInitiatedBluetoothDeviceUpdateExample { public void main() { @@ -47,16 +45,16 @@ namespace Example var apiInstance = new CardReadersApi(); var appId = appId_example; // string | + var deviceId = deviceId_example; // string | + var terminalType = terminalType_example; // string | try { - // Get Authorization Key for Stripe Terminal - RestApiResultStripeTerminalPrivateKey result = apiInstance.AuthorizeStripeTerminal(appId); - Debug.WriteLine(result); + apiInstance.CancelCurrentlyInitiatedBluetoothDeviceUpdate(appId, deviceId, terminalType); } catch (Exception e) { - Debug.Print("Exception when calling CardReadersApi.AuthorizeStripeTerminal: " + e.Message ); + Debug.Print("Exception when calling CardReadersApi.CancelCurrentlyInitiatedBluetoothDeviceUpdate: " + e.Message ); } } } @@ -68,10 +66,12 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **appId** | **string**| | + **deviceId** | **string**| | + **terminalType** | **string**| | ### Return type -[**RestApiResultStripeTerminalPrivateKey**](RestApiResultStripeTerminalPrivateKey.md) +void (empty response body) ### Authorization @@ -84,13 +84,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **CancelCurrentlyInitiatedBluetoothDeviceUpdate** -> void CancelCurrentlyInitiatedBluetoothDeviceUpdate (string appId, string deviceId, string terminalType) + +# **CancelReaderAction** +> RestApiResultCardReader CancelReaderAction (string readerId, string appId) -Cancel currently initiated install update for bluetooth terminal -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -102,7 +100,7 @@ using Flipdish.Model; namespace Example { - public class CancelCurrentlyInitiatedBluetoothDeviceUpdateExample + public class CancelReaderActionExample { public void main() { @@ -110,18 +108,17 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CardReadersApi(); + var readerId = readerId_example; // string | var appId = appId_example; // string | - var deviceId = deviceId_example; // string | - var terminalType = terminalType_example; // string | try { - // Cancel currently initiated install update for bluetooth terminal - apiInstance.CancelCurrentlyInitiatedBluetoothDeviceUpdate(appId, deviceId, terminalType); + RestApiResultCardReader result = apiInstance.CancelReaderAction(readerId, appId); + Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling CardReadersApi.CancelCurrentlyInitiatedBluetoothDeviceUpdate: " + e.Message ); + Debug.Print("Exception when calling CardReadersApi.CancelReaderAction: " + e.Message ); } } } @@ -132,13 +129,12 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **readerId** | **string**| | **appId** | **string**| | - **deviceId** | **string**| | - **terminalType** | **string**| | ### Return type -void (empty response body) +[**RestApiResultCardReader**](RestApiResultCardReader.md) ### Authorization @@ -151,13 +147,11 @@ void (empty response body) [[Back to top]](#) [[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) + +# **CardReadersGetReader** +> RestApiResultCardReader CardReadersGetReader (string readerId, string appId) -Cancel terminals action -Can only be called by Kiosk ### Example ```csharp @@ -169,7 +163,7 @@ using Flipdish.Model; namespace Example { - public class CancelReaderActionExample + public class CardReadersGetReaderExample { public void main() { @@ -182,13 +176,12 @@ namespace Example try { - // Cancel terminals action - RestApiResultCardReader result = apiInstance.CancelReaderAction(readerId, appId); + RestApiResultCardReader result = apiInstance.CardReadersGetReader(readerId, appId); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling CardReadersApi.CancelReaderAction: " + e.Message ); + Debug.Print("Exception when calling CardReadersApi.CardReadersGetReader: " + e.Message ); } } } @@ -217,13 +210,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) + +# **GenerateStripeTerminalLocation** +> RestApiResultStripeTerminalLocation GenerateStripeTerminalLocation (GeoPointRequest geoPointRequest, string appId) -Get reader -Can only be called by Kiosk ### Example ```csharp @@ -235,7 +226,7 @@ using Flipdish.Model; namespace Example { - public class CardReadersGetReaderExample + public class GenerateStripeTerminalLocationExample { public void main() { @@ -243,18 +234,17 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CardReadersApi(); - var readerId = readerId_example; // string | + var geoPointRequest = new GeoPointRequest(); // GeoPointRequest | var appId = appId_example; // string | try { - // Get reader - RestApiResultCardReader result = apiInstance.CardReadersGetReader(readerId, appId); + RestApiResultStripeTerminalLocation result = apiInstance.GenerateStripeTerminalLocation(geoPointRequest, appId); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling CardReadersApi.CardReadersGetReader: " + e.Message ); + Debug.Print("Exception when calling CardReadersApi.GenerateStripeTerminalLocation: " + e.Message ); } } } @@ -265,12 +255,12 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **readerId** | **string**| | + **geoPointRequest** | [**GeoPointRequest**](GeoPointRequest.md)| | **appId** | **string**| | ### Return type -[**RestApiResultCardReader**](RestApiResultCardReader.md) +[**RestApiResultStripeTerminalLocation**](RestApiResultStripeTerminalLocation.md) ### Authorization @@ -278,18 +268,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **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) - -# **GenerateStripeTerminalLocation** -> RestApiResultStripeTerminalLocation GenerateStripeTerminalLocation (GeoPointRequest geoPointRequest, string appId) + +# **GetBluetoothTerminalStatus** +> RestApiResultBluetoothTerminalStatus GetBluetoothTerminalStatus (string appId, string deviceId) -Get Location ID for Stripe Terminal -Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -301,7 +289,7 @@ using Flipdish.Model; namespace Example { - public class GenerateStripeTerminalLocationExample + public class GetBluetoothTerminalStatusExample { public void main() { @@ -309,18 +297,17 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CardReadersApi(); - var geoPointRequest = new GeoPointRequest(); // GeoPointRequest | var appId = appId_example; // string | + var deviceId = deviceId_example; // string | try { - // Get Location ID for Stripe Terminal - RestApiResultStripeTerminalLocation result = apiInstance.GenerateStripeTerminalLocation(geoPointRequest, appId); + RestApiResultBluetoothTerminalStatus result = apiInstance.GetBluetoothTerminalStatus(appId, deviceId); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling CardReadersApi.GenerateStripeTerminalLocation: " + e.Message ); + Debug.Print("Exception when calling CardReadersApi.GetBluetoothTerminalStatus: " + e.Message ); } } } @@ -331,12 +318,12 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **geoPointRequest** | [**GeoPointRequest**](GeoPointRequest.md)| | **appId** | **string**| | + **deviceId** | **string**| | ### Return type -[**RestApiResultStripeTerminalLocation**](RestApiResultStripeTerminalLocation.md) +[**RestApiResultBluetoothTerminalStatus**](RestApiResultBluetoothTerminalStatus.md) ### Authorization @@ -344,18 +331,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded + - **Content-Type**: Not defined - **Accept**: application/json, text/json, application/xml, text/xml [[Back to top]](#) [[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) + +# **GetKioskStripeLocation** +> RestApiResultKioskStripeLocation GetKioskStripeLocation (string appId, string deviceId) -Get the status of the bluetooth terminal -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -367,7 +352,7 @@ using Flipdish.Model; namespace Example { - public class GetBluetoothTerminalStatusExample + public class GetKioskStripeLocationExample { public void main() { @@ -380,13 +365,12 @@ namespace Example try { - // Get the status of the bluetooth terminal - RestApiResultBluetoothTerminalStatus result = apiInstance.GetBluetoothTerminalStatus(appId, deviceId); + RestApiResultKioskStripeLocation result = apiInstance.GetKioskStripeLocation(appId, deviceId); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling CardReadersApi.GetBluetoothTerminalStatus: " + e.Message ); + Debug.Print("Exception when calling CardReadersApi.GetKioskStripeLocation: " + e.Message ); } } } @@ -402,7 +386,7 @@ Name | Type | Description | Notes ### Return type -[**RestApiResultBluetoothTerminalStatus**](RestApiResultBluetoothTerminalStatus.md) +[**RestApiResultKioskStripeLocation**](RestApiResultKioskStripeLocation.md) ### Authorization @@ -419,9 +403,7 @@ Name | Type | Description | Notes # **GetStripeConnectionToken** > RestApiResultStripeTerminalConnectionToken GetStripeConnectionToken (string appId) -Get Connection Token For a Stripe Terminal -Can only be called by Kiosk ### Example ```csharp @@ -445,7 +427,6 @@ namespace Example try { - // Get Connection Token For a Stripe Terminal RestApiResultStripeTerminalConnectionToken result = apiInstance.GetStripeConnectionToken(appId); Debug.WriteLine(result); } @@ -483,9 +464,7 @@ Name | Type | Description | Notes # **InitiateBluetoothTerminalDeviceUpdateCheck** > void InitiateBluetoothTerminalDeviceUpdateCheck (string appId, string deviceId, string terminalType) -Trigger check for Bluetooth device update on Kiosk -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -511,7 +490,6 @@ namespace Example try { - // Trigger check for Bluetooth device update on Kiosk apiInstance.InitiateBluetoothTerminalDeviceUpdateCheck(appId, deviceId, terminalType); } catch (Exception e) @@ -550,9 +528,7 @@ void (empty response body) # **InitiateKioskBluetoothPairingMode** > void InitiateKioskBluetoothPairingMode (string appId, string deviceId, string terminalType) -Initiate stripe terminal pairing mode -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -578,7 +554,6 @@ namespace Example try { - // Initiate stripe terminal pairing mode apiInstance.InitiateKioskBluetoothPairingMode(appId, deviceId, terminalType); } catch (Exception e) @@ -617,9 +592,7 @@ void (empty response body) # **InitiateKioskBluetoothUpdateInstall** > void InitiateKioskBluetoothUpdateInstall (string appId, string deviceId, string terminalType) -Initiate Kiosk Update Install for bluetooth terminal -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -645,7 +618,6 @@ namespace Example try { - // Initiate Kiosk Update Install for bluetooth terminal apiInstance.InitiateKioskBluetoothUpdateInstall(appId, deviceId, terminalType); } catch (Exception e) @@ -684,9 +656,7 @@ void (empty response body) # **InitiateReaderProcessPaymentIntent** > RestApiResultCardReader InitiateReaderProcessPaymentIntent (ProcessPaymentIntentRequest request, string readerId, string appId) -Initiate Stripe terminal to Process Payment Intent -Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -712,7 +682,6 @@ namespace Example try { - // Initiate Stripe terminal to Process Payment Intent RestApiResultCardReader result = apiInstance.InitiateReaderProcessPaymentIntent(request, readerId, appId); Debug.WriteLine(result); } @@ -815,9 +784,7 @@ Name | Type | Description | Notes # **UnRegisterTerminal** > RestApiResultCardReader UnRegisterTerminal (UnRegisterCardReaderRequest request, string appId) -Un-register terminal by deleting it from stripe -Can only be called by Kiosk ### Example ```csharp @@ -842,7 +809,6 @@ namespace Example try { - // Un-register terminal by deleting it from stripe RestApiResultCardReader result = apiInstance.UnRegisterTerminal(request, appId); Debug.WriteLine(result); } @@ -881,9 +847,7 @@ Name | Type | Description | Notes # **UnpairCurrentlyPairedBluetoothDevice** > void UnpairCurrentlyPairedBluetoothDevice (string appId, string deviceId) -Unpair the currently paired stripe terminal -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -908,7 +872,6 @@ namespace Example try { - // Unpair the currently paired stripe terminal apiInstance.UnpairCurrentlyPairedBluetoothDevice(appId, deviceId); } catch (Exception e) diff --git a/docs/CatalogGroupArchivedEvent.md b/docs/CatalogGroupArchivedEvent.md index 2e43fde1..edd259bc 100644 --- a/docs/CatalogGroupArchivedEvent.md +++ b/docs/CatalogGroupArchivedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index 830cc28b..023f025d 100644 --- a/docs/CatalogGroupCreatedEvent.md +++ b/docs/CatalogGroupCreatedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index 5ad06746..f5b4189d 100644 --- a/docs/CatalogGroupReference.md +++ b/docs/CatalogGroupReference.md @@ -3,7 +3,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | [**Group**](Group.md) | Details of the referenced {Flipdish.PublicModels.V1.Catalog.Items.CatalogItem} | [optional] +**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 | diff --git a/docs/CatalogGroupUpdatedEvent.md b/docs/CatalogGroupUpdatedEvent.md index dd70a60a..deeefc99 100644 --- a/docs/CatalogGroupUpdatedEvent.md +++ b/docs/CatalogGroupUpdatedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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/CatalogItemArchivedEvent.md b/docs/CatalogItemArchivedEvent.md index 96165679..6e99707c 100644 --- a/docs/CatalogItemArchivedEvent.md +++ b/docs/CatalogItemArchivedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index 85a528e8..a3696480 100644 --- a/docs/CatalogItemCreatedEvent.md +++ b/docs/CatalogItemCreatedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index 590d7f6a..939d563f 100644 --- a/docs/CatalogItemUpdatedEvent.md +++ b/docs/CatalogItemUpdatedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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/CertificateCreatedEvent.md b/docs/CertificateCreatedEvent.md index 8e480cfa..930efb63 100644 --- a/docs/CertificateCreatedEvent.md +++ b/docs/CertificateCreatedEvent.md @@ -9,7 +9,10 @@ Name | Type | Description | Notes **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 index ba639fac..78be1125 100644 --- a/docs/CertificateRenewedEvent.md +++ b/docs/CertificateRenewedEvent.md @@ -9,7 +9,10 @@ Name | Type | Description | Notes **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/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 index f9752d5d..c6f7abaa 100644 --- a/docs/ChannelsApi.md +++ b/docs/ChannelsApi.md @@ -4,25 +4,25 @@ 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 | Assign a given AppId to a Sales Channel -[**AssignStoreToChannel**](ChannelsApi.md#assignstoretochannel) | **POST** /api/v1.0/{appId}/channels/assign-store | Assign a Store to a Sales Channel -[**AttachStoreToSalesChannel**](ChannelsApi.md#attachstoretosaleschannel) | **POST** /api/v1.0/{appId}/channels/{channelId}/stores/{storeId} | Attachs the specified store to the given sales channel. -[**DetachAllStoresFromSalesChannel**](ChannelsApi.md#detachallstoresfromsaleschannel) | **DELETE** /api/v1.0/{appId}/channels/{channelId}/stores | Detaches all the stores from the given sales channel. -[**DetachStoreFromSalesChannel**](ChannelsApi.md#detachstorefromsaleschannel) | **DELETE** /api/v1.0/{appId}/channels/{channelId}/stores/{storeId} | Detaches the specified store from the given sales channel. -[**GetAssignedChannels**](ChannelsApi.md#getassignedchannels) | **GET** /api/v1.0/{appId}/channels/assigned-channels | Returns a list of sales channels that are assigned to a given AppId -[**GetAvailableChannels**](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 -[**GetChannel**](ChannelsApi.md#getchannel) | **GET** /api/v1.0/{appId}/channels/{id} | Returns a Sales Channel by Id. -[**GetChannels**](ChannelsApi.md#getchannels) | **GET** /api/v1.0/{appId}/channels | Returns a list of enabled Channels -[**GetStoresAssignedToChannel**](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 -[**GetStoresBySalesChannel**](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. -[**UnassignStoreFromChannel**](ChannelsApi.md#unassignstorefromchannel) | **DELETE** /api/v1.0/{appId}/channels/unassign-store | Unassign a Store from a Sales Channel +[**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) -Assign a given AppId to a Sales Channel + ### Example ```csharp @@ -42,12 +42,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ChannelsApi(); - var appId = appId_example; // string | Application Id (AppNameIdxxx) - var channelId = 56; // int? | Channel Id (123, 456) + var appId = appId_example; // string | + var channelId = 56; // int? | try { - // Assign a given AppId to a Sales Channel Object result = apiInstance.AssignAppIdToSalesChannel(appId, channelId); Debug.WriteLine(result); } @@ -64,8 +63,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application Id (AppNameIdxxx) | - **channelId** | **int?**| Channel Id (123, 456) | + **appId** | **string**| | + **channelId** | **int?**| | ### Return type @@ -86,7 +85,7 @@ Name | Type | Description | Notes # **AssignStoreToChannel** > Object AssignStoreToChannel (int? storeId, string appId, int? channelId) -Assign a Store to a Sales Channel + ### Example ```csharp @@ -106,13 +105,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ChannelsApi(); - var storeId = 56; // int? | Store Id (123, 456) - var appId = appId_example; // string | AppId (AppNameIdxxx) - var channelId = 56; // int? | Channel Id (123, 456) + var storeId = 56; // int? | + var appId = appId_example; // string | + var channelId = 56; // int? | try { - // Assign a Store to a Sales Channel Object result = apiInstance.AssignStoreToChannel(storeId, appId, channelId); Debug.WriteLine(result); } @@ -129,9 +127,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store Id (123, 456) | - **appId** | **string**| AppId (AppNameIdxxx) | - **channelId** | **int?**| Channel Id (123, 456) | + **storeId** | **int?**| | + **appId** | **string**| | + **channelId** | **int?**| | ### Return type @@ -152,7 +150,7 @@ Name | Type | Description | Notes # **AttachStoreToSalesChannel** > Object AttachStoreToSalesChannel (string appId, int? channelId, int? storeId) -Attachs the specified store to the given sales channel. + ### Example ```csharp @@ -172,13 +170,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ChannelsApi(); - var appId = appId_example; // string | Application Id (AppNameId) - var channelId = 56; // int? | Type of sales channel (Android, IOS, Web, etc.) - var storeId = 56; // int? | Store Id (Phyisical Restaurant) to attach. + var appId = appId_example; // string | + var channelId = 56; // int? | + var storeId = 56; // int? | try { - // Attachs the specified store to the given sales channel. Object result = apiInstance.AttachStoreToSalesChannel(appId, channelId, storeId); Debug.WriteLine(result); } @@ -195,9 +192,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application Id (AppNameId) | - **channelId** | **int?**| Type of sales channel (Android, IOS, Web, etc.) | - **storeId** | **int?**| Store Id (Phyisical Restaurant) to attach. | + **appId** | **string**| | + **channelId** | **int?**| | + **storeId** | **int?**| | ### Return type @@ -218,7 +215,7 @@ Name | Type | Description | Notes # **DetachAllStoresFromSalesChannel** > Object DetachAllStoresFromSalesChannel (string appId, int? channelId) -Detaches all the stores from the given sales channel. + ### Example ```csharp @@ -238,12 +235,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ChannelsApi(); - var appId = appId_example; // string | Application Id (AppNameId) - var channelId = 56; // int? | Type of sales channel (Android, IOS, Web, etc.) + var appId = appId_example; // string | + var channelId = 56; // int? | try { - // Detaches all the stores from the given sales channel. Object result = apiInstance.DetachAllStoresFromSalesChannel(appId, channelId); Debug.WriteLine(result); } @@ -260,8 +256,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application Id (AppNameId) | - **channelId** | **int?**| Type of sales channel (Android, IOS, Web, etc.) | + **appId** | **string**| | + **channelId** | **int?**| | ### Return type @@ -282,7 +278,7 @@ Name | Type | Description | Notes # **DetachStoreFromSalesChannel** > Object DetachStoreFromSalesChannel (string appId, int? channelId, int? storeId) -Detaches the specified store from the given sales channel. + ### Example ```csharp @@ -302,13 +298,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ChannelsApi(); - var appId = appId_example; // string | Application Id (AppNameId) - var channelId = 56; // int? | Type of sales channel (Android, IOS, Web, etc.) - var storeId = 56; // int? | Store Id (Phyisical Restaurant) to detach. + var appId = appId_example; // string | + var channelId = 56; // int? | + var storeId = 56; // int? | try { - // Detaches the specified store from the given sales channel. Object result = apiInstance.DetachStoreFromSalesChannel(appId, channelId, storeId); Debug.WriteLine(result); } @@ -325,9 +320,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application Id (AppNameId) | - **channelId** | **int?**| Type of sales channel (Android, IOS, Web, etc.) | - **storeId** | **int?**| Store Id (Phyisical Restaurant) to detach. | + **appId** | **string**| | + **channelId** | **int?**| | + **storeId** | **int?**| | ### Return type @@ -348,7 +343,7 @@ Name | Type | Description | Notes # **GetAssignedChannels** > RestApiArrayResultChannel GetAssignedChannels (string appId) -Returns a list of sales channels that are assigned to a given AppId + ### Example ```csharp @@ -368,11 +363,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ChannelsApi(); - var appId = appId_example; // string | Application Id (AppNameIdxxx) + var appId = appId_example; // string | try { - // Returns a list of sales channels that are assigned to a given AppId RestApiArrayResultChannel result = apiInstance.GetAssignedChannels(appId); Debug.WriteLine(result); } @@ -389,7 +383,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application Id (AppNameIdxxx) | + **appId** | **string**| | ### Return type @@ -410,7 +404,7 @@ Name | Type | Description | Notes # **GetAvailableChannels** > RestApiArrayResultChannel GetAvailableChannels (string appId) -Returns a list of sales channels that are not yet assigned to a given AppId + ### Example ```csharp @@ -430,11 +424,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ChannelsApi(); - var appId = appId_example; // string | Application Id (AppNameIdxxx) + var appId = appId_example; // string | try { - // Returns a list of sales channels that are not yet assigned to a given AppId RestApiArrayResultChannel result = apiInstance.GetAvailableChannels(appId); Debug.WriteLine(result); } @@ -451,7 +444,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application Id (AppNameIdxxx) | + **appId** | **string**| | ### Return type @@ -472,7 +465,7 @@ Name | Type | Description | Notes # **GetChannel** > RestApiResultChannel GetChannel (int? id, string appId) -Returns a Sales Channel by Id. + ### Example ```csharp @@ -492,12 +485,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ChannelsApi(); - var id = 56; // int? | ChannelId - var appId = appId_example; // string | AppId + var id = 56; // int? | + var appId = appId_example; // string | try { - // Returns a Sales Channel by Id. RestApiResultChannel result = apiInstance.GetChannel(id, appId); Debug.WriteLine(result); } @@ -514,8 +506,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int?**| ChannelId | - **appId** | **string**| AppId | + **id** | **int?**| | + **appId** | **string**| | ### Return type @@ -536,7 +528,7 @@ Name | Type | Description | Notes # **GetChannels** > RestApiArrayResultChannel GetChannels (string appId) -Returns a list of enabled Channels + ### Example ```csharp @@ -560,7 +552,6 @@ namespace Example try { - // Returns a list of enabled Channels RestApiArrayResultChannel result = apiInstance.GetChannels(appId); Debug.WriteLine(result); } @@ -598,7 +589,7 @@ Name | Type | Description | Notes # **GetStoresAssignedToChannel** > RestApiArrayResultStoreChannelAssignment GetStoresAssignedToChannel (string appId, int? channelId) -Returns a list of stores of an AppId that are assigned to a given Sales Channel + ### Example ```csharp @@ -618,12 +609,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ChannelsApi(); - var appId = appId_example; // string | Application Id (AppNameId) - var channelId = 56; // int? | Sales channel (Android, IOS, Web, etc.) + var appId = appId_example; // string | + var channelId = 56; // int? | try { - // Returns a list of stores of an AppId that are assigned to a given Sales Channel RestApiArrayResultStoreChannelAssignment result = apiInstance.GetStoresAssignedToChannel(appId, channelId); Debug.WriteLine(result); } @@ -640,8 +630,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application Id (AppNameId) | - **channelId** | **int?**| Sales channel (Android, IOS, Web, etc.) | + **appId** | **string**| | + **channelId** | **int?**| | ### Return type @@ -662,7 +652,7 @@ Name | Type | Description | Notes # **GetStoresBySalesChannel** > Response GetStoresBySalesChannel (string appId, int? channelId) -Returns a list of store ids attached to the given channel type for the specified app. + ### Example ```csharp @@ -682,12 +672,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ChannelsApi(); - var appId = appId_example; // string | Application Id (AppNameId) - var channelId = 56; // int? | Type of sales channel (Android, IOS, Web, etc.) + var appId = appId_example; // string | + var channelId = 56; // int? | try { - // Returns a list of store ids attached to the given channel type for the specified app. Response result = apiInstance.GetStoresBySalesChannel(appId, channelId); Debug.WriteLine(result); } @@ -704,8 +693,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application Id (AppNameId) | - **channelId** | **int?**| Type of sales channel (Android, IOS, Web, etc.) | + **appId** | **string**| | + **channelId** | **int?**| | ### Return type @@ -726,7 +715,7 @@ Name | Type | Description | Notes # **UnassignStoreFromChannel** > Object UnassignStoreFromChannel (int? storeId, string appId, int? channelId) -Unassign a Store from a Sales Channel + ### Example ```csharp @@ -746,13 +735,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ChannelsApi(); - var storeId = 56; // int? | Store Id (123, 456) - var appId = appId_example; // string | AppId (AppNameIdxxx) - var channelId = 56; // int? | Channel Id (123, 456) + var storeId = 56; // int? | + var appId = appId_example; // string | + var channelId = 56; // int? | try { - // Unassign a Store from a Sales Channel Object result = apiInstance.UnassignStoreFromChannel(storeId, appId, channelId); Debug.WriteLine(result); } @@ -769,9 +757,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store Id (123, 456) | - **appId** | **string**| AppId (AppNameIdxxx) | - **channelId** | **int?**| Channel Id (123, 456) | + **storeId** | **int?**| | + **appId** | **string**| | + **channelId** | **int?**| | ### Return type diff --git a/docs/ChargebackDetails.md b/docs/ChargebackDetails.md index 172b4dc2..bef20b39 100644 --- a/docs/ChargebackDetails.md +++ b/docs/ChargebackDetails.md @@ -4,6 +4,7 @@ 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] 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 index 2191fdd0..7ebde6f3 100644 --- a/docs/ConfiguredStore.md +++ b/docs/ConfiguredStore.md @@ -3,8 +3,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**StoreId** | **int?** | Store id | [optional] -**Name** | **string** | Name of store | [optional] +**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/CreateAccountModel.md b/docs/CreateAccountModel.md index b145cfc2..a9a90ccb 100644 --- a/docs/CreateAccountModel.md +++ b/docs/CreateAccountModel.md @@ -3,11 +3,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Email** | **string** | Email addres | +**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 index 9ed1bca9..bd1bfae2 100644 --- a/docs/CreateAppStoreApp.md +++ b/docs/CreateAppStoreApp.md @@ -3,21 +3,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Details** | **string** | Details | -**ConfigurationType** | **string** | Configuration type <example>External link</example><example>Flipdish hosted</example> | -**StoreSelectorType** | **string** | Store selector type | -**FieldGroups** | [**List<FieldGroup>**](FieldGroup.md) | Field groups | [optional] -**SetupInstructions** | **string** | Setup instructions | [optional] -**ExternalSetupLink** | **string** | External setup link | [optional] -**TeammateAppAccessLevel** | **string** | Teammate app access level | [optional] -**PermissionsType** | **string** | Permissions type | -**Support** | [**AppStoreAppSupportInfo**](AppStoreAppSupportInfo.md) | Support information | [optional] -**Name** | **string** | Name | -**Description** | **string** | Description | -**IsEnabled** | **bool?** | Is application enabled | [optional] -**Categories** | **List<string>** | Categories | -**Countries** | **List<string>** | Countries | -**DeveloperName** | **string** | Developer Name | [optional] +**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/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 index b73050a4..959a1cee 100644 --- a/docs/CreateFullMenu.md +++ b/docs/CreateFullMenu.md @@ -5,11 +5,12 @@ 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 (startes, main etc) | [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 index 74a9d5a2..4cce8a3c 100644 --- a/docs/CreateFullMenuItemOptionSet.md +++ b/docs/CreateFullMenuItemOptionSet.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **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 index 41e27bb9..376543e3 100644 --- a/docs/CreateFullMenuItemOptionSetItem.md +++ b/docs/CreateFullMenuItemOptionSetItem.md @@ -9,10 +9,12 @@ Name | Type | Description | Notes **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 index 7bbb5103..31c3224a 100644 --- a/docs/CreateFullMenuSection.md +++ b/docs/CreateFullMenuSection.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **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 index fe56d781..80fce367 100644 --- a/docs/CreateFullMenuSectionItem.md +++ b/docs/CreateFullMenuSectionItem.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **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] @@ -18,6 +19,8 @@ Name | Type | Description | Notes **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/CreateMetafieldDefinition.md b/docs/CreateMetafieldDefinition.md index 2a8f05d5..9c12eb2f 100644 --- a/docs/CreateMetafieldDefinition.md +++ b/docs/CreateMetafieldDefinition.md @@ -4,7 +4,7 @@ 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.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} | [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 | diff --git a/docs/CreatePayGreenConfigurationRequest.md b/docs/CreatePayGreenConfigurationRequest.md index dcf77fc8..41afa127 100644 --- a/docs/CreatePayGreenConfigurationRequest.md +++ b/docs/CreatePayGreenConfigurationRequest.md @@ -3,10 +3,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] -**PayGreenId** | **string** | | [optional] -**PayGreenPrivateKey** | **string** | | [optional] -**AssignedStores** | **List<int?>** | | [optional] +**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/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 index fcfb2b4d..5ea59e8f 100644 --- a/docs/CreateTeammate.md +++ b/docs/CreateTeammate.md @@ -7,6 +7,7 @@ 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/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 index 3c40c0ea..29dccb71 100644 --- a/docs/CreateVoucher.md +++ b/docs/CreateVoucher.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VoucherType** | **string** | Voucher Type | [optional] -**Stores** | **List<int?>** | Stores that this voucher applies to | [optional] -**AddItemDetails** | [**AddItemDetails**](AddItemDetails.md) | Add item details | [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] @@ -23,8 +23,16 @@ Name | Type | Description | Notes **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/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/Customer.md b/docs/Customer.md index 2ddc8c74..ea5fe5c3 100644 --- a/docs/Customer.md +++ b/docs/Customer.md @@ -4,7 +4,9 @@ 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] diff --git a/docs/CustomerConsentUpdatedEvent.md b/docs/CustomerConsentUpdatedEvent.md index 62ac4482..6f3b3490 100644 --- a/docs/CustomerConsentUpdatedEvent.md +++ b/docs/CustomerConsentUpdatedEvent.md @@ -4,6 +4,7 @@ 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] @@ -12,6 +13,8 @@ Name | Type | Description | Notes **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/Contact.md b/docs/CustomerCreateModel.md similarity index 50% rename from docs/Contact.md rename to docs/CustomerCreateModel.md index c20906e6..577de54c 100644 --- a/docs/Contact.md +++ b/docs/CustomerCreateModel.md @@ -1,12 +1,12 @@ -# Flipdish.Model.Contact +# Flipdish.Model.CustomerCreateModel ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Email** | **string** | Email Address | [optional] -**PhoneNumber** | **string** | International format Phone Number | [optional] -**FirstName** | **string** | First Name | [optional] -**LastName** | **string** | Last Name | [optional] +**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 index 304ad6b5..1a50dc2a 100644 --- a/docs/CustomerCreatedEvent.md +++ b/docs/CustomerCreatedEvent.md @@ -4,6 +4,7 @@ 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] @@ -11,6 +12,8 @@ Name | Type | Description | Notes **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/AddItemDetails.md b/docs/CustomerMessages.md similarity index 62% rename from docs/AddItemDetails.md rename to docs/CustomerMessages.md index 99ae0c24..bb609c2f 100644 --- a/docs/AddItemDetails.md +++ b/docs/CustomerMessages.md @@ -1,10 +1,10 @@ -# Flipdish.Model.AddItemDetails +# Flipdish.Model.CustomerMessages ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PromotionalItemId** | **int?** | Promotional Item Id | [optional] -**PromotionalItemName** | **string** | Promotional Item Name | [optional] +**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 index ed09fe74..4e6dfb9d 100644 --- a/docs/CustomerSummary.md +++ b/docs/CustomerSummary.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **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/CustomerUpdatedEvent.md b/docs/CustomerUpdatedEvent.md index 525a4b73..c7b107af 100644 --- a/docs/CustomerUpdatedEvent.md +++ b/docs/CustomerUpdatedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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 index 321f58e0..639f21ec 100644 --- a/docs/CustomersApi.md +++ b/docs/CustomersApi.md @@ -4,15 +4,80 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetCustomerById**](CustomersApi.md#getcustomerbyid) | **GET** /api/v1.0/{appId}/customers/{customerId} | Get customer of an app by Id -[**UpdateCustomerById**](CustomersApi.md#updatecustomerbyid) | **POST** /api/v1.0/{appId}/customers/{customerId} | Update customer of an app by Id +[**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) -Get customer of an app by Id + ### Example ```csharp @@ -32,12 +97,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CustomersApi(); - var appId = appId_example; // string | App Name Id - var customerId = 56; // int? | Customer Id + var appId = appId_example; // string | + var customerId = 56; // int? | try { - // Get customer of an app by Id RestApiResultCustomer result = apiInstance.GetCustomerById(appId, customerId); Debug.WriteLine(result); } @@ -54,8 +118,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **customerId** | **int?**| Customer Id | + **appId** | **string**| | + **customerId** | **int?**| | ### Return type @@ -72,11 +136,74 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) -Update customer of an app by Id + ### Example ```csharp @@ -96,13 +223,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new CustomersApi(); - var appId = appId_example; // string | App Name Id - var customerId = 56; // int? | Customer Id - var updateCustomer = new CustomerUpdateModel(); // CustomerUpdateModel | Updated customer information + var appId = appId_example; // string | + var customerId = 56; // int? | + var updateCustomer = new CustomerUpdateModel(); // CustomerUpdateModel | try { - // Update customer of an app by Id RestApiResultCustomer result = apiInstance.UpdateCustomerById(appId, customerId, updateCustomer); Debug.WriteLine(result); } @@ -119,9 +245,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **customerId** | **int?**| Customer Id | - **updateCustomer** | [**CustomerUpdateModel**](CustomerUpdateModel.md)| Updated customer information | + **appId** | **string**| | + **customerId** | **int?**| | + **updateCustomer** | [**CustomerUpdateModel**](CustomerUpdateModel.md)| | ### Return type diff --git a/docs/DeliveryTrackingApi.md b/docs/DeliveryTrackingApi.md deleted file mode 100644 index 6edd3e7d..00000000 --- a/docs/DeliveryTrackingApi.md +++ /dev/null @@ -1,404 +0,0 @@ -# Flipdish.Api.DeliveryTrackingApi - -All URIs are relative to *https://api.flipdish.co* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**AssignDriverToOrder**](DeliveryTrackingApi.md#assigndrivertoorder) | **POST** /api/v1.0/{appId}/drivers/{driverId}/orders/{orderId} | [PRIVATE] Assign driver to order -[**AssignDriverToOrders**](DeliveryTrackingApi.md#assigndrivertoorders) | **POST** /api/v1.0/{appId}/drivers/{driverId}/orders | Assign driver to multiple orders -[**GetDrivers**](DeliveryTrackingApi.md#getdrivers) | **GET** /api/v1.0/{appId}/drivers | [PRIVATE] Get drivers by App -[**InviteDriverToApp**](DeliveryTrackingApi.md#invitedrivertoapp) | **POST** /api/v1.0/{appId}/drivers | [PRIVATE] Invite driver -[**RemoveDriverFromApp**](DeliveryTrackingApi.md#removedriverfromapp) | **DELETE** /api/v1.0/{appId}/drivers/{driverId} | [PRIVATE] Unassign driver from app -[**UnassignDriverFromOrder**](DeliveryTrackingApi.md#unassigndriverfromorder) | **DELETE** /api/v1.0/{appId}/orders/{orderId}/driver | [PRIVATE] Unassign driver from order - - - -# **AssignDriverToOrder** -> void AssignDriverToOrder (string appId, int? orderId, int? driverId) - -[PRIVATE] Assign driver to order - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class AssignDriverToOrderExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new DeliveryTrackingApi(); - var appId = appId_example; // string | Application identifier - var orderId = 56; // int? | Order Id - var driverId = 56; // int? | Driver Id - - try - { - // [PRIVATE] Assign driver to order - apiInstance.AssignDriverToOrder(appId, orderId, driverId); - } - catch (Exception e) - { - Debug.Print("Exception when calling DeliveryTrackingApi.AssignDriverToOrder: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **orderId** | **int?**| Order Id | - **driverId** | **int?**| Driver 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) - - -# **AssignDriverToOrders** -> void AssignDriverToOrders (string appId, int? driverId, List orderIdAndSequenceNumbers) - -Assign driver to multiple orders - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class AssignDriverToOrdersExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new DeliveryTrackingApi(); - var appId = appId_example; // string | Application identifier - var driverId = 56; // int? | Driver Id - var orderIdAndSequenceNumbers = new List(); // List | Array of object containing OrderId and Sequence - - try - { - // Assign driver to multiple orders - apiInstance.AssignDriverToOrders(appId, driverId, orderIdAndSequenceNumbers); - } - catch (Exception e) - { - Debug.Print("Exception when calling DeliveryTrackingApi.AssignDriverToOrders: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **driverId** | **int?**| Driver Id | - **orderIdAndSequenceNumbers** | [**List<OrderIdAndSequenceNumber>**](OrderIdAndSequenceNumber.md)| Array of object containing OrderId and Sequence | - -### 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) - - -# **GetDrivers** -> RestApiArrayResultDriver GetDrivers (string appId, string name = null, string phoneNumber = null, int? storeId = null, string presence = null) - -[PRIVATE] Get drivers by App - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class GetDriversExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new DeliveryTrackingApi(); - var appId = appId_example; // string | Application identifier - var name = name_example; // string | Driver's username (optional) - var phoneNumber = phoneNumber_example; // string | Driver's phone number (optional) - var storeId = 56; // int? | Store Id (optional) - var presence = presence_example; // string | Offline/Online (optional) - - try - { - // [PRIVATE] Get drivers by App - RestApiArrayResultDriver result = apiInstance.GetDrivers(appId, name, phoneNumber, storeId, presence); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling DeliveryTrackingApi.GetDrivers: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **name** | **string**| Driver's username | [optional] - **phoneNumber** | **string**| Driver's phone number | [optional] - **storeId** | **int?**| Store Id | [optional] - **presence** | **string**| Offline/Online | [optional] - -### Return type - -[**RestApiArrayResultDriver**](RestApiArrayResultDriver.md) - -### Authorization - -[oauth2](../README.md#oauth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, text/json, application/xml, text/xml - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **InviteDriverToApp** -> RestApiResultDriver InviteDriverToApp (string appId, DriverInvitation driverInvitation) - -[PRIVATE] Invite driver - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class InviteDriverToAppExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new DeliveryTrackingApi(); - var appId = appId_example; // string | Application identifier - var driverInvitation = new DriverInvitation(); // DriverInvitation | Driver invitation model - - try - { - // [PRIVATE] Invite driver - RestApiResultDriver result = apiInstance.InviteDriverToApp(appId, driverInvitation); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling DeliveryTrackingApi.InviteDriverToApp: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **driverInvitation** | [**DriverInvitation**](DriverInvitation.md)| Driver invitation model | - -### Return type - -[**RestApiResultDriver**](RestApiResultDriver.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) - - -# **RemoveDriverFromApp** -> void RemoveDriverFromApp (string appId, int? driverId) - -[PRIVATE] Unassign driver from app - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class RemoveDriverFromAppExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new DeliveryTrackingApi(); - var appId = appId_example; // string | Application identifier - var driverId = 56; // int? | Driver Id - - try - { - // [PRIVATE] Unassign driver from app - apiInstance.RemoveDriverFromApp(appId, driverId); - } - catch (Exception e) - { - Debug.Print("Exception when calling DeliveryTrackingApi.RemoveDriverFromApp: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **driverId** | **int?**| Driver 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) - - -# **UnassignDriverFromOrder** -> void UnassignDriverFromOrder (string appId, int? orderId) - -[PRIVATE] Unassign driver from order - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class UnassignDriverFromOrderExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new DeliveryTrackingApi(); - var appId = appId_example; // string | Application identifier - var orderId = 56; // int? | Order Id - - try - { - // [PRIVATE] Unassign driver from order - apiInstance.UnassignDriverFromOrder(appId, orderId); - } - catch (Exception e) - { - Debug.Print("Exception when calling DeliveryTrackingApi.UnassignDriverFromOrder: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **orderId** | **int?**| Order 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) - diff --git a/docs/DeliveryZone.md b/docs/DeliveryZone.md index 2f24d59b..7a319b70 100644 --- a/docs/DeliveryZone.md +++ b/docs/DeliveryZone.md @@ -4,6 +4,7 @@ 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] diff --git a/docs/DeliveryZoneApi.md b/docs/DeliveryZoneApi.md index 2d8adab4..8eb3439b 100644 --- a/docs/DeliveryZoneApi.md +++ b/docs/DeliveryZoneApi.md @@ -4,17 +4,17 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AddDeliveryZone**](DeliveryZoneApi.md#adddeliveryzone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones | Adds a delivery zone to the store id -[**GetDeliveryZones**](DeliveryZoneApi.md#getdeliveryzones) | **GET** /api/v1.0/stores/{storeId}/deliveryzones | Get all the delivery zones associated with a store -[**RemoveDeliveryZone**](DeliveryZoneApi.md#removedeliveryzone) | **DELETE** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | Removes the existing delivery zone -[**UpdateDeliveryZone**](DeliveryZoneApi.md#updatedeliveryzone) | **POST** /api/v1.0/stores/{storeId}/deliveryzones/{deliveryZoneId} | Updates the existing delivery zone +[**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) -Adds a delivery zone to the store id + ### Example ```csharp @@ -34,12 +34,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new DeliveryZoneApi(); - var storeId = 56; // int? | Store Id to which the delivery zone will be added - var deliveryZoneBase = new DeliveryZoneBase(); // DeliveryZoneBase | Optional delivery zone, if not supplied will create a default zone + var storeId = 56; // int? | + var deliveryZoneBase = new DeliveryZoneBase(); // DeliveryZoneBase | try { - // Adds a delivery zone to the store id RestApiResultDeliveryZone result = apiInstance.AddDeliveryZone(storeId, deliveryZoneBase); Debug.WriteLine(result); } @@ -56,8 +55,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store Id to which the delivery zone will be added | - **deliveryZoneBase** | [**DeliveryZoneBase**](DeliveryZoneBase.md)| Optional delivery zone, if not supplied will create a default zone | + **storeId** | **int?**| | + **deliveryZoneBase** | [**DeliveryZoneBase**](DeliveryZoneBase.md)| | ### Return type @@ -78,7 +77,7 @@ Name | Type | Description | Notes # **GetDeliveryZones** > RestApiArrayResultDeliveryZone GetDeliveryZones (int? storeId) -Get all the delivery zones associated with a store + ### Example ```csharp @@ -98,11 +97,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new DeliveryZoneApi(); - var storeId = 56; // int? | Store Id to which the delivery zones are associated + var storeId = 56; // int? | try { - // Get all the delivery zones associated with a store RestApiArrayResultDeliveryZone result = apiInstance.GetDeliveryZones(storeId); Debug.WriteLine(result); } @@ -119,7 +117,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store Id to which the delivery zones are associated | + **storeId** | **int?**| | ### Return type @@ -140,7 +138,7 @@ Name | Type | Description | Notes # **RemoveDeliveryZone** > void RemoveDeliveryZone (int? storeId, int? deliveryZoneId) -Removes the existing delivery zone + ### Example ```csharp @@ -160,12 +158,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new DeliveryZoneApi(); - var storeId = 56; // int? | Store Id to which the delivery zone belongs - var deliveryZoneId = 56; // int? | Delivery zone id to be removed + var storeId = 56; // int? | + var deliveryZoneId = 56; // int? | try { - // Removes the existing delivery zone apiInstance.RemoveDeliveryZone(storeId, deliveryZoneId); } catch (Exception e) @@ -181,8 +178,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store Id to which the delivery zone belongs | - **deliveryZoneId** | **int?**| Delivery zone id to be removed | + **storeId** | **int?**| | + **deliveryZoneId** | **int?**| | ### Return type @@ -203,7 +200,7 @@ void (empty response body) # **UpdateDeliveryZone** > RestApiResultDeliveryZone UpdateDeliveryZone (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone) -Updates the existing delivery zone + ### Example ```csharp @@ -223,13 +220,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new DeliveryZoneApi(); - var storeId = 56; // int? | Store Id to which the delivery zone belongs - var deliveryZoneId = 56; // int? | Delivery zone id to be updated - var deliveryZone = new DeliveryZoneBase(); // DeliveryZoneBase | Delta of delivery zone parameters that need to be changed + var storeId = 56; // int? | + var deliveryZoneId = 56; // int? | + var deliveryZone = new DeliveryZoneBase(); // DeliveryZoneBase | try { - // Updates the existing delivery zone RestApiResultDeliveryZone result = apiInstance.UpdateDeliveryZone(storeId, deliveryZoneId, deliveryZone); Debug.WriteLine(result); } @@ -246,9 +242,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store Id to which the delivery zone belongs | - **deliveryZoneId** | **int?**| Delivery zone id to be updated | - **deliveryZone** | [**DeliveryZoneBase**](DeliveryZoneBase.md)| Delta of delivery zone parameters that need to be changed | + **storeId** | **int?**| | + **deliveryZoneId** | **int?**| | + **deliveryZone** | [**DeliveryZoneBase**](DeliveryZoneBase.md)| | ### Return type diff --git a/docs/DeliveryZoneCreatedEvent.md b/docs/DeliveryZoneCreatedEvent.md index f9fc84bd..a1950342 100644 --- a/docs/DeliveryZoneCreatedEvent.md +++ b/docs/DeliveryZoneCreatedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index 37fb4bf0..9594fe6c 100644 --- a/docs/DeliveryZoneDeletedEvent.md +++ b/docs/DeliveryZoneDeletedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index 176ea9a6..7edc8fa5 100644 --- a/docs/DeliveryZoneUpdatedEvent.md +++ b/docs/DeliveryZoneUpdatedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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/DnsVerifiedEvent.md b/docs/DnsVerifiedEvent.md index 4ba6abfd..c06dd562 100644 --- a/docs/DnsVerifiedEvent.md +++ b/docs/DnsVerifiedEvent.md @@ -9,7 +9,10 @@ Name | Type | Description | Notes **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/Driver.md b/docs/Driver.md deleted file mode 100644 index 7204df7f..00000000 --- a/docs/Driver.md +++ /dev/null @@ -1,14 +0,0 @@ -# Flipdish.Model.Driver -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**UserId** | **int?** | User Id | [optional] -**UserName** | **string** | User Name | [optional] -**UserPhoneNumber** | **string** | User Phone Number | [optional] -**Stores** | [**List<DriverStore>**](DriverStore.md) | | [optional] -**ProfileImageUrl** | **string** | Profile image url | [optional] -**DriverKey** | **string** | Driver Key | [optional] - -[[Back to Model list]](../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 index ab243c2c..2ed8a7ff 100644 --- a/docs/DriversApi.md +++ b/docs/DriversApi.md @@ -4,24 +4,24 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AddDriverNotificationToken**](DriversApi.md#adddrivernotificationtoken) | **POST** /api/v1.0/drivers/token | Add driver token -[**DeleteDriverProfileImage**](DriversApi.md#deletedriverprofileimage) | **DELETE** /api/v1.0/drivers/profile/image | Delete driver profile image -[**DriverLogin**](DriversApi.md#driverlogin) | **POST** /api/v1.0/drivers/login | [PRIVATE] Login with phone number and pin -[**DriverRequestLoginCodeSms**](DriversApi.md#driverrequestlogincodesms) | **POST** /api/v1.0/drivers/pin | [PRIVATE] Request an SMS to be sent to the driver with their login code -[**GetDriverProfile**](DriversApi.md#getdriverprofile) | **GET** /api/v1.0/drivers/profile | Get driver profile -[**GetStoresForDriver**](DriversApi.md#getstoresfordriver) | **GET** /api/v1.0/drivers/assignedstores | Get stores for driver -[**RemoveDriverNotificationToken**](DriversApi.md#removedrivernotificationtoken) | **DELETE** /api/v1.0/drivers/token | Delete driver token -[**SetDriverPresenceForStore**](DriversApi.md#setdriverpresenceforstore) | **POST** /api/v1.0/drivers/stores/{storeId}/presence/{presence} | -[**SetDriverProfileImage**](DriversApi.md#setdriverprofileimage) | **POST** /api/v1.0/drivers/profile/image | Set driver profile image and returns it's url -[**UpdateDeliveryTrackingStatus**](DriversApi.md#updatedeliverytrackingstatus) | **POST** /api/v1.0/orders/{orderId}/tracking/{deliveryTrackingStatus} | Change delivery tracking status and return the updated status. -[**UpdateDriverProfile**](DriversApi.md#updatedriverprofile) | **POST** /api/v1.0/drivers/profile | Update driver profile +[**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 | - -# **AddDriverNotificationToken** -> void AddDriverNotificationToken (UpdateDriverNotificationToken updateDriverToken) + +# **DriversAddDriverNotificationToken** +> Object DriversAddDriverNotificationToken (UpdateDriverNotificationToken updateDriverToken) + -Add driver token ### Example ```csharp @@ -33,7 +33,7 @@ using Flipdish.Model; namespace Example { - public class AddDriverNotificationTokenExample + public class DriversAddDriverNotificationTokenExample { public void main() { @@ -45,12 +45,12 @@ namespace Example try { - // Add driver token - apiInstance.AddDriverNotificationToken(updateDriverToken); + Object result = apiInstance.DriversAddDriverNotificationToken(updateDriverToken); + Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DriversApi.AddDriverNotificationToken: " + e.Message ); + Debug.Print("Exception when calling DriversApi.DriversAddDriverNotificationToken: " + e.Message ); } } } @@ -65,7 +65,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +**Object** ### Authorization @@ -78,11 +78,11 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **DeleteDriverProfileImage** -> void DeleteDriverProfileImage () + +# **DriversDeleteDriverProfileImage** +> Object DriversDeleteDriverProfileImage () + -Delete driver profile image ### Example ```csharp @@ -94,7 +94,7 @@ using Flipdish.Model; namespace Example { - public class DeleteDriverProfileImageExample + public class DriversDeleteDriverProfileImageExample { public void main() { @@ -105,12 +105,12 @@ namespace Example try { - // Delete driver profile image - apiInstance.DeleteDriverProfileImage(); + Object result = apiInstance.DriversDeleteDriverProfileImage(); + Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DriversApi.DeleteDriverProfileImage: " + e.Message ); + Debug.Print("Exception when calling DriversApi.DriversDeleteDriverProfileImage: " + e.Message ); } } } @@ -122,7 +122,7 @@ This endpoint does not need any parameter. ### Return type -void (empty response body) +**Object** ### Authorization @@ -135,11 +135,11 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **DriverLogin** -> void DriverLogin (DriverLoginModel driverLoginModel) + +# **DriversDriverLogin** +> Object DriversDriverLogin (DriverLoginModel driverLoginModel) + -[PRIVATE] Login with phone number and pin ### Example ```csharp @@ -151,7 +151,7 @@ using Flipdish.Model; namespace Example { - public class DriverLoginExample + public class DriversDriverLoginExample { public void main() { @@ -159,16 +159,16 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new DriversApi(); - var driverLoginModel = new DriverLoginModel(); // DriverLoginModel | Driver request login code model + var driverLoginModel = new DriverLoginModel(); // DriverLoginModel | try { - // [PRIVATE] Login with phone number and pin - apiInstance.DriverLogin(driverLoginModel); + Object result = apiInstance.DriversDriverLogin(driverLoginModel); + Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DriversApi.DriverLogin: " + e.Message ); + Debug.Print("Exception when calling DriversApi.DriversDriverLogin: " + e.Message ); } } } @@ -179,11 +179,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **driverLoginModel** | [**DriverLoginModel**](DriverLoginModel.md)| Driver request login code model | + **driverLoginModel** | [**DriverLoginModel**](DriverLoginModel.md)| | ### Return type -void (empty response body) +**Object** ### Authorization @@ -196,11 +196,11 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **DriverRequestLoginCodeSms** -> void DriverRequestLoginCodeSms (DriverRequestLoginPinModel driverRequestLoginPinModel) + +# **DriversDriverRequestLoginCodeSms** +> Object DriversDriverRequestLoginCodeSms (DriverRequestLoginPinModel driverRequestLoginPinModel) + -[PRIVATE] Request an SMS to be sent to the driver with their login code ### Example ```csharp @@ -212,7 +212,7 @@ using Flipdish.Model; namespace Example { - public class DriverRequestLoginCodeSmsExample + public class DriversDriverRequestLoginCodeSmsExample { public void main() { @@ -220,16 +220,16 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new DriversApi(); - var driverRequestLoginPinModel = new DriverRequestLoginPinModel(); // DriverRequestLoginPinModel | Driver request login code model + var driverRequestLoginPinModel = new DriverRequestLoginPinModel(); // DriverRequestLoginPinModel | try { - // [PRIVATE] Request an SMS to be sent to the driver with their login code - apiInstance.DriverRequestLoginCodeSms(driverRequestLoginPinModel); + Object result = apiInstance.DriversDriverRequestLoginCodeSms(driverRequestLoginPinModel); + Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DriversApi.DriverRequestLoginCodeSms: " + e.Message ); + Debug.Print("Exception when calling DriversApi.DriversDriverRequestLoginCodeSms: " + e.Message ); } } } @@ -240,11 +240,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **driverRequestLoginPinModel** | [**DriverRequestLoginPinModel**](DriverRequestLoginPinModel.md)| Driver request login code model | + **driverRequestLoginPinModel** | [**DriverRequestLoginPinModel**](DriverRequestLoginPinModel.md)| | ### Return type -void (empty response body) +**Object** ### Authorization @@ -257,11 +257,11 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **GetDriverProfile** -> RestApiResultDriver GetDriverProfile () + +# **DriversGetDriverProfile** +> Object DriversGetDriverProfile () + -Get driver profile ### Example ```csharp @@ -273,7 +273,7 @@ using Flipdish.Model; namespace Example { - public class GetDriverProfileExample + public class DriversGetDriverProfileExample { public void main() { @@ -284,13 +284,12 @@ namespace Example try { - // Get driver profile - RestApiResultDriver result = apiInstance.GetDriverProfile(); + Object result = apiInstance.DriversGetDriverProfile(); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DriversApi.GetDriverProfile: " + e.Message ); + Debug.Print("Exception when calling DriversApi.DriversGetDriverProfile: " + e.Message ); } } } @@ -302,7 +301,7 @@ This endpoint does not need any parameter. ### Return type -[**RestApiResultDriver**](RestApiResultDriver.md) +**Object** ### Authorization @@ -315,11 +314,11 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **GetStoresForDriver** -> RestApiArrayResultDriverStore GetStoresForDriver () + +# **DriversGetStoresForDriver** +> Object DriversGetStoresForDriver () + -Get stores for driver ### Example ```csharp @@ -331,7 +330,7 @@ using Flipdish.Model; namespace Example { - public class GetStoresForDriverExample + public class DriversGetStoresForDriverExample { public void main() { @@ -342,13 +341,12 @@ namespace Example try { - // Get stores for driver - RestApiArrayResultDriverStore result = apiInstance.GetStoresForDriver(); + Object result = apiInstance.DriversGetStoresForDriver(); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DriversApi.GetStoresForDriver: " + e.Message ); + Debug.Print("Exception when calling DriversApi.DriversGetStoresForDriver: " + e.Message ); } } } @@ -360,7 +358,7 @@ This endpoint does not need any parameter. ### Return type -[**RestApiArrayResultDriverStore**](RestApiArrayResultDriverStore.md) +**Object** ### Authorization @@ -373,11 +371,11 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **RemoveDriverNotificationToken** -> void RemoveDriverNotificationToken (UpdateDriverNotificationToken removeDriverToken) + +# **DriversRemoveDriverNotificationToken** +> Object DriversRemoveDriverNotificationToken (UpdateDriverNotificationToken removeDriverToken) + -Delete driver token ### Example ```csharp @@ -389,7 +387,7 @@ using Flipdish.Model; namespace Example { - public class RemoveDriverNotificationTokenExample + public class DriversRemoveDriverNotificationTokenExample { public void main() { @@ -401,12 +399,12 @@ namespace Example try { - // Delete driver token - apiInstance.RemoveDriverNotificationToken(removeDriverToken); + Object result = apiInstance.DriversRemoveDriverNotificationToken(removeDriverToken); + Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DriversApi.RemoveDriverNotificationToken: " + e.Message ); + Debug.Print("Exception when calling DriversApi.DriversRemoveDriverNotificationToken: " + e.Message ); } } } @@ -421,7 +419,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +**Object** ### Authorization @@ -434,9 +432,9 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **SetDriverPresenceForStore** -> void SetDriverPresenceForStore (int? storeId, string presence) + +# **DriversSetDriverPresenceForStore** +> Object DriversSetDriverPresenceForStore (int? storeId, string presence) @@ -450,7 +448,7 @@ using Flipdish.Model; namespace Example { - public class SetDriverPresenceForStoreExample + public class DriversSetDriverPresenceForStoreExample { public void main() { @@ -463,11 +461,12 @@ namespace Example try { - apiInstance.SetDriverPresenceForStore(storeId, presence); + Object result = apiInstance.DriversSetDriverPresenceForStore(storeId, presence); + Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DriversApi.SetDriverPresenceForStore: " + e.Message ); + Debug.Print("Exception when calling DriversApi.DriversSetDriverPresenceForStore: " + e.Message ); } } } @@ -483,7 +482,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +**Object** ### Authorization @@ -496,11 +495,11 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **SetDriverProfileImage** -> RestApiStringResult SetDriverProfileImage () + +# **DriversSetDriverProfileImage** +> Object DriversSetDriverProfileImage () + -Set driver profile image and returns it's url ### Example ```csharp @@ -512,7 +511,7 @@ using Flipdish.Model; namespace Example { - public class SetDriverProfileImageExample + public class DriversSetDriverProfileImageExample { public void main() { @@ -523,13 +522,12 @@ namespace Example try { - // Set driver profile image and returns it's url - RestApiStringResult result = apiInstance.SetDriverProfileImage(); + Object result = apiInstance.DriversSetDriverProfileImage(); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DriversApi.SetDriverProfileImage: " + e.Message ); + Debug.Print("Exception when calling DriversApi.DriversSetDriverProfileImage: " + e.Message ); } } } @@ -541,7 +539,7 @@ This endpoint does not need any parameter. ### Return type -[**RestApiStringResult**](RestApiStringResult.md) +**Object** ### Authorization @@ -554,13 +552,11 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **UpdateDeliveryTrackingStatus** -> RestApiStringResult UpdateDeliveryTrackingStatus (int? orderId, string deliveryTrackingStatus) + +# **DriversUpdateDeliveryTrackingStatus** +> Object DriversUpdateDeliveryTrackingStatus (int? orderId, string deliveryTrackingStatus) -Change delivery tracking status and return the updated status. -... ### Example ```csharp @@ -572,7 +568,7 @@ using Flipdish.Model; namespace Example { - public class UpdateDeliveryTrackingStatusExample + public class DriversUpdateDeliveryTrackingStatusExample { public void main() { @@ -580,18 +576,17 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new DriversApi(); - var orderId = 56; // int? | Order identifier + var orderId = 56; // int? | var deliveryTrackingStatus = deliveryTrackingStatus_example; // string | try { - // Change delivery tracking status and return the updated status. - RestApiStringResult result = apiInstance.UpdateDeliveryTrackingStatus(orderId, deliveryTrackingStatus); + Object result = apiInstance.DriversUpdateDeliveryTrackingStatus(orderId, deliveryTrackingStatus); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DriversApi.UpdateDeliveryTrackingStatus: " + e.Message ); + Debug.Print("Exception when calling DriversApi.DriversUpdateDeliveryTrackingStatus: " + e.Message ); } } } @@ -602,12 +597,12 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **int?**| Order identifier | + **orderId** | **int?**| | **deliveryTrackingStatus** | **string**| | ### Return type -[**RestApiStringResult**](RestApiStringResult.md) +**Object** ### Authorization @@ -620,11 +615,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **UpdateDriverProfile** -> void UpdateDriverProfile (UpdateDriverProfileModel updateDriverProfile) + +# **DriversUpdateDriverProfile** +> Object DriversUpdateDriverProfile (UpdateDriverProfileModel updateDriverProfile) + -Update driver profile ### Example ```csharp @@ -636,7 +631,7 @@ using Flipdish.Model; namespace Example { - public class UpdateDriverProfileExample + public class DriversUpdateDriverProfileExample { public void main() { @@ -644,16 +639,16 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new DriversApi(); - var updateDriverProfile = new UpdateDriverProfileModel(); // UpdateDriverProfileModel | Update the driver profile (i.e Name) + var updateDriverProfile = new UpdateDriverProfileModel(); // UpdateDriverProfileModel | try { - // Update driver profile - apiInstance.UpdateDriverProfile(updateDriverProfile); + Object result = apiInstance.DriversUpdateDriverProfile(updateDriverProfile); + Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DriversApi.UpdateDriverProfile: " + e.Message ); + Debug.Print("Exception when calling DriversApi.DriversUpdateDriverProfile: " + e.Message ); } } } @@ -664,11 +659,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **updateDriverProfile** | [**UpdateDriverProfileModel**](UpdateDriverProfileModel.md)| Update the driver profile (i.e Name) | + **updateDriverProfile** | [**UpdateDriverProfileModel**](UpdateDriverProfileModel.md)| | ### Return type -void (empty response body) +**Object** ### Authorization diff --git a/docs/DynamicFormField.md b/docs/DynamicFormField.md index 4a54945d..19fbc0fc 100644 --- a/docs/DynamicFormField.md +++ b/docs/DynamicFormField.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **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/EmvNotificationEvent.md b/docs/EmvNotificationEvent.md index 0f19531f..c6e7eace 100644 --- a/docs/EmvNotificationEvent.md +++ b/docs/EmvNotificationEvent.md @@ -18,7 +18,10 @@ Name | Type | Description | Notes **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/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 index 2a8cc165..445020ab 100644 --- a/docs/EventSearchResult.md +++ b/docs/EventSearchResult.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **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] @@ -37,6 +38,7 @@ Name | Type | Description | Notes **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] @@ -68,6 +70,8 @@ Name | Type | Description | Notes **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] @@ -84,6 +88,7 @@ Name | Type | Description | Notes **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] @@ -91,8 +96,9 @@ Name | Type | Description | Notes **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<BankAccountDeletedEvent>**](BankAccountDeletedEvent.md) | Bank account assigned 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] @@ -123,6 +129,7 @@ Name | Type | Description | Notes **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] @@ -135,6 +142,9 @@ Name | Type | Description | Notes **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 index 0a3b0e69..2ec3a657 100644 --- a/docs/EventsApi.md +++ b/docs/EventsApi.md @@ -4,22 +4,22 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetCustomerEvents**](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. -[**GetEvents**](EventsApi.md#getevents) | **GET** /api/v1.0/events | Get events For technical reasons, the number of records returned is limited to 100. -[**GetEventsById**](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. -[**GetMenuEvents**](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. -[**GetOrderEvents**](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. -[**GetOrderEventsByCustomer**](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. -[**GetStoreEvents**](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. -[**GetUserEvents**](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. -[**GetWhiteLabelEvents**](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. +[**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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) +> 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) + -Get customer events For technical reasons, the number of records returned is limited to 100. ### Example ```csharp @@ -39,15 +39,19 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new EventsApi(); - var customerId = 56; // int? | Customer identifier identifier + 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) @@ -56,8 +60,7 @@ namespace Example try { - // Get customer events For technical reasons, the number of records returned is limited to 100. - RestApiEventSearchPaginationResult result = apiInstance.GetCustomerEvents(customerId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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) @@ -73,15 +76,19 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **customerId** | **int?**| Customer identifier identifier | + **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] @@ -105,9 +112,9 @@ Name | Type | Description | Notes # **GetEvents** -> RestApiEventSearchPaginationResult GetEvents (int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) +> 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) + -Get events For technical reasons, the number of records returned is limited to 100. ### Example ```csharp @@ -127,16 +134,20 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new EventsApi(); - var whiteLabelId = 56; // int? | White Label Id (optional) - var customerId = 56; // int? | Customer Id (optional) + 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) @@ -145,8 +156,7 @@ namespace Example try { - // Get events For technical reasons, the number of records returned is limited to 100. - RestApiEventSearchPaginationResult result = apiInstance.GetEvents(whiteLabelId, customerId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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) @@ -162,16 +172,20 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **whiteLabelId** | **int?**| White Label Id | [optional] - **customerId** | **int?**| Customer Id | [optional] + **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] @@ -195,9 +209,9 @@ Name | Type | Description | Notes # **GetEventsById** -> EventSearchResult GetEventsById (Guid? eventId) +> EventSearchResult GetEventsById (Guid? eventId, string appId) + -Get event by Id For technical reasons, the number of records returned is limited to 100. ### Example ```csharp @@ -217,12 +231,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new EventsApi(); - var eventId = new Guid?(); // Guid? | Event identifier (Guid) + var eventId = new Guid?(); // Guid? | + var appId = appId_example; // string | try { - // Get event by Id For technical reasons, the number of records returned is limited to 100. - EventSearchResult result = apiInstance.GetEventsById(eventId); + EventSearchResult result = apiInstance.GetEventsById(eventId, appId); Debug.WriteLine(result); } catch (Exception e) @@ -238,7 +252,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **eventId** | [**Guid?**](Guid?.md)| Event identifier (Guid) | + **eventId** | [**Guid?**](Guid?.md)| | + **appId** | **string**| | ### Return type @@ -257,9 +272,9 @@ Name | Type | Description | Notes # **GetMenuEvents** -> RestApiEventSearchPaginationResult GetMenuEvents (int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) +> 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) + -Get menu events For technical reasons, the number of records returned is limited to 100. ### Example ```csharp @@ -279,15 +294,19 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new EventsApi(); - var menuId = 56; // int? | Menu Identifier + 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) @@ -296,8 +315,7 @@ namespace Example try { - // Get menu events For technical reasons, the number of records returned is limited to 100. - RestApiEventSearchPaginationResult result = apiInstance.GetMenuEvents(menuId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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) @@ -313,15 +331,19 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **menuId** | **int?**| Menu Identifier | + **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] @@ -345,9 +367,9 @@ Name | Type | Description | Notes # **GetOrderEvents** -> RestApiEventSearchPaginationResult GetOrderEvents (int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) +> 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) + -Get order events For technical reasons, the number of records returned is limited to 100. ### Example ```csharp @@ -367,15 +389,19 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new EventsApi(); - var orderId = 56; // int? | Order identifier + 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) @@ -384,8 +410,7 @@ namespace Example try { - // Get order events For technical reasons, the number of records returned is limited to 100. - RestApiEventSearchPaginationResult result = apiInstance.GetOrderEvents(orderId, limit, page, start, end, orderId2, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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) @@ -401,15 +426,19 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **int?**| Order identifier | + **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] @@ -433,9 +462,9 @@ Name | Type | Description | Notes # **GetOrderEventsByCustomer** -> RestApiEventSearchPaginationResult GetOrderEventsByCustomer (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) +> 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) + -Get order events by customer For technical reasons, the number of records returned is limited to 100. ### Example ```csharp @@ -455,15 +484,19 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new EventsApi(); - var customerId = 56; // int? | Customer identifier + 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) @@ -472,8 +505,7 @@ namespace Example try { - // Get order events by customer For technical reasons, the number of records returned is limited to 100. - RestApiEventSearchPaginationResult result = apiInstance.GetOrderEventsByCustomer(customerId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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) @@ -489,15 +521,19 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **customerId** | **int?**| Customer identifier | + **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] @@ -521,9 +557,9 @@ Name | Type | Description | Notes # **GetStoreEvents** -> RestApiEventSearchPaginationResult GetStoreEvents (int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) +> 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) + -Get store events For technical reasons, the number of records returned is limited to 100. ### Example ```csharp @@ -543,15 +579,19 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new EventsApi(); - var storeId = 56; // int? | Id of the store + 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) @@ -560,8 +600,7 @@ namespace Example try { - // Get store events For technical reasons, the number of records returned is limited to 100. - RestApiEventSearchPaginationResult result = apiInstance.GetStoreEvents(storeId, limit, page, start, end, orderId, storeId2, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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) @@ -577,15 +616,19 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Id of the store | + **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] @@ -609,9 +652,9 @@ Name | Type | Description | Notes # **GetUserEvents** -> RestApiEventSearchPaginationResult GetUserEvents (int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId2 = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) +> 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) + -Get user events For technical reasons, the number of records returned is limited to 100. ### Example ```csharp @@ -631,15 +674,19 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new EventsApi(); - var userId = 56; // int? | User identifier + 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) @@ -648,8 +695,7 @@ namespace Example try { - // Get user events For technical reasons, the number of records returned is limited to 100. - RestApiEventSearchPaginationResult result = apiInstance.GetUserEvents(userId, limit, page, start, end, orderId, storeId, storeGroupId, userId2, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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) @@ -665,15 +711,19 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **userId** | **int?**| User identifier | + **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] @@ -697,9 +747,9 @@ Name | Type | Description | Notes # **GetWhiteLabelEvents** -> RestApiEventSearchPaginationResult GetWhiteLabelEvents (int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) +> 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) + -Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. ### Example ```csharp @@ -719,15 +769,19 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new EventsApi(); - var whitelabelId = 56; // int? | White Label Identifier + 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) @@ -736,8 +790,7 @@ namespace Example try { - // Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. - RestApiEventSearchPaginationResult result = apiInstance.GetWhiteLabelEvents(whitelabelId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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) @@ -753,15 +806,19 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **whitelabelId** | **int?**| White Label Identifier | + **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] diff --git a/docs/LoginWithPinModel.md b/docs/ExecuteConfigurationActionRequest.md similarity index 67% rename from docs/LoginWithPinModel.md rename to docs/ExecuteConfigurationActionRequest.md index cff766bf..26e82ded 100644 --- a/docs/LoginWithPinModel.md +++ b/docs/ExecuteConfigurationActionRequest.md @@ -1,10 +1,10 @@ -# Flipdish.Model.LoginWithPinModel +# Flipdish.Model.ExecuteConfigurationActionRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Email** | **string** | Email addres | -**Pin** | **int?** | PIN code (received via email) | +**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/ExternalStoreEvent.md b/docs/ExternalStoreEvent.md index 62c22c48..2ee27c6e 100644 --- a/docs/ExternalStoreEvent.md +++ b/docs/ExternalStoreEvent.md @@ -21,7 +21,10 @@ Name | Type | Description | Notes **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/ChannelsStoreMappingApi.md b/docs/FeaturesApi.md similarity index 52% rename from docs/ChannelsStoreMappingApi.md rename to docs/FeaturesApi.md index ae6e6b7c..256b8955 100644 --- a/docs/ChannelsStoreMappingApi.md +++ b/docs/FeaturesApi.md @@ -1,16 +1,16 @@ -# Flipdish.Api.ChannelsStoreMappingApi +# Flipdish.Api.FeaturesApi All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**ChannelsGetStoreChannelStoreMapping**](ChannelsStoreMappingApi.md#channelsgetstorechannelstoremapping) | **GET** /api/v1.0/{appId}/channels/storemappings | -[**ChannelsSetStoreChannelStoreMapping**](ChannelsStoreMappingApi.md#channelssetstorechannelstoremapping) | **POST** /api/v1.0/{appId}/channels/storemappings | +[**DisableFeatures**](FeaturesApi.md#disablefeatures) | **POST** /api/v1.0/{appId}/features/disable | +[**EnableFeatures**](FeaturesApi.md#enablefeatures) | **POST** /api/v1.0/{appId}/features/enable | - -# **ChannelsGetStoreChannelStoreMapping** -> RestApiArrayResultStoreChannelStoreMapping ChannelsGetStoreChannelStoreMapping (string appId, int? channelId) + +# **DisableFeatures** +> RestApiStringArrayResult DisableFeatures (string appId, List features) @@ -24,25 +24,25 @@ using Flipdish.Model; namespace Example { - public class ChannelsGetStoreChannelStoreMappingExample + public class DisableFeaturesExample { public void main() { // Configure OAuth2 access token for authorization: oauth2 Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - var apiInstance = new ChannelsStoreMappingApi(); + var apiInstance = new FeaturesApi(); var appId = appId_example; // string | - var channelId = 56; // int? | + var features = ; // List | try { - RestApiArrayResultStoreChannelStoreMapping result = apiInstance.ChannelsGetStoreChannelStoreMapping(appId, channelId); + RestApiStringArrayResult result = apiInstance.DisableFeatures(appId, features); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling ChannelsStoreMappingApi.ChannelsGetStoreChannelStoreMapping: " + e.Message ); + Debug.Print("Exception when calling FeaturesApi.DisableFeatures: " + e.Message ); } } } @@ -54,11 +54,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **appId** | **string**| | - **channelId** | **int?**| | + **features** | **List<string>**| | ### Return type -[**RestApiArrayResultStoreChannelStoreMapping**](RestApiArrayResultStoreChannelStoreMapping.md) +[**RestApiStringArrayResult**](RestApiStringArrayResult.md) ### Authorization @@ -66,14 +66,14 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **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) - -# **ChannelsSetStoreChannelStoreMapping** -> RestApiArrayResultStoreChannelStoreMapping ChannelsSetStoreChannelStoreMapping (string appId, int? channelId, List stores) + +# **EnableFeatures** +> RestApiStringArrayResult EnableFeatures (string appId, List features) @@ -87,26 +87,25 @@ using Flipdish.Model; namespace Example { - public class ChannelsSetStoreChannelStoreMappingExample + public class EnableFeaturesExample { public void main() { // Configure OAuth2 access token for authorization: oauth2 Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - var apiInstance = new ChannelsStoreMappingApi(); + var apiInstance = new FeaturesApi(); var appId = appId_example; // string | - var channelId = 56; // int? | - var stores = new List(); // List | + var features = ; // List | try { - RestApiArrayResultStoreChannelStoreMapping result = apiInstance.ChannelsSetStoreChannelStoreMapping(appId, channelId, stores); + RestApiStringArrayResult result = apiInstance.EnableFeatures(appId, features); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling ChannelsStoreMappingApi.ChannelsSetStoreChannelStoreMapping: " + e.Message ); + Debug.Print("Exception when calling FeaturesApi.EnableFeatures: " + e.Message ); } } } @@ -118,12 +117,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **appId** | **string**| | - **channelId** | **int?**| | - **stores** | [**List<ChannelStoreMapping>**](ChannelStoreMapping.md)| | + **features** | **List<string>**| | ### Return type -[**RestApiArrayResultStoreChannelStoreMapping**](RestApiArrayResultStoreChannelStoreMapping.md) +[**RestApiStringArrayResult**](RestApiStringArrayResult.md) ### Authorization diff --git a/docs/Field.md b/docs/Field.md index 245750c2..48632bc6 100644 --- a/docs/Field.md +++ b/docs/Field.md @@ -3,15 +3,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | Name | -**Description** | **string** | Description | -**Key** | **string** | Key | -**Tooltip** | **string** | Tooltip | [optional] -**Position** | **int?** | Position | -**DefaultValue** | **string** | Default Value | [optional] -**ValidValues** | [**List<ValidValue>**](ValidValue.md) | Valid Values <remarks>Used typically for dropdown/select</remarks> | [optional] -**ValidationRegex** | **string** | Validation Regex | [optional] -**FieldType** | **string** | Field Type | +**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/FieldGroup.md b/docs/FieldGroup.md index ec2b6e38..189f0b0c 100644 --- a/docs/FieldGroup.md +++ b/docs/FieldGroup.md @@ -3,11 +3,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | Name | -**Description** | **string** | Description | [optional] -**Tooltip** | **string** | Tooltip <remarks>Displays on text hover</remarks> | [optional] -**Position** | **int?** | Position <remarks>Position order in the field groups to display</remarks> | -**Fields** | [**List<Field>**](Field.md) | Fields | [optional] +**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 index 0bd00d9d..fcd2d6dd 100644 --- a/docs/FlipdishEventBase.md +++ b/docs/FlipdishEventBase.md @@ -8,7 +8,10 @@ Name | Type | Description | Notes **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 index c06ad83e..39a8d1af 100644 --- a/docs/FlipdishFeesDetails.md +++ b/docs/FlipdishFeesDetails.md @@ -5,9 +5,11 @@ 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] 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/FulfillmentInfo.md b/docs/FulfillmentInfo.md deleted file mode 100644 index 03d74836..00000000 --- a/docs/FulfillmentInfo.md +++ /dev/null @@ -1,12 +0,0 @@ -# Flipdish.Model.FulfillmentInfo -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DispatchType** | **string** | [Required] Dispatch Type (i.e Pickup / Delivery) | [optional] -**RequestedForUtc** | **DateTime?** | [Required] Time the order is requested for | [optional] -**Location** | [**Location**](Location.md) | Location the order is to be delivered to [Required] Delivery [Not Required] Pickup | [optional] -**DispatchAmount** | [**Price**](Price.md) | Price of the dispatch, normally 0 for collection and a value for delivery [Required] Delivery [Not Required] Pickup | [optional] - -[[Back to Model list]](../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 index 62134fbb..444d2595 100644 --- a/docs/FulfillmentStateConfigurationApi.md +++ b/docs/FulfillmentStateConfigurationApi.md @@ -4,20 +4,19 @@ 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 | Create fulfillment configuration -[**DeleteFulfillmentStatesConfig**](FulfillmentStateConfigurationApi.md#deletefulfillmentstatesconfig) | **DELETE** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | Delete fulfillment states configuration -[**GetFulfillmentStatesConfiguration**](FulfillmentStateConfigurationApi.md#getfulfillmentstatesconfiguration) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | Get fulfillment configuration -[**SearchFulfillmentStatesConfigurations**](FulfillmentStateConfigurationApi.md#searchfulfillmentstatesconfigurations) | **GET** /api/v1.0/{appId}/fulfillment/configuration/states | List fulfillment configurations for AppId -[**UpdateFulfillmentStatesConfig**](FulfillmentStateConfigurationApi.md#updatefulfillmentstatesconfig) | **POST** /api/v1.0/{appId}/fulfillment/configuration/states/{configId} | Update fulfillment configuration +[**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, FulfillmentStatesConfigurationCreateBase fulfillmentStateConfiguration) +> RestApiResultFulfillmentStatesConfiguration CreateFulfillmentStatesConfig (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration) -Create fulfillment configuration -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -37,12 +36,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new FulfillmentStateConfigurationApi(); - var appId = appId_example; // string | App id - var fulfillmentStateConfiguration = new FulfillmentStatesConfigurationCreateBase(); // FulfillmentStatesConfigurationCreateBase | Fulfillment state configuration + var appId = appId_example; // string | + var fulfillmentStateConfiguration = new CreateFulfillmentStatesConfiguration(); // CreateFulfillmentStatesConfiguration | try { - // Create fulfillment configuration RestApiResultFulfillmentStatesConfiguration result = apiInstance.CreateFulfillmentStatesConfig(appId, fulfillmentStateConfiguration); Debug.WriteLine(result); } @@ -59,8 +57,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App id | - **fulfillmentStateConfiguration** | [**FulfillmentStatesConfigurationCreateBase**](FulfillmentStatesConfigurationCreateBase.md)| Fulfillment state configuration | + **appId** | **string**| | + **fulfillmentStateConfiguration** | [**CreateFulfillmentStatesConfiguration**](CreateFulfillmentStatesConfiguration.md)| | ### Return type @@ -81,9 +79,7 @@ Name | Type | Description | Notes # **DeleteFulfillmentStatesConfig** > RestApiStringResult DeleteFulfillmentStatesConfig (string appId, string configId) -Delete fulfillment states configuration -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -103,12 +99,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new FulfillmentStateConfigurationApi(); - var appId = appId_example; // string | App id - var configId = configId_example; // string | Fulfillment states configuration id + var appId = appId_example; // string | + var configId = configId_example; // string | try { - // Delete fulfillment states configuration RestApiStringResult result = apiInstance.DeleteFulfillmentStatesConfig(appId, configId); Debug.WriteLine(result); } @@ -125,8 +120,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App id | - **configId** | **string**| Fulfillment states configuration id | + **appId** | **string**| | + **configId** | **string**| | ### Return type @@ -147,9 +142,7 @@ Name | Type | Description | Notes # **GetFulfillmentStatesConfiguration** > FulfillmentStatesConfiguration GetFulfillmentStatesConfiguration (string appId, string configId) -Get fulfillment configuration -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -169,12 +162,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new FulfillmentStateConfigurationApi(); - var appId = appId_example; // string | App id - var configId = configId_example; // string | App store app configuration id + var appId = appId_example; // string | + var configId = configId_example; // string | try { - // Get fulfillment configuration FulfillmentStatesConfiguration result = apiInstance.GetFulfillmentStatesConfiguration(appId, configId); Debug.WriteLine(result); } @@ -191,8 +183,69 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App id | - **configId** | **string**| App store app configuration id | + **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 @@ -213,9 +266,7 @@ Name | Type | Description | Notes # **SearchFulfillmentStatesConfigurations** > RestApiArrayResultFulfillmentStatesConfigurationSummary SearchFulfillmentStatesConfigurations (string appId) -List fulfillment configurations for AppId -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -235,11 +286,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new FulfillmentStateConfigurationApi(); - var appId = appId_example; // string | App id + var appId = appId_example; // string | try { - // List fulfillment configurations for AppId RestApiArrayResultFulfillmentStatesConfigurationSummary result = apiInstance.SearchFulfillmentStatesConfigurations(appId); Debug.WriteLine(result); } @@ -256,7 +306,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App id | + **appId** | **string**| | ### Return type @@ -277,9 +327,7 @@ Name | Type | Description | Notes # **UpdateFulfillmentStatesConfig** > void UpdateFulfillmentStatesConfig (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration) -Update fulfillment configuration -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -299,13 +347,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new FulfillmentStateConfigurationApi(); - var appId = appId_example; // string | App id - var configId = configId_example; // string | Fulfillment states configuration id - var updateFulfillmentStatesConfiguration = new UpdateFulfillmentStatesConfiguration(); // UpdateFulfillmentStatesConfiguration | Update fulfillment states configuration + var appId = appId_example; // string | + var configId = configId_example; // string | + var updateFulfillmentStatesConfiguration = new UpdateFulfillmentStatesConfiguration(); // UpdateFulfillmentStatesConfiguration | try { - // Update fulfillment configuration apiInstance.UpdateFulfillmentStatesConfig(appId, configId, updateFulfillmentStatesConfiguration); } catch (Exception e) @@ -321,9 +368,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App id | - **configId** | **string**| Fulfillment states configuration id | - **updateFulfillmentStatesConfiguration** | [**UpdateFulfillmentStatesConfiguration**](UpdateFulfillmentStatesConfiguration.md)| Update fulfillment states configuration | + **appId** | **string**| | + **configId** | **string**| | + **updateFulfillmentStatesConfiguration** | [**UpdateFulfillmentStatesConfiguration**](UpdateFulfillmentStatesConfiguration.md)| | ### Return type diff --git a/docs/FulfillmentStatesConfiguration.md b/docs/FulfillmentStatesConfiguration.md index 0cd7a5fd..aeb5ed7f 100644 --- a/docs/FulfillmentStatesConfiguration.md +++ b/docs/FulfillmentStatesConfiguration.md @@ -4,6 +4,7 @@ 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] diff --git a/docs/FulfillmentStatusConfigurationItem.md b/docs/FulfillmentStatusConfigurationItem.md index b6da0210..fed91726 100644 --- a/docs/FulfillmentStatusConfigurationItem.md +++ b/docs/FulfillmentStatusConfigurationItem.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **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] -**VisualOrder** | **int?** | Integer for ordering results in choices (eg. dropdowns) | [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/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/GroupReference.md b/docs/GroupReference.md index 1007971a..68226842 100644 --- a/docs/GroupReference.md +++ b/docs/GroupReference.md @@ -3,7 +3,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | [**Group**](Group.md) | Details of the referenced {Flipdish.PublicModels.V1.Catalog.Products.GroupReference.Group} | [optional] +**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 | diff --git a/docs/FulfillmentStatesConfigurationCreateBase.md b/docs/HasPaymentMethodResponse.md similarity index 73% rename from docs/FulfillmentStatesConfigurationCreateBase.md rename to docs/HasPaymentMethodResponse.md index 796b08a7..2f7f60f1 100644 --- a/docs/FulfillmentStatesConfigurationCreateBase.md +++ b/docs/HasPaymentMethodResponse.md @@ -1,9 +1,9 @@ -# Flipdish.Model.FulfillmentStatesConfigurationCreateBase +# Flipdish.Model.HasPaymentMethodResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | Name | [optional] +**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/HomeApi.md b/docs/HomeApi.md index 1ff3246b..867a5af1 100644 --- a/docs/HomeApi.md +++ b/docs/HomeApi.md @@ -4,17 +4,17 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CompleteHomeAction**](HomeApi.md#completehomeaction) | **POST** /api/v1.0/{appId}/home/{homeActionId} | [PRIVATE API] Complete Home Action -[**DismissOldPortalAction**](HomeApi.md#dismissoldportalaction) | **POST** /api/v1.0/home/dismissoldportalaction | [PRIVATE API] Complete Home Action -[**GetHomeActions**](HomeApi.md#gethomeactions) | **GET** /api/v1.0/{appId}/home | [PRIVATE API] Get Home Actions -[**GetHomeStatistics**](HomeApi.md#gethomestatistics) | **GET** /api/v1.0/{appId}/home/stats | [PRIVATE API] Get Home Statistics +[**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) -[PRIVATE API] Complete Home Action + ### Example ```csharp @@ -34,13 +34,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new HomeApi(); - var appId = appId_example; // string | App Name Id - var homeActionId = 56; // int? | Id of the action + var appId = appId_example; // string | + var homeActionId = 56; // int? | var isDismissed = true; // bool? | try { - // [PRIVATE API] Complete Home Action Object result = apiInstance.CompleteHomeAction(appId, homeActionId, isDismissed); Debug.WriteLine(result); } @@ -57,8 +56,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **homeActionId** | **int?**| Id of the action | + **appId** | **string**| | + **homeActionId** | **int?**| | **isDismissed** | **bool?**| | ### Return type @@ -76,11 +75,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **DismissOldPortalAction** -> Object DismissOldPortalAction () + +# **GetHomeActions** +> RestApiArrayResultHomeAction GetHomeActions (string appId) + -[PRIVATE API] Complete Home Action ### Example ```csharp @@ -92,7 +91,7 @@ using Flipdish.Model; namespace Example { - public class DismissOldPortalActionExample + public class GetHomeActionsExample { public void main() { @@ -100,16 +99,16 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new HomeApi(); + var appId = appId_example; // string | try { - // [PRIVATE API] Complete Home Action - Object result = apiInstance.DismissOldPortalAction(); + RestApiArrayResultHomeAction result = apiInstance.GetHomeActions(appId); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling HomeApi.DismissOldPortalAction: " + e.Message ); + Debug.Print("Exception when calling HomeApi.GetHomeActions: " + e.Message ); } } } @@ -117,11 +116,14 @@ namespace Example ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appId** | **string**| | ### Return type -**Object** +[**RestApiArrayResultHomeAction**](RestApiArrayResultHomeAction.md) ### Authorization @@ -134,11 +136,11 @@ This endpoint does not need any parameter. [[Back to top]](#) [[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) + +# **GetHomeStatistics** +> RestApiResultHomeStatistics GetHomeStatistics (string appId) + -[PRIVATE API] Get Home Actions ### Example ```csharp @@ -150,7 +152,7 @@ using Flipdish.Model; namespace Example { - public class GetHomeActionsExample + public class GetHomeStatisticsExample { public void main() { @@ -158,17 +160,16 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new HomeApi(); - var appId = appId_example; // string | App Name Id + var appId = appId_example; // string | try { - // [PRIVATE API] Get Home Actions - RestApiArrayResultHomeAction result = apiInstance.GetHomeActions(appId); + RestApiResultHomeStatistics result = apiInstance.GetHomeStatistics(appId); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling HomeApi.GetHomeActions: " + e.Message ); + Debug.Print("Exception when calling HomeApi.GetHomeStatistics: " + e.Message ); } } } @@ -179,11 +180,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | + **appId** | **string**| | ### Return type -[**RestApiArrayResultHomeAction**](RestApiArrayResultHomeAction.md) +[**RestApiResultHomeStatistics**](RestApiResultHomeStatistics.md) ### Authorization @@ -196,11 +197,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) + +# **GetOktaPortalFeatureFlag** +> RestApiResultOktaPortalFeatureFlag GetOktaPortalFeatureFlag () + -[PRIVATE API] Get Home Statistics ### Example ```csharp @@ -212,7 +213,7 @@ using Flipdish.Model; namespace Example { - public class GetHomeStatisticsExample + public class GetOktaPortalFeatureFlagExample { public void main() { @@ -220,17 +221,15 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new HomeApi(); - var appId = appId_example; // string | App Name Id try { - // [PRIVATE API] Get Home Statistics - RestApiResultHomeStatistics result = apiInstance.GetHomeStatistics(appId); + RestApiResultOktaPortalFeatureFlag result = apiInstance.GetOktaPortalFeatureFlag(); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling HomeApi.GetHomeStatistics: " + e.Message ); + Debug.Print("Exception when calling HomeApi.GetOktaPortalFeatureFlag: " + e.Message ); } } } @@ -238,14 +237,11 @@ namespace Example ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | +This endpoint does not need any parameter. ### Return type -[**RestApiResultHomeStatistics**](RestApiResultHomeStatistics.md) +[**RestApiResultOktaPortalFeatureFlag**](RestApiResultOktaPortalFeatureFlag.md) ### Authorization 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/HttpRequestAndResponseLog.md b/docs/HttpRequestAndResponseLog.md deleted file mode 100644 index a46c297a..00000000 --- a/docs/HttpRequestAndResponseLog.md +++ /dev/null @@ -1,23 +0,0 @@ -# Flipdish.Model.HttpRequestAndResponseLog -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Guid** | **Guid?** | Id of the log | [optional] -**Verb** | **string** | Verb associated with the HTTP call. | [optional] -**RequestUri** | **string** | Http request URI. | [optional] -**StatusCode** | **int?** | Http response status code. | [optional] -**ReasonPhrase** | **string** | Http response status line. | [optional] -**CallDurationInMilliseconds** | **long?** | Call duration representing the duration of the HTTP call in milliseconds. | [optional] -**UserId** | **string** | Identity of the caller. | [optional] -**IpAddress** | **string** | Ip address of the caller | [optional] -**CreatedDateTime** | **string** | Timestamp at which the HTTP call took place. | [optional] -**RequestHeaders** | **Dictionary<string, string>** | Http request headers. | [optional] -**RequestBody** | **string** | Http request body, if any. | [optional] -**RequestLength** | **long?** | Http request content-length | [optional] -**ResponseHeaders** | **Dictionary<string, string>** | Http response headers. | [optional] -**ResponseBody** | **string** | Http response body. | [optional] -**ResponseLength** | **long?** | Http response content-length | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/HttpRequestResponseLogsApi.md b/docs/HttpRequestResponseLogsApi.md deleted file mode 100644 index 3650ad72..00000000 --- a/docs/HttpRequestResponseLogsApi.md +++ /dev/null @@ -1,83 +0,0 @@ -# Flipdish.Api.HttpRequestResponseLogsApi - -All URIs are relative to *https://api.flipdish.co* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**GetLogs**](HttpRequestResponseLogsApi.md#getlogs) | **GET** /api/v1.0/{appId}/interactions/logs | Get API interaction logs - - - -# **GetLogs** -> RestApiPaginationResultHttpRequestAndResponseLog GetLogs (DateTime? start, DateTime? end, string appId, int? filterByUserId = null, string guid = null, int? page = null, int? limit = null) - -Get API interaction logs - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class GetLogsExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new HttpRequestResponseLogsApi(); - var start = 2013-10-20T19:20:30+01:00; // DateTime? | Start date time - var end = 2013-10-20T19:20:30+01:00; // DateTime? | End date time - var appId = appId_example; // string | - var filterByUserId = 56; // int? | User id (optional) (optional) - var guid = guid_example; // string | Id of the log (optional) - var page = 56; // int? | Page number (optional) - var limit = 56; // int? | Page size (optional) - - try - { - // Get API interaction logs - RestApiPaginationResultHttpRequestAndResponseLog result = apiInstance.GetLogs(start, end, appId, filterByUserId, guid, page, limit); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling HttpRequestResponseLogsApi.GetLogs: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **start** | **DateTime?**| Start date time | - **end** | **DateTime?**| End date time | - **appId** | **string**| | - **filterByUserId** | **int?**| User id (optional) | [optional] - **guid** | **string**| Id of the log | [optional] - **page** | **int?**| Page number | [optional] - **limit** | **int?**| Page size | [optional] - -### Return type - -[**RestApiPaginationResultHttpRequestAndResponseLog**](RestApiPaginationResultHttpRequestAndResponseLog.md) - -### Authorization - -[oauth2](../README.md#oauth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, text/json, application/xml, text/xml - -[[Back to top]](#) [[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/HydraApi.md b/docs/HydraApi.md index 4d89d1d8..71eb6614 100644 --- a/docs/HydraApi.md +++ b/docs/HydraApi.md @@ -4,34 +4,37 @@ 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} | Assign an EMV terminal to a kiosk -[**AttachStoreToKiosk**](HydraApi.md#attachstoretokiosk) | **POST** /api/v1.0/{appId}/AttachStoreToKiosk/{deviceId}/store/{storeId} | [Private] -[**AttachStoreToTerminal**](HydraApi.md#attachstoretoterminal) | **POST** /api/v1.0/{appId}/hydra/{deviceId}/attach/{storeId} | [Private] +[**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} | [Private] -[**GetAttachedDevice**](HydraApi.md#getattacheddevice) | **GET** /api/v1.0/{appId}/hydra/{deviceType}/{deviceId} | [Private] -[**GetAttachedDevices**](HydraApi.md#getattacheddevices) | **GET** /api/v1.0/{appId}/hydra/{deviceType}/list | [Private] -[**GetEMVTerminalDetails**](HydraApi.md#getemvterminaldetails) | **GET** /api/v1.0/{appId}/hydra/emvterminal | [Private] -[**GetEmvOrderState**](HydraApi.md#getemvorderstate) | **GET** /api/v1.0/{appId}/hydra/emvorderstate/{orderId} | [Private] -[**GetKioskCashPaymentSettings**](HydraApi.md#getkioskcashpaymentsettings) | **GET** /api/v1.0/{appId}/kioskcashsettings/{deviceId} | Get the status of Cash Payment Methon on Kisok +[**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 | [Private] -[**HydraCreateEmv**](HydraApi.md#hydracreateemv) | **POST** /api/v1.0/{appId}/emvterminals | [Private] -[**HydraDeleteEmv**](HydraApi.md#hydradeleteemv) | **DELETE** /api/v1.0/{appId}/emvterminals/{id} | [Private] -[**HydraDetachStoreFromKiosk**](HydraApi.md#hydradetachstorefromkiosk) | **DELETE** /api/v1.0/{appId}/DetachStoreFromKiosk/{deviceId}/store/{storeId} | [Private] -[**HydraGetEmvsForAppId**](HydraApi.md#hydragetemvsforappid) | **GET** /api/v1.0/{appId}/emvterminals | List EMV terminals belonging to the given AppNameId -[**LoginWithDeviceId**](HydraApi.md#loginwithdeviceid) | **POST** /api/v1.0/hydra/{deviceId}/login | [Private] -[**Register**](HydraApi.md#register) | **POST** /api/v1.0/{appId}/hydra/registration | [Private] -[**UnAssign**](HydraApi.md#unassign) | **DELETE** /api/v1.0/{appId}/hydra/{deviceId}/registration | [Private] -[**UnassignEmv**](HydraApi.md#unassignemv) | **POST** /api/v1.0/{appId}/hydra/emvterminal/unassign/{hydraConfigId} | Unassign the currently assigned EMV terminal from a kiosk -[**UpdateKioskCashVisibilitySettings**](HydraApi.md#updatekioskcashvisibilitysettings) | **POST** /api/v1.0/{appId}/kioskupdatecashsettings | Update the Cash Payment Methon Visiability on Kisok +[**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) -Assign an EMV terminal to a kiosk + ### Example ```csharp @@ -57,7 +60,6 @@ namespace Example try { - // Assign an EMV terminal to a kiosk apiInstance.AssignEmv(appId, hydraConfigId, emvTerminalId); } catch (Exception e) @@ -96,7 +98,7 @@ void (empty response body) # **AttachStoreToKiosk** > RestApiResultHydraStatus AttachStoreToKiosk (string appId, int? storeId, string deviceId) -[Private] + ### Example ```csharp @@ -122,7 +124,6 @@ namespace Example try { - // [Private] RestApiResultHydraStatus result = apiInstance.AttachStoreToKiosk(appId, storeId, deviceId); Debug.WriteLine(result); } @@ -162,7 +163,7 @@ Name | Type | Description | Notes # **AttachStoreToTerminal** > RestApiResultHydraStatus AttachStoreToTerminal (string appId, string deviceId, int? storeId) -[Private] + ### Example ```csharp @@ -188,7 +189,6 @@ namespace Example try { - // [Private] RestApiResultHydraStatus result = apiInstance.AttachStoreToTerminal(appId, deviceId, storeId); Debug.WriteLine(result); } @@ -290,7 +290,7 @@ void (empty response body) # **DetachStoreFromTerminal** > RestApiResultHydraStatus DetachStoreFromTerminal (string appId, string deviceId, int? storeId) -[Private] + ### Example ```csharp @@ -316,7 +316,6 @@ namespace Example try { - // [Private] RestApiResultHydraStatus result = apiInstance.DetachStoreFromTerminal(appId, deviceId, storeId); Debug.WriteLine(result); } @@ -352,11 +351,67 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) -[Private] + ### Example ```csharp @@ -382,7 +437,6 @@ namespace Example try { - // [Private] RestApiResultHydraDeviceDetails result = apiInstance.GetAttachedDevice(appId, deviceType, deviceId); Debug.WriteLine(result); } @@ -422,7 +476,7 @@ Name | Type | Description | Notes # **GetAttachedDevices** > RestApiPaginationResultHydraDeviceDetails GetAttachedDevices (string appId, string deviceType, int? pageIndex = null, int? pageSize = null, int? storeId = null, string deviceName = null, string deviceSerial = null) -[Private] + ### Example ```csharp @@ -452,7 +506,6 @@ namespace Example try { - // [Private] RestApiPaginationResultHydraDeviceDetails result = apiInstance.GetAttachedDevices(appId, deviceType, pageIndex, pageSize, storeId, deviceName, deviceSerial); Debug.WriteLine(result); } @@ -496,7 +549,7 @@ Name | Type | Description | Notes # **GetEMVTerminalDetails** > RestApiResultPaymentTerminalDetails GetEMVTerminalDetails (string appId) -[Private] + ### Example ```csharp @@ -520,7 +573,6 @@ namespace Example try { - // [Private] RestApiResultPaymentTerminalDetails result = apiInstance.GetEMVTerminalDetails(appId); Debug.WriteLine(result); } @@ -558,7 +610,7 @@ Name | Type | Description | Notes # **GetEmvOrderState** > RestApiResultPaymentTerminalTransactionDetails GetEmvOrderState (int? orderId, string appId) -[Private] + ### Example ```csharp @@ -583,7 +635,6 @@ namespace Example try { - // [Private] RestApiResultPaymentTerminalTransactionDetails result = apiInstance.GetEmvOrderState(orderId, appId); Debug.WriteLine(result); } @@ -622,9 +673,7 @@ Name | Type | Description | Notes # **GetKioskCashPaymentSettings** > RestApiArrayResultKioskCashPaymentSettings GetKioskCashPaymentSettings (string appId, string deviceId) -Get the status of Cash Payment Methon on Kisok -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -649,7 +698,6 @@ namespace Example try { - // Get the status of Cash Payment Methon on Kisok RestApiArrayResultKioskCashPaymentSettings result = apiInstance.GetKioskCashPaymentSettings(appId, deviceId); Debug.WriteLine(result); } @@ -684,6 +732,69 @@ Name | Type | Description | Notes [[Back to top]](#) [[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 () @@ -745,7 +856,7 @@ This endpoint does not need any parameter. # **GetSettings** > RestApiResultHydraConfig GetSettings () -[Private] + ### Example ```csharp @@ -768,7 +879,6 @@ namespace Example try { - // [Private] RestApiResultHydraConfig result = apiInstance.GetSettings(); Debug.WriteLine(result); } @@ -803,7 +913,7 @@ This endpoint does not need any parameter. # **HydraCreateEmv** > Object HydraCreateEmv (string appId, EmvTerminal emv) -[Private] + ### Example ```csharp @@ -828,7 +938,6 @@ namespace Example try { - // [Private] Object result = apiInstance.HydraCreateEmv(appId, emv); Debug.WriteLine(result); } @@ -867,7 +976,7 @@ Name | Type | Description | Notes # **HydraDeleteEmv** > Object HydraDeleteEmv (string appId, int? id) -[Private] + ### Example ```csharp @@ -892,7 +1001,6 @@ namespace Example try { - // [Private] Object result = apiInstance.HydraDeleteEmv(appId, id); Debug.WriteLine(result); } @@ -931,7 +1039,7 @@ Name | Type | Description | Notes # **HydraDetachStoreFromKiosk** > RestApiResultHydraStatus HydraDetachStoreFromKiosk (string appId, int? storeId, string deviceId) -[Private] + ### Example ```csharp @@ -957,7 +1065,6 @@ namespace Example try { - // [Private] RestApiResultHydraStatus result = apiInstance.HydraDetachStoreFromKiosk(appId, storeId, deviceId); Debug.WriteLine(result); } @@ -997,7 +1104,7 @@ Name | Type | Description | Notes # **HydraGetEmvsForAppId** > RestApiArrayResultEmvTerminalWithAssignments HydraGetEmvsForAppId (string appId) -List EMV terminals belonging to the given AppNameId + ### Example ```csharp @@ -1021,7 +1128,6 @@ namespace Example try { - // List EMV terminals belonging to the given AppNameId RestApiArrayResultEmvTerminalWithAssignments result = apiInstance.HydraGetEmvsForAppId(appId); Debug.WriteLine(result); } @@ -1059,7 +1165,7 @@ Name | Type | Description | Notes # **LoginWithDeviceId** > void LoginWithDeviceId (string deviceId, string hydraUserType = null, string serialNumber = null) -[Private] + ### Example ```csharp @@ -1085,7 +1191,6 @@ namespace Example try { - // [Private] apiInstance.LoginWithDeviceId(deviceId, hydraUserType, serialNumber); } catch (Exception e) @@ -1124,7 +1229,7 @@ void (empty response body) # **Register** > RestApiResultHydraStatus Register (string appId, HydraRegistrationRequest hydraRegistration) -[Private] + ### Example ```csharp @@ -1149,7 +1254,6 @@ namespace Example try { - // [Private] RestApiResultHydraStatus result = apiInstance.Register(appId, hydraRegistration); Debug.WriteLine(result); } @@ -1188,7 +1292,7 @@ Name | Type | Description | Notes # **UnAssign** > void UnAssign (string appId, string deviceId) -[Private] + ### Example ```csharp @@ -1213,7 +1317,6 @@ namespace Example try { - // [Private] apiInstance.UnAssign(appId, deviceId); } catch (Exception e) @@ -1251,7 +1354,7 @@ void (empty response body) # **UnassignEmv** > void UnassignEmv (string appId, int? hydraConfigId) -Unassign the currently assigned EMV terminal from a kiosk + ### Example ```csharp @@ -1276,7 +1379,6 @@ namespace Example try { - // Unassign the currently assigned EMV terminal from a kiosk apiInstance.UnassignEmv(appId, hydraConfigId); } catch (Exception e) @@ -1314,9 +1416,7 @@ void (empty response body) # **UpdateKioskCashVisibilitySettings** > void UpdateKioskCashVisibilitySettings (string appId, string deviceId, bool? isCashEnabled) -Update the Cash Payment Methon Visiability on Kisok -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -1342,7 +1442,6 @@ namespace Example try { - // Update the Cash Payment Methon Visiability on Kisok apiInstance.UpdateKioskCashVisibilitySettings(appId, deviceId, isCashEnabled); } catch (Exception e) @@ -1377,3 +1476,67 @@ void (empty response body) [[Back to top]](#) [[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 index bbfc7c7a..25a63df5 100644 --- a/docs/HydraAssignedEvent.md +++ b/docs/HydraAssignedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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/HydraConnectionStatusChangedEvent.md b/docs/HydraConnectionStatusChangedEvent.md index 1e7deb8d..6f63e764 100644 --- a/docs/HydraConnectionStatusChangedEvent.md +++ b/docs/HydraConnectionStatusChangedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index ae3a23b8..f0215646 100644 --- a/docs/HydraDeviceDetails.md +++ b/docs/HydraDeviceDetails.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **HydraConfigId** | **int?** | Flipdish internal device identifier | [optional] -**DeviceId** | **string** | Device Id or Serial Number | [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] diff --git a/docs/HydraRequestResetEvent.md b/docs/HydraRequestResetEvent.md index c01d375a..610664af 100644 --- a/docs/HydraRequestResetEvent.md +++ b/docs/HydraRequestResetEvent.md @@ -9,7 +9,10 @@ Name | Type | Description | Notes **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 index 77968809..9c276d7f 100644 --- a/docs/HydraSettingChangedEvent.md +++ b/docs/HydraSettingChangedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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 index 9c72c752..f636d5d8 100644 --- a/docs/HydraStatus.md +++ b/docs/HydraStatus.md @@ -5,10 +5,13 @@ 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 | [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 index 9e0f9242..8722b0e2 100644 --- a/docs/HydraStoreAssignedEvent.md +++ b/docs/HydraStoreAssignedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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/HydraStoreUnassignedEvent.md b/docs/HydraStoreUnassignedEvent.md index 80d59d29..5f6694f1 100644 --- a/docs/HydraStoreUnassignedEvent.md +++ b/docs/HydraStoreUnassignedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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 index afdd3b57..ac37b5cb 100644 --- a/docs/HydraUnAssignedEvent.md +++ b/docs/HydraUnAssignedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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/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/RestApiResultDriver.md b/docs/IntercomUserHash.md similarity index 73% rename from docs/RestApiResultDriver.md rename to docs/IntercomUserHash.md index 8e2add37..5669cd62 100644 --- a/docs/RestApiResultDriver.md +++ b/docs/IntercomUserHash.md @@ -1,9 +1,9 @@ -# Flipdish.Model.RestApiResultDriver +# Flipdish.Model.IntercomUserHash ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | [**Driver**](Driver.md) | Generic data object. | +**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/AppStoreAppConfigurationHeader.md b/docs/InvoiceItem.md similarity index 54% rename from docs/AppStoreAppConfigurationHeader.md rename to docs/InvoiceItem.md index 6ac54d2f..d9217270 100644 --- a/docs/AppStoreAppConfigurationHeader.md +++ b/docs/InvoiceItem.md @@ -1,13 +1,14 @@ -# Flipdish.Model.AppStoreAppConfigurationHeader +# Flipdish.Model.InvoiceItem ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AppStoreAppId** | **string** | Unique App store app id | -**Name** | **string** | Name of Appstore app | **Description** | **string** | Description | -**Logo** | **string** | Logo | [optional] -**DeveloperName** | **string** | Developer name | [optional] +**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/KioskBluetoothInstallUpdateInitiateEvent.md b/docs/KioskBluetoothInstallUpdateInitiateEvent.md index 13b81eb1..6189294e 100644 --- a/docs/KioskBluetoothInstallUpdateInitiateEvent.md +++ b/docs/KioskBluetoothInstallUpdateInitiateEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index 401ed5fe..5e0d07a0 100644 --- a/docs/KioskBluetoothPairingModeEvent.md +++ b/docs/KioskBluetoothPairingModeEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index eea6b4f4..f096eebd 100644 --- a/docs/KioskBluetoothTerminalCancelUpdateEvent.md +++ b/docs/KioskBluetoothTerminalCancelUpdateEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index a591e347..492058f2 100644 --- a/docs/KioskBluetoothTerminalFirmwareVersionStatusEvent.md +++ b/docs/KioskBluetoothTerminalFirmwareVersionStatusEvent.md @@ -15,7 +15,10 @@ Name | Type | Description | Notes **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 index eaa7df35..fb87d0d2 100644 --- a/docs/KioskBluetoothTerminalInitiateUpdateCheckEvent.md +++ b/docs/KioskBluetoothTerminalInitiateUpdateCheckEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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 index 2f268766..e6d630ab 100644 --- a/docs/KioskBluetoothTerminalInstallationStatusEvent.md +++ b/docs/KioskBluetoothTerminalInstallationStatusEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index f71d31c5..16f5aa2b 100644 --- a/docs/KioskBluetoothTerminalUnpairedEvent.md +++ b/docs/KioskBluetoothTerminalUnpairedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index e82f5bf3..66301f12 100644 --- a/docs/KioskBluetoothTerminalUpdatedEvent.md +++ b/docs/KioskBluetoothTerminalUpdatedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index eabf7c81..b0803a7c 100644 --- a/docs/KioskBluetoothUnpairingModeEvent.md +++ b/docs/KioskBluetoothUnpairingModeEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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/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 index effd6bc8..02d9c97b 100644 --- a/docs/KioskIotApi.md +++ b/docs/KioskIotApi.md @@ -4,17 +4,15 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetKioskIotConnection**](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 -[**QueryTelemetrySeries**](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 +[**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 () -Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -37,7 +35,6 @@ namespace Example try { - // Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context RestApiResultKioskIotConnectionParameters result = apiInstance.GetKioskIotConnection(); Debug.WriteLine(result); } @@ -72,9 +69,7 @@ This endpoint does not need any parameter. # **QueryTelemetrySeries** > RestApiResultTelemetrySeriesResult QueryTelemetrySeries (string appId, TelemetrySeriesQueryParameters queryParams) -Get the IoT time series values for a given Kiosk Id, properties and time range -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -99,7 +94,6 @@ namespace Example try { - // Get the IoT time series values for a given Kiosk Id, properties and time range RestApiResultTelemetrySeriesResult result = apiInstance.QueryTelemetrySeries(appId, queryParams); Debug.WriteLine(result); } 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/KioskStoreSettings.md b/docs/KioskStoreSettings.md deleted file mode 100644 index 33885a2e..00000000 --- a/docs/KioskStoreSettings.md +++ /dev/null @@ -1,11 +0,0 @@ -# Flipdish.Model.KioskStoreSettings -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StoreKioskSettings** | [**List<StoreKioskSetting>**](StoreKioskSetting.md) | Kiosks store settings | [optional] -**Timezone** | **string** | Kiosks timezone | [optional] -**CurrentUtcTime** | **DateTime?** | Servers current Utc 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/KioskStoreSettingsApi.md b/docs/KioskStoreSettingsApi.md deleted file mode 100644 index 13e4d72e..00000000 --- a/docs/KioskStoreSettingsApi.md +++ /dev/null @@ -1,198 +0,0 @@ -# Flipdish.Api.KioskStoreSettingsApi - -All URIs are relative to *https://api.flipdish.co* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**GetAllKioskSettingsForStore**](KioskStoreSettingsApi.md#getallkiosksettingsforstore) | **GET** /api/v1.0/{appId}/kiosksettings/store/{storeId} | Get all kiosk settings associated with a store -[**GetAllStoreSettingsForKioskHydra**](KioskStoreSettingsApi.md#getallstoresettingsforkioskhydra) | **GET** /api/v1.0/kioskstoresettings | [For Kiosk use only] Get all stores connected to a Kiosk -[**UpdateCashSettingForKiosk**](KioskStoreSettingsApi.md#updatecashsettingforkiosk) | **POST** /api/v1.0/{appId}/kiosksettings/cash | - - - -# **GetAllKioskSettingsForStore** -> RestApiResultStoreKioskSettings GetAllKioskSettingsForStore (int? storeId, string appId) - -Get all kiosk settings associated with a store - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class GetAllKioskSettingsForStoreExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new KioskStoreSettingsApi(); - var storeId = 56; // int? | Store identifier - var appId = appId_example; // string | App Name Id - - try - { - // Get all kiosk settings associated with a store - RestApiResultStoreKioskSettings result = apiInstance.GetAllKioskSettingsForStore(storeId, appId); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling KioskStoreSettingsApi.GetAllKioskSettingsForStore: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **appId** | **string**| App Name Id | - -### Return type - -[**RestApiResultStoreKioskSettings**](RestApiResultStoreKioskSettings.md) - -### Authorization - -[oauth2](../README.md#oauth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, text/json, application/xml, text/xml - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **GetAllStoreSettingsForKioskHydra** -> RestApiResultKioskStoreSettings GetAllStoreSettingsForKioskHydra () - -[For Kiosk use only] Get all stores connected to a Kiosk - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class GetAllStoreSettingsForKioskHydraExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new KioskStoreSettingsApi(); - - try - { - // [For Kiosk use only] Get all stores connected to a Kiosk - RestApiResultKioskStoreSettings result = apiInstance.GetAllStoreSettingsForKioskHydra(); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling KioskStoreSettingsApi.GetAllStoreSettingsForKioskHydra: " + e.Message ); - } - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**RestApiResultKioskStoreSettings**](RestApiResultKioskStoreSettings.md) - -### Authorization - -[oauth2](../README.md#oauth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, text/json, application/xml, text/xml - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **UpdateCashSettingForKiosk** -> RestApiResultKioskCashSetting UpdateCashSettingForKiosk (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 UpdateCashSettingForKioskExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new KioskStoreSettingsApi(); - var appId = appId_example; // string | - var deviceId = deviceId_example; // string | - var isCashEnabled = true; // bool? | - - try - { - RestApiResultKioskCashSetting result = apiInstance.UpdateCashSettingForKiosk(appId, deviceId, isCashEnabled); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling KioskStoreSettingsApi.UpdateCashSettingForKiosk: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **appId** | **string**| | - **deviceId** | **string**| | - **isCashEnabled** | **bool?**| | - -### Return type - -[**RestApiResultKioskCashSetting**](RestApiResultKioskCashSetting.md) - -### Authorization - -[oauth2](../README.md#oauth2) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, text/json, application/xml, text/xml - -[[Back to top]](#) [[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/StoreKioskSettings.md b/docs/KioskStripeLocation.md similarity index 55% rename from docs/StoreKioskSettings.md rename to docs/KioskStripeLocation.md index 021c7728..ee50b2a3 100644 --- a/docs/StoreKioskSettings.md +++ b/docs/KioskStripeLocation.md @@ -1,10 +1,10 @@ -# Flipdish.Model.StoreKioskSettings +# Flipdish.Model.KioskStripeLocation ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**KioskStoreSettings** | [**List<StoreKioskSettingModel>**](StoreKioskSettingModel.md) | List of Store Kiosk Settings | [optional] -**StoreLogoUrl** | **string** | Store Logo Url | [optional] +**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 index a37f7565..885277e6 100644 --- a/docs/KioskTerminalActionStateChangedEvent.md +++ b/docs/KioskTerminalActionStateChangedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index a5d4d44d..3a2e0f20 100644 --- a/docs/Language.md +++ b/docs/Language.md @@ -6,6 +6,7 @@ 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/DriverInvitation.md b/docs/LeadTime.md similarity index 55% rename from docs/DriverInvitation.md rename to docs/LeadTime.md index 6cf9af20..dd7cd688 100644 --- a/docs/DriverInvitation.md +++ b/docs/LeadTime.md @@ -1,11 +1,10 @@ -# Flipdish.Model.DriverInvitation +# Flipdish.Model.LeadTime ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PhoneNumber** | **string** | Phone number | [optional] -**Name** | **string** | Driver's name | [optional] -**StoreIds** | **List<int?>** | Assigned store IDs | [optional] +**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/LineItem.md b/docs/LineItem.md deleted file mode 100644 index 0189b2ae..00000000 --- a/docs/LineItem.md +++ /dev/null @@ -1,17 +0,0 @@ -# Flipdish.Model.LineItem -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **int?** | Flipdish Item Id, if unknown leave 'null' | [optional] -**Name** | **string** | Item Name | [optional] -**SectionName** | **string** | Menu section name | [optional] -**ExternalId** | **string** | External Item Id | [optional] -**Quantity** | **int?** | Item Quantity | [optional] -**Price** | [**Price**](Price.md) | Item Price | [optional] -**Notes** | **string** | Item Notes | [optional] -**Options** | [**List<LineItemOption>**](LineItemOption.md) | Item Option | [optional] -**Metadata** | **Dictionary<string, string>** | Other 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/LineItemOption.md b/docs/LineItemOption.md deleted file mode 100644 index 40374fa1..00000000 --- a/docs/LineItemOption.md +++ /dev/null @@ -1,13 +0,0 @@ -# Flipdish.Model.LineItemOption -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **int?** | Flipdish Item Option Id, if unknown leave 'null' | [optional] -**ExternalId** | **string** | External Item Option Id | [optional] -**Name** | **string** | External Item Option Name | [optional] -**Price** | [**Price**](Price.md) | External Item Option Price | [optional] -**Metadata** | **Dictionary<string, string>** | Other 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/Location.md b/docs/Location.md deleted file mode 100644 index c71aa15f..00000000 --- a/docs/Location.md +++ /dev/null @@ -1,15 +0,0 @@ -# Flipdish.Model.Location -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AddressLine1** | **string** | Line 1 of the address | [optional] -**AddressLine2** | **string** | Line 2 of the address | [optional] -**FormattedAddress** | **string** | Formatted Address | [optional] -**PostalCode** | **string** | Postal / Zip Code | [optional] -**City** | **string** | City to deliver to | [optional] -**Coordinates** | [**Coordinates**](Coordinates.md) | Coordinates to deliver to | [optional] -**Notes** | **string** | Notes 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/LocationApi.md b/docs/LocationApi.md index 8cfc17f0..e955f2f3 100644 --- a/docs/LocationApi.md +++ b/docs/LocationApi.md @@ -4,18 +4,18 @@ 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 | Create a Location i.e: Table, Hotel Room, Car park space -[**DeleteLocation**](LocationApi.md#deletelocation) | **DELETE** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/delete | Set a Location as deleted -[**MapLocationToExternalId**](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 -[**MoveLocation**](LocationApi.md#movelocation) | **POST** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/location/{locationId}/move | Move a Location to a different location Area -[**UpdateLocation**](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 +[**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) -Create a Location i.e: Table, Hotel Room, Car park space + ### Example ```csharp @@ -35,14 +35,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new LocationApi(); - var createLocationInput = new List(); // List | Input data for creating the Location - var locationAreaId = 56; // int? | Id of the Location area where the Location belongs - var appId = appId_example; // string | AppId i.e: (fd1234) - var storeId = 56; // int? | Id of the Store + var createLocationInput = new List(); // List | + var locationAreaId = 56; // int? | + var appId = appId_example; // string | + var storeId = 56; // int? | try { - // Create a Location i.e: Table, Hotel Room, Car park space Object result = apiInstance.CreateLocation(createLocationInput, locationAreaId, appId, storeId); Debug.WriteLine(result); } @@ -59,10 +58,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **createLocationInput** | [**List<CreateLocation>**](CreateLocation.md)| Input data for creating the Location | - **locationAreaId** | **int?**| Id of the Location area where the Location belongs | - **appId** | **string**| AppId i.e: (fd1234) | - **storeId** | **int?**| Id of the Store | + **createLocationInput** | [**List<CreateLocation>**](CreateLocation.md)| | + **locationAreaId** | **int?**| | + **appId** | **string**| | + **storeId** | **int?**| | ### Return type @@ -83,7 +82,7 @@ Name | Type | Description | Notes # **DeleteLocation** > Object DeleteLocation (int? locationId, int? locationAreaId, string appId, int? storeId) -Set a Location as deleted + ### Example ```csharp @@ -103,14 +102,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new LocationApi(); - var locationId = 56; // int? | Id of the Location that will be moved - var locationAreaId = 56; // int? | Id of the Location Area that the Location belong - var appId = appId_example; // string | AppId i.e: (fd1234) - var storeId = 56; // int? | Id of the Store + var locationId = 56; // int? | + var locationAreaId = 56; // int? | + var appId = appId_example; // string | + var storeId = 56; // int? | try { - // Set a Location as deleted Object result = apiInstance.DeleteLocation(locationId, locationAreaId, appId, storeId); Debug.WriteLine(result); } @@ -127,10 +125,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **locationId** | **int?**| Id of the Location that will be moved | - **locationAreaId** | **int?**| Id of the Location Area that the Location belong | - **appId** | **string**| AppId i.e: (fd1234) | - **storeId** | **int?**| Id of the Store | + **locationId** | **int?**| | + **locationAreaId** | **int?**| | + **appId** | **string**| | + **storeId** | **int?**| | ### Return type @@ -151,7 +149,7 @@ Name | Type | Description | Notes # **MapLocationToExternalId** > RestApiResultMappedLocation MapLocationToExternalId (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null) -Set or unset External Location Id on a Location + ### Example ```csharp @@ -171,15 +169,14 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new LocationApi(); - var locationId = 56; // int? | Id of the Location that will be mapped - var locationAreaId = 56; // int? | Id of the Location Area that the Location belong - var appId = appId_example; // string | AppId i.e: (fd1234) - var storeId = 56; // int? | Id of the Store - var externalLocationId = externalLocationId_example; // string | External Id to be mapped to the location (optional) + var locationId = 56; // int? | + var locationAreaId = 56; // int? | + var appId = appId_example; // string | + var storeId = 56; // int? | + var externalLocationId = externalLocationId_example; // string | (optional) try { - // Set or unset External Location Id on a Location RestApiResultMappedLocation result = apiInstance.MapLocationToExternalId(locationId, locationAreaId, appId, storeId, externalLocationId); Debug.WriteLine(result); } @@ -196,11 +193,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **locationId** | **int?**| Id of the Location that will be mapped | - **locationAreaId** | **int?**| Id of the Location Area that the Location belong | - **appId** | **string**| AppId i.e: (fd1234) | - **storeId** | **int?**| Id of the Store | - **externalLocationId** | **string**| External Id to be mapped to the location | [optional] + **locationId** | **int?**| | + **locationAreaId** | **int?**| | + **appId** | **string**| | + **storeId** | **int?**| | + **externalLocationId** | **string**| | [optional] ### Return type @@ -221,7 +218,7 @@ Name | Type | Description | Notes # **MoveLocation** > Object MoveLocation (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId) -Move a Location to a different location Area + ### Example ```csharp @@ -241,15 +238,14 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new LocationApi(); - var locationId = 56; // int? | Id of the Location that will be moved - var locationAreaId = 56; // int? | Id of the new Location area that it should be moved to - var newLocationAreaId = 56; // int? | Id of the new Location area that it should be moved to - var appId = appId_example; // string | AppId i.e: (fd1234) - var storeId = 56; // int? | Id of the Store + var locationId = 56; // int? | + var locationAreaId = 56; // int? | + var newLocationAreaId = 56; // int? | + var appId = appId_example; // string | + var storeId = 56; // int? | try { - // Move a Location to a different location Area Object result = apiInstance.MoveLocation(locationId, locationAreaId, newLocationAreaId, appId, storeId); Debug.WriteLine(result); } @@ -266,11 +262,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **locationId** | **int?**| Id of the Location that will be moved | - **locationAreaId** | **int?**| Id of the new Location area that it should be moved to | - **newLocationAreaId** | **int?**| Id of the new Location area that it should be moved to | - **appId** | **string**| AppId i.e: (fd1234) | - **storeId** | **int?**| Id of the Store | + **locationId** | **int?**| | + **locationAreaId** | **int?**| | + **newLocationAreaId** | **int?**| | + **appId** | **string**| | + **storeId** | **int?**| | ### Return type @@ -291,7 +287,7 @@ Name | Type | Description | Notes # **UpdateLocation** > RestApiResultLocationAreaLocation UpdateLocation (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId) -Update a Location i.e: Table, Hotel Room, Car park space + ### Example ```csharp @@ -311,15 +307,14 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new LocationApi(); - var updateLocationInput = new CreateLocation(); // CreateLocation | Input data for updating the Location - var locationAreaId = 56; // int? | Id of the Location area where the Location belongs - var locationId = 56; // int? | Id of the Location to be updated - var appId = appId_example; // string | AppId i.e: (fd1234) - var storeId = 56; // int? | Id of the Store + var updateLocationInput = new CreateLocation(); // CreateLocation | + var locationAreaId = 56; // int? | + var locationId = 56; // int? | + var appId = appId_example; // string | + var storeId = 56; // int? | try { - // Update a Location i.e: Table, Hotel Room, Car park space RestApiResultLocationAreaLocation result = apiInstance.UpdateLocation(updateLocationInput, locationAreaId, locationId, appId, storeId); Debug.WriteLine(result); } @@ -336,11 +331,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **updateLocationInput** | [**CreateLocation**](CreateLocation.md)| Input data for updating the Location | - **locationAreaId** | **int?**| Id of the Location area where the Location belongs | - **locationId** | **int?**| Id of the Location to be updated | - **appId** | **string**| AppId i.e: (fd1234) | - **storeId** | **int?**| Id of the Store | + **updateLocationInput** | [**CreateLocation**](CreateLocation.md)| | + **locationAreaId** | **int?**| | + **locationId** | **int?**| | + **appId** | **string**| | + **storeId** | **int?**| | ### Return type diff --git a/docs/LocationAreaCreatedEvent.md b/docs/LocationAreaCreatedEvent.md index 8bbf6873..b587fab5 100644 --- a/docs/LocationAreaCreatedEvent.md +++ b/docs/LocationAreaCreatedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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/LocationAreaUpdatedEvent.md b/docs/LocationAreaUpdatedEvent.md index c327ff7f..c2519e24 100644 --- a/docs/LocationAreaUpdatedEvent.md +++ b/docs/LocationAreaUpdatedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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/LocationAreasApi.md b/docs/LocationAreasApi.md index a76e60c6..bf3a8914 100644 --- a/docs/LocationAreasApi.md +++ b/docs/LocationAreasApi.md @@ -4,17 +4,17 @@ 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 | Create a Location Area, i.e: Room, Floor, Parking lot -[**GetLocationArea**](LocationAreasApi.md#getlocationarea) | **GET** /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId} | Retrieve a Location Area -[**GetLocationAreasForStore**](LocationAreasApi.md#getlocationareasforstore) | **GET** /api/v1.0/{appId}/stores/{storeId}/location-areas | Retrieve all Location Areas for a Store -[**UpdateLocationArea**](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 +[**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) -Create a Location Area, i.e: Room, Floor, Parking lot + ### Example ```csharp @@ -34,13 +34,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new LocationAreasApi(); - var locationAreaInput = new CreateLocationArea(); // CreateLocationArea | Input data for creating the Location Area - var appId = appId_example; // string | AppId i.e: (fd1234) - var storeId = 56; // int? | Id of the Store + var locationAreaInput = new CreateLocationArea(); // CreateLocationArea | + var appId = appId_example; // string | + var storeId = 56; // int? | try { - // Create a Location Area, i.e: Room, Floor, Parking lot Object result = apiInstance.CreateLocationArea(locationAreaInput, appId, storeId); Debug.WriteLine(result); } @@ -57,9 +56,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **locationAreaInput** | [**CreateLocationArea**](CreateLocationArea.md)| Input data for creating the Location Area | - **appId** | **string**| AppId i.e: (fd1234) | - **storeId** | **int?**| Id of the Store | + **locationAreaInput** | [**CreateLocationArea**](CreateLocationArea.md)| | + **appId** | **string**| | + **storeId** | **int?**| | ### Return type @@ -80,7 +79,7 @@ Name | Type | Description | Notes # **GetLocationArea** > RestApiResultLocationAreaWithLocations GetLocationArea (int? locationAreaId, string appId, int? storeId) -Retrieve a Location Area + ### Example ```csharp @@ -100,13 +99,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new LocationAreasApi(); - var locationAreaId = 56; // int? | Id of the Location Area - var appId = appId_example; // string | AppId i.e: (fd1234) - var storeId = 56; // int? | Id of the Store + var locationAreaId = 56; // int? | + var appId = appId_example; // string | + var storeId = 56; // int? | try { - // Retrieve a Location Area RestApiResultLocationAreaWithLocations result = apiInstance.GetLocationArea(locationAreaId, appId, storeId); Debug.WriteLine(result); } @@ -123,9 +121,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **locationAreaId** | **int?**| Id of the Location Area | - **appId** | **string**| AppId i.e: (fd1234) | - **storeId** | **int?**| Id of the Store | + **locationAreaId** | **int?**| | + **appId** | **string**| | + **storeId** | **int?**| | ### Return type @@ -146,7 +144,7 @@ Name | Type | Description | Notes # **GetLocationAreasForStore** > RestApiArrayResultLocationAreaWithLocations GetLocationAreasForStore (string appId, int? storeId) -Retrieve all Location Areas for a Store + ### Example ```csharp @@ -166,12 +164,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new LocationAreasApi(); - var appId = appId_example; // string | AppId i.e: (fd1234) - var storeId = 56; // int? | Id of the Store + var appId = appId_example; // string | + var storeId = 56; // int? | try { - // Retrieve all Location Areas for a Store RestApiArrayResultLocationAreaWithLocations result = apiInstance.GetLocationAreasForStore(appId, storeId); Debug.WriteLine(result); } @@ -188,8 +185,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| AppId i.e: (fd1234) | - **storeId** | **int?**| Id of the Store | + **appId** | **string**| | + **storeId** | **int?**| | ### Return type @@ -210,7 +207,7 @@ Name | Type | Description | Notes # **UpdateLocationArea** > RestApiResultLocationArea UpdateLocationArea (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId) -Update a Location Area, i.e: Room, Floor, Car park space + ### Example ```csharp @@ -230,14 +227,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new LocationAreasApi(); - var locationAreaInput = new UpdateLocationArea(); // UpdateLocationArea | Input data for updating the Location Area - var appId = appId_example; // string | AppId i.e: (fd1234) - var storeId = 56; // int? | Id of the Store + var locationAreaInput = new UpdateLocationArea(); // UpdateLocationArea | + var appId = appId_example; // string | + var storeId = 56; // int? | var locationAreaId = locationAreaId_example; // string | try { - // Update a Location Area, i.e: Room, Floor, Car park space RestApiResultLocationArea result = apiInstance.UpdateLocationArea(locationAreaInput, appId, storeId, locationAreaId); Debug.WriteLine(result); } @@ -254,9 +250,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **locationAreaInput** | [**UpdateLocationArea**](UpdateLocationArea.md)| Input data for updating the Location Area | - **appId** | **string**| AppId i.e: (fd1234) | - **storeId** | **int?**| Id of the Store | + **locationAreaInput** | [**UpdateLocationArea**](UpdateLocationArea.md)| | + **appId** | **string**| | + **storeId** | **int?**| | **locationAreaId** | **string**| | ### Return type diff --git a/docs/LocationCreatedEvent.md b/docs/LocationCreatedEvent.md index 8f3c6419..75237d84 100644 --- a/docs/LocationCreatedEvent.md +++ b/docs/LocationCreatedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index 80053129..58fea6e5 100644 --- a/docs/LocationDeletedEvent.md +++ b/docs/LocationDeletedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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/LookerDashboardApi.md b/docs/LookerDashboardApi.md index 2a566dac..96a79d58 100644 --- a/docs/LookerDashboardApi.md +++ b/docs/LookerDashboardApi.md @@ -4,14 +4,14 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**LookerDashboardGetAll**](LookerDashboardApi.md#lookerdashboardgetall) | **GET** /api/v1.0/{appId}/looker/dashboards | Get all dashboards +[**LookerDashboardGetAll**](LookerDashboardApi.md#lookerdashboardgetall) | **GET** /api/v1.0/{appId}/looker/dashboards | # **LookerDashboardGetAll** > void LookerDashboardGetAll (string appId) -Get all dashboards + ### Example ```csharp @@ -35,7 +35,6 @@ namespace Example try { - // Get all dashboards apiInstance.LookerDashboardGetAll(appId); } catch (Exception e) diff --git a/docs/LookerSingleSignOnApi.md b/docs/LookerSingleSignOnApi.md index e587a49e..bef44ec0 100644 --- a/docs/LookerSingleSignOnApi.md +++ b/docs/LookerSingleSignOnApi.md @@ -4,14 +4,14 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetSSOEndpoint**](LookerSingleSignOnApi.md#getssoendpoint) | **GET** /api/v1.0/{appId}/looker/sso | Get the generic single sign on embed URL for Looker dashboards +[**GetSSOEndpoint**](LookerSingleSignOnApi.md#getssoendpoint) | **GET** /api/v1.0/{appId}/looker/sso | # **GetSSOEndpoint** > DashboardEmbed GetSSOEndpoint (string appId, string embedPath, string filters = null) -Get the generic single sign on embed URL for Looker dashboards + ### Example ```csharp @@ -31,13 +31,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new LookerSingleSignOnApi(); - var appId = appId_example; // string | AppNameId - var embedPath = embedPath_example; // string | Embed URL of the dashboard - var filters = filters_example; // string | Filters that will be passed to the dashboard (optional) + var appId = appId_example; // string | + var embedPath = embedPath_example; // string | + var filters = filters_example; // string | (optional) try { - // Get the generic single sign on embed URL for Looker dashboards DashboardEmbed result = apiInstance.GetSSOEndpoint(appId, embedPath, filters); Debug.WriteLine(result); } @@ -54,9 +53,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| AppNameId | - **embedPath** | **string**| Embed URL of the dashboard | - **filters** | **string**| Filters that will be passed to the dashboard | [optional] + **appId** | **string**| | + **embedPath** | **string**| | + **filters** | **string**| | [optional] ### Return type diff --git a/docs/LoyaltyCampaign.md b/docs/LoyaltyCampaign.md index 09333918..2d6a40a0 100644 --- a/docs/LoyaltyCampaign.md +++ b/docs/LoyaltyCampaign.md @@ -6,8 +6,10 @@ 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] @@ -16,6 +18,8 @@ Name | Type | Description | Notes **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 index cd03a12a..f77beaed 100644 --- a/docs/LoyaltyCampaignBase.md +++ b/docs/LoyaltyCampaignBase.md @@ -5,6 +5,7 @@ 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] @@ -13,6 +14,8 @@ Name | Type | Description | Notes **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 index 1c762894..0191826f 100644 --- a/docs/LoyaltyCampaignCreatedEvent.md +++ b/docs/LoyaltyCampaignCreatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 05294c66..a0555ddf 100644 --- a/docs/LoyaltyCampaignDeletedEvent.md +++ b/docs/LoyaltyCampaignDeletedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 25502d33..0f327bea 100644 --- a/docs/LoyaltyCampaignUpdatedEvent.md +++ b/docs/LoyaltyCampaignUpdatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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/Menu.md b/docs/Menu.md index d222ace6..e4f03ec5 100644 --- a/docs/Menu.md +++ b/docs/Menu.md @@ -12,9 +12,11 @@ Name | Type | Description | Notes **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 index 41bf188b..7e18dde2 100644 --- a/docs/MenuBase.md +++ b/docs/MenuBase.md @@ -6,6 +6,7 @@ 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 index 2f359064..8f1ca5a1 100644 --- a/docs/MenuBulkEditEvent.md +++ b/docs/MenuBulkEditEvent.md @@ -15,7 +15,10 @@ Name | Type | Description | Notes **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/MenuCheckpointCreatedEvent.md b/docs/MenuCheckpointCreatedEvent.md index 201190ca..126ebfb8 100644 --- a/docs/MenuCheckpointCreatedEvent.md +++ b/docs/MenuCheckpointCreatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 3cbbfdb5..748c1780 100644 --- a/docs/MenuCreatedEvent.md +++ b/docs/MenuCreatedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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/MenuItemOptionSetBase.md b/docs/MenuItemOptionSetBase.md index 3f315efb..6eac18dc 100644 --- a/docs/MenuItemOptionSetBase.md +++ b/docs/MenuItemOptionSetBase.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **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 index d2a7cf0e..6defe365 100644 --- a/docs/MenuItemOptionSetCreatedEvent.md +++ b/docs/MenuItemOptionSetCreatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 44eca734..fd1eb65e 100644 --- a/docs/MenuItemOptionSetDeletedEvent.md +++ b/docs/MenuItemOptionSetDeletedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index d355638a..423a799d 100644 --- a/docs/MenuItemOptionSetItem.md +++ b/docs/MenuItemOptionSetItem.md @@ -9,10 +9,11 @@ Name | Type | Description | Notes **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?** | | [optional] -**TaxValue** | **double?** | | [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] diff --git a/docs/MenuItemOptionSetItemBase.md b/docs/MenuItemOptionSetItemBase.md index 01767d9f..7bc286d4 100644 --- a/docs/MenuItemOptionSetItemBase.md +++ b/docs/MenuItemOptionSetItemBase.md @@ -5,10 +5,12 @@ 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 index bc19925f..64835978 100644 --- a/docs/MenuItemOptionSetItemCreatedEvent.md +++ b/docs/MenuItemOptionSetItemCreatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 3910a509..1483e496 100644 --- a/docs/MenuItemOptionSetItemDeletedEvent.md +++ b/docs/MenuItemOptionSetItemDeletedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 0eded3eb..f7e3cf91 100644 --- a/docs/MenuItemOptionSetItemUpdatedEvent.md +++ b/docs/MenuItemOptionSetItemUpdatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index b752038e..74ae770f 100644 --- a/docs/MenuItemOptionSetUpdatedEvent.md +++ b/docs/MenuItemOptionSetUpdatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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/MenuOptionSetItemsApi.md b/docs/MenuOptionSetItemsApi.md index 273ea542..8297efda 100644 --- a/docs/MenuOptionSetItemsApi.md +++ b/docs/MenuOptionSetItemsApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description [**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} | [Private API] Set Tax Rate on OptionSetItem +[**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 @@ -364,7 +364,7 @@ void (empty response body) # **SetOptionSetItemTax** > void SetOptionSetItemTax (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, int? taxRateId) -[Private API] Set Tax Rate on OptionSetItem +Set Tax Rate on OptionSetItem ### Example ```csharp @@ -393,7 +393,7 @@ namespace Example try { - // [Private API] Set Tax Rate on OptionSetItem + // Set Tax Rate on OptionSetItem apiInstance.SetOptionSetItemTax(menuId, menuSectionId, menuSectionItemId, optionSetId, menuItemOptionSetItemId, taxRateId); } catch (Exception e) @@ -461,7 +461,7 @@ namespace Example 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 operaton will be undone. (optional) + var undoAfter = 1.2; // double? | An optional time period, in hours, after which the hide-section operation will be undone. (optional) try { @@ -487,7 +487,7 @@ Name | Type | Description | Notes **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 operaton will be undone. | [optional] + **undoAfter** | **double?**| An optional time period, in hours, after which the hide-section operation will be undone. | [optional] ### Return type diff --git a/docs/MenuSectionBase.md b/docs/MenuSectionBase.md index 0a3c0a12..63391483 100644 --- a/docs/MenuSectionBase.md +++ b/docs/MenuSectionBase.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **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 index b7803197..4bbbf29d 100644 --- a/docs/MenuSectionCreatedEvent.md +++ b/docs/MenuSectionCreatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 372ec914..a72b5c15 100644 --- a/docs/MenuSectionDeletedEvent.md +++ b/docs/MenuSectionDeletedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 1f21609c..c24a3afe 100644 --- a/docs/MenuSectionItem.md +++ b/docs/MenuSectionItem.md @@ -3,7 +3,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MenuItemId** | **int?** | Menu item identifier. This ID may change at any time. Use `PublicId` if you need a permanent reference to the item. | [optional] **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] @@ -11,12 +10,14 @@ Name | Type | Description | Notes **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] @@ -24,6 +25,7 @@ Name | Type | Description | Notes **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 index 450571fa..592ea0c5 100644 --- a/docs/MenuSectionItemBase.md +++ b/docs/MenuSectionItemBase.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **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] @@ -15,6 +16,8 @@ Name | Type | Description | Notes **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 index 7a36ea04..29192710 100644 --- a/docs/MenuSectionItemCreatedEvent.md +++ b/docs/MenuSectionItemCreatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 5fcbcaa3..f7dea7d8 100644 --- a/docs/MenuSectionItemDeletedEvent.md +++ b/docs/MenuSectionItemDeletedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index bf5d9019..b928535e 100644 --- a/docs/MenuSectionItemUpdatedEvent.md +++ b/docs/MenuSectionItemUpdatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index cd88eee6..8bf881f1 100644 --- a/docs/MenuSectionItemsApi.md +++ b/docs/MenuSectionItemsApi.md @@ -11,8 +11,8 @@ Method | HTTP request | Description [**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} | [PRIVATE API]Move an Item within a menu -[**SetSectionItemTax**](MenuSectionItemsApi.md#setsectionitemtax) | **POST** /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitems/{menuSectionItemId}/taxrate/{taxRateId} | [PRIVATE API]Move an Item within a menu +[**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 @@ -481,7 +481,7 @@ Name | Type | Description | Notes # **MoveMenuItem** > void MoveMenuItem (int? menuId, int? menuSectionId, int? menuSectionItemId, int? destinationDisplayOrder) -[PRIVATE API]Move an Item within a menu +Move an Item within a menu ### Example ```csharp @@ -508,7 +508,7 @@ namespace Example try { - // [PRIVATE API]Move an Item within a menu + // Move an Item within a menu apiInstance.MoveMenuItem(menuId, menuSectionId, menuSectionItemId, destinationDisplayOrder); } catch (Exception e) @@ -548,7 +548,7 @@ void (empty response body) # **SetSectionItemTax** > void SetSectionItemTax (int? menuId, int? menuSectionId, int? menuSectionItemId, int? taxRateId) -[PRIVATE API]Move an Item within a menu +Set tax rate for menu item ### Example ```csharp @@ -575,7 +575,7 @@ namespace Example try { - // [PRIVATE API]Move an Item within a menu + // Set tax rate for menu item apiInstance.SetSectionItemTax(menuId, menuSectionId, menuSectionItemId, taxRateId); } catch (Exception e) @@ -639,7 +639,7 @@ namespace Example 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 operaton will be undone. (optional) + var undoAfter = 1.2; // double? | An optional time period, in hours, after which the hide-section operation will be undone (optional) try { @@ -663,7 +663,7 @@ Name | Type | Description | Notes **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 operaton will be undone. | [optional] + **undoAfter** | **double?**| An optional time period, in hours, after which the hide-section operation will be undone | [optional] ### Return type diff --git a/docs/MenuSectionUpdatedEvent.md b/docs/MenuSectionUpdatedEvent.md index 68b8c67a..c71c4a4b 100644 --- a/docs/MenuSectionUpdatedEvent.md +++ b/docs/MenuSectionUpdatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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/MenuSummary.md b/docs/MenuSummary.md index efc57cb9..95869403 100644 --- a/docs/MenuSummary.md +++ b/docs/MenuSummary.md @@ -6,9 +6,11 @@ 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/MenuUpdatedEvent.md b/docs/MenuUpdatedEvent.md index 5ba3157b..933681ab 100644 --- a/docs/MenuUpdatedEvent.md +++ b/docs/MenuUpdatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 084cdf0f..8c8a150d 100644 --- a/docs/MenuUploadedEvent.md +++ b/docs/MenuUploadedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index c373b4fe..a25b0ee9 100644 --- a/docs/MenusApi.md +++ b/docs/MenusApi.md @@ -4,9 +4,10 @@ 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} | [PRIVATE API]Clone a menu, (without attaching stores) -[**CreateNewMenuForApp**](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. -[**DeleteMenu**](MenusApi.md#deletemenu) | **DELETE** /api/v1.0/menus/{menuId} | [PRIVATE API]Mark a Menu as Deleted +[**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 @@ -14,23 +15,23 @@ Method | HTTP request | Description [**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 | [PRIVATE API]Get Menus Name -[**GetMenuStoreNames**](MenusApi.md#getmenustorenames) | **GET** /api/v1.0/menus/{menuId}/stores | [PRIVATE API]Get menus store names -[**GetMenuTaxDetails**](MenusApi.md#getmenutaxdetails) | **GET** /api/v1.0/menus/{menuId}/tax | [PRIVATE API]Get menus tax details -[**GetMenusByAppId**](MenusApi.md#getmenusbyappid) | **GET** /api/v1.0/{appId}/menus | [PRIVATE API]Get menus by appId -[**GetMenusCheckpoints**](MenusApi.md#getmenuscheckpoints) | **GET** /api/v1.0/menus/{menuId}/checkpoints | [PRIVATE API]Get a Menus Checkpoints -[**MenusDeleteTaxRate**](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 -[**MenusGetMenuBulkShowHide**](MenusApi.md#menusgetmenubulkshowhide) | **GET** /api/v1.0/menus/{menuId}/bulkshowhide/list | -[**MenusSetDisplayOnMenuTax**](MenusApi.md#menussetdisplayonmenutax) | **POST** /api/v1.0/menus/{menuId}/tax/show/{show} | [PRIVATE API]Set if tax shows for a Menu -[**MenusSetItemDisplayOrders**](MenusApi.md#menussetitemdisplayorders) | **POST** /api/v1.0/menus/{menuId}/sectiondisplayorders | [PRIVATE API]Re-arrange Sections within a Menu -[**MenusShowHideBulkItems**](MenusApi.md#menusshowhidebulkitems) | **POST** /api/v1.0/menus/{menuId}/bulkshowhide | -[**MenusUpdateTaxType**](MenusApi.md#menusupdatetaxtype) | **POST** /api/v1.0/menus/{menuId}/tax/type/{type} | [PRIVATE API]Set the type of Tax on a Menu -[**MenusUpsertTaxRate**](MenusApi.md#menusupserttaxrate) | **POST** /api/v1.0/menus/{menuId}/taxrate | [PRIVATE API]Add/Update a Tax Rate -[**RestoreAMenuCheckpoint**](MenusApi.md#restoreamenucheckpoint) | **POST** /api/v1.0/menus/{menuId}/checkpoints/{checkpointId}/restore | [PRIVATE API]Restore a Menu to a checkpoint +[**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 | [PRIVATE API]Lock/Unlock a Menu for Editing -[**SetMenuName**](MenusApi.md#setmenuname) | **POST** /api/v1.0/menus/{menuId}/name | [PRIVATE API]Set Menus Name +[**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. @@ -40,7 +41,7 @@ Method | HTTP request | Description # **CreateDraftMenuFromExistingMenu** > RestApiResultMenu CreateDraftMenuFromExistingMenu (int? menuId, string newName) -[PRIVATE API]Clone a menu, (without attaching stores) +Clone a menu, (without attaching stores) ### Example ```csharp @@ -65,7 +66,7 @@ namespace Example try { - // [PRIVATE API]Clone a menu, (without attaching stores) + // Clone a menu, (without attaching stores) RestApiResultMenu result = apiInstance.CreateDraftMenuFromExistingMenu(menuId, newName); Debug.WriteLine(result); } @@ -100,11 +101,81 @@ Name | Type | Description | Notes [[Back to top]](#) [[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. If request body is empty, the system will create a menu with default items. +Create a new menu + +[DEPRECATED] - Please use the async version as this endpoint may timeout for large menus ### Example ```csharp @@ -125,11 +196,11 @@ namespace Example var apiInstance = new MenusApi(); var appId = appId_example; // string | App identifier - var menu = new CreateFullMenu(); // CreateFullMenu | Menu + var menu = new CreateFullMenu(); // CreateFullMenu | Menu. If empty the system will create a menu with default items try { - // Create a new menu. If request body is empty, the system will create a menu with default items. + // Create a new menu int? result = apiInstance.CreateNewMenuForApp(appId, menu); Debug.WriteLine(result); } @@ -147,7 +218,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **appId** | **string**| App identifier | - **menu** | [**CreateFullMenu**](CreateFullMenu.md)| Menu | + **menu** | [**CreateFullMenu**](CreateFullMenu.md)| Menu. If empty the system will create a menu with default items | ### Return type @@ -168,7 +239,7 @@ Name | Type | Description | Notes # **DeleteMenu** > void DeleteMenu (int? menuId) -[PRIVATE API]Mark a Menu as Deleted +Mark a Menu as Deleted ### Example ```csharp @@ -192,7 +263,7 @@ namespace Example try { - // [PRIVATE API]Mark a Menu as Deleted + // Mark a Menu as Deleted apiInstance.DeleteMenu(menuId); } catch (Exception e) @@ -547,7 +618,7 @@ Name | Type | Description | Notes # **GetMenuItemMetadataByKey** -> void GetMenuItemMetadataByKey (int? menuId, int? storeId, int? menuItemId, string key) +> RestApiResultMetadata GetMenuItemMetadataByKey (int? menuId, int? storeId, int? menuItemId, string key) Get menu item metadata by key @@ -577,7 +648,8 @@ namespace Example try { // Get menu item metadata by key - apiInstance.GetMenuItemMetadataByKey(menuId, storeId, menuItemId, key); + RestApiResultMetadata result = apiInstance.GetMenuItemMetadataByKey(menuId, storeId, menuItemId, key); + Debug.WriteLine(result); } catch (Exception e) { @@ -599,7 +671,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +[**RestApiResultMetadata**](RestApiResultMetadata.md) ### Authorization @@ -680,9 +752,9 @@ Name | Type | Description | Notes # **GetMenuName** -> void GetMenuName (int? menuId) +> string GetMenuName (int? menuId) -[PRIVATE API]Get Menus Name +Get Menus Name ### Example ```csharp @@ -706,8 +778,9 @@ namespace Example try { - // [PRIVATE API]Get Menus Name - apiInstance.GetMenuName(menuId); + // Get Menus Name + string result = apiInstance.GetMenuName(menuId); + Debug.WriteLine(result); } catch (Exception e) { @@ -726,7 +799,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +**string** ### Authorization @@ -743,7 +816,7 @@ void (empty response body) # **GetMenuStoreNames** > RestApiArrayResultMenuStoreNames GetMenuStoreNames (int? menuId) -[PRIVATE API]Get menus store names +Get menus store names ### Example ```csharp @@ -767,7 +840,7 @@ namespace Example try { - // [PRIVATE API]Get menus store names + // Get menus store names RestApiArrayResultMenuStoreNames result = apiInstance.GetMenuStoreNames(menuId); Debug.WriteLine(result); } @@ -805,7 +878,7 @@ Name | Type | Description | Notes # **GetMenuTaxDetails** > RestApiArrayResultMenuTaxDetails GetMenuTaxDetails (int? menuId) -[PRIVATE API]Get menus tax details +Get menus tax details ### Example ```csharp @@ -829,7 +902,7 @@ namespace Example try { - // [PRIVATE API]Get menus tax details + // Get menus tax details RestApiArrayResultMenuTaxDetails result = apiInstance.GetMenuTaxDetails(menuId); Debug.WriteLine(result); } @@ -867,7 +940,7 @@ Name | Type | Description | Notes # **GetMenusByAppId** > RestApiArrayResultMenuSummary GetMenusByAppId (string appId) -[PRIVATE API]Get menus by appId +Get menus by appId ### Example ```csharp @@ -891,7 +964,7 @@ namespace Example try { - // [PRIVATE API]Get menus by appId + // Get menus by appId RestApiArrayResultMenuSummary result = apiInstance.GetMenusByAppId(appId); Debug.WriteLine(result); } @@ -929,7 +1002,7 @@ Name | Type | Description | Notes # **GetMenusCheckpoints** > RestApiArrayResultMenuCheckpoint GetMenusCheckpoints (int? menuId) -[PRIVATE API]Get a Menus Checkpoints +Get a Menus Checkpoints ### Example ```csharp @@ -953,7 +1026,7 @@ namespace Example try { - // [PRIVATE API]Get a Menus Checkpoints + // Get a Menus Checkpoints RestApiArrayResultMenuCheckpoint result = apiInstance.GetMenusCheckpoints(menuId); Debug.WriteLine(result); } @@ -991,7 +1064,7 @@ Name | Type | Description | Notes # **MenusDeleteTaxRate** > void MenusDeleteTaxRate (int? menuId, int? taxId) -[PRIVATE API]Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached +Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached ### Example ```csharp @@ -1016,7 +1089,7 @@ namespace Example try { - // [PRIVATE API]Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + // 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) @@ -1054,7 +1127,7 @@ void (empty response body) # **MenusGetMenuBulkShowHide** > RestApiArrayResultMenuElementListResponse MenusGetMenuBulkShowHide (int? menuId, bool? isAvailable) - +Get bulk show/hide menu items and option set items ### Example ```csharp @@ -1074,11 +1147,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new MenusApi(); - var menuId = 56; // int? | - var isAvailable = true; // bool? | + 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); } @@ -1095,8 +1169,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **menuId** | **int?**| | - **isAvailable** | **bool?**| | + **menuId** | **int?**| Menu id | + **isAvailable** | **bool?**| Is available flag | ### Return type @@ -1117,7 +1191,7 @@ Name | Type | Description | Notes # **MenusSetDisplayOnMenuTax** > void MenusSetDisplayOnMenuTax (int? menuId, bool? show) -[PRIVATE API]Set if tax shows for a Menu +Set if tax shows for a Menu ### Example ```csharp @@ -1142,7 +1216,7 @@ namespace Example try { - // [PRIVATE API]Set if tax shows for a Menu + // Set if tax shows for a Menu apiInstance.MenusSetDisplayOnMenuTax(menuId, show); } catch (Exception e) @@ -1180,7 +1254,7 @@ void (empty response body) # **MenusSetItemDisplayOrders** > void MenusSetItemDisplayOrders (int? menuId, MenuObjectDisplayOrders displayOrders) -[PRIVATE API]Re-arrange Sections within a Menu +Re-arrange Sections within a Menu ### Example ```csharp @@ -1205,7 +1279,7 @@ namespace Example try { - // [PRIVATE API]Re-arrange Sections within a Menu + // Re-arrange Sections within a Menu apiInstance.MenusSetItemDisplayOrders(menuId, displayOrders); } catch (Exception e) @@ -1243,7 +1317,7 @@ void (empty response body) # **MenusShowHideBulkItems** > RestApiArrayResultMenuElementEditResponse MenusShowHideBulkItems (int? menuId, List menuElements, bool? isAvailable) - +Bulk show/hide menu items or option set items ### Example ```csharp @@ -1263,12 +1337,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new MenusApi(); - var menuId = 56; // int? | - var menuElements = new List(); // List | - var isAvailable = true; // bool? | + 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); } @@ -1285,9 +1360,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **menuId** | **int?**| | - **menuElements** | [**List<MenuElementHide>**](MenuElementHide.md)| | - **isAvailable** | **bool?**| | + **menuId** | **int?**| Menu id | + **menuElements** | [**List<MenuElementHide>**](MenuElementHide.md)| Elements to be show/hide | + **isAvailable** | **bool?**| Is available flag | ### Return type @@ -1308,7 +1383,7 @@ Name | Type | Description | Notes # **MenusUpdateTaxType** > void MenusUpdateTaxType (int? menuId, string type) -[PRIVATE API]Set the type of Tax on a Menu +Set the type of Tax on a Menu ### Example ```csharp @@ -1333,7 +1408,7 @@ namespace Example try { - // [PRIVATE API]Set the type of Tax on a Menu + // Set the type of Tax on a Menu apiInstance.MenusUpdateTaxType(menuId, type); } catch (Exception e) @@ -1371,7 +1446,7 @@ void (empty response body) # **MenusUpsertTaxRate** > MenuTaxRate MenusUpsertTaxRate (int? menuId, MenuTaxRate taxRate) -[PRIVATE API]Add/Update a Tax Rate +Add/Update a Tax Rate ### Example ```csharp @@ -1392,11 +1467,11 @@ namespace Example var apiInstance = new MenusApi(); var menuId = 56; // int? | Menu identifier - var taxRate = new MenuTaxRate(); // MenuTaxRate | Tax Rate to Add/Update + var taxRate = new MenuTaxRate(); // MenuTaxRate | Tax rate to add/update try { - // [PRIVATE API]Add/Update a Tax Rate + // Add/Update a Tax Rate MenuTaxRate result = apiInstance.MenusUpsertTaxRate(menuId, taxRate); Debug.WriteLine(result); } @@ -1414,7 +1489,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **menuId** | **int?**| Menu identifier | - **taxRate** | [**MenuTaxRate**](MenuTaxRate.md)| Tax Rate to Add/Update | + **taxRate** | [**MenuTaxRate**](MenuTaxRate.md)| Tax rate to add/update | ### Return type @@ -1435,7 +1510,7 @@ Name | Type | Description | Notes # **RestoreAMenuCheckpoint** > void RestoreAMenuCheckpoint (int? menuId, int? checkpointId) -[PRIVATE API]Restore a Menu to a checkpoint +Restore a Menu to a checkpoint ### Example ```csharp @@ -1460,7 +1535,7 @@ namespace Example try { - // [PRIVATE API]Restore a Menu to a checkpoint + // Restore a Menu to a checkpoint apiInstance.RestoreAMenuCheckpoint(menuId, checkpointId); } catch (Exception e) @@ -1632,7 +1707,7 @@ void (empty response body) # **SetMenuLock** > void SetMenuLock (int? menuId, bool? locked) -[PRIVATE API]Lock/Unlock a Menu for Editing +Lock/Unlock a Menu for Editing ### Example ```csharp @@ -1657,7 +1732,7 @@ namespace Example try { - // [PRIVATE API]Lock/Unlock a Menu for Editing + // Lock/Unlock a Menu for Editing apiInstance.SetMenuLock(menuId, locked); } catch (Exception e) @@ -1695,7 +1770,7 @@ void (empty response body) # **SetMenuName** > void SetMenuName (int? menuId, string name) -[PRIVATE API]Set Menus Name +Set Menus Name ### Example ```csharp @@ -1720,7 +1795,7 @@ namespace Example try { - // [PRIVATE API]Set Menus Name + // Set Menus Name apiInstance.SetMenuName(menuId, name); } catch (Exception e) @@ -1779,7 +1854,7 @@ namespace Example var apiInstance = new MenusApi(); var menuId = 56; // int? | Menu identifier - var menu = new MenuBase(); // MenuBase | Menu (delta) + var menu = new MenuBase(); // MenuBase | Full menu data try { @@ -1800,7 +1875,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **menuId** | **int?**| Menu identifier | - **menu** | [**MenuBase**](MenuBase.md)| Menu (delta) | + **menu** | [**MenuBase**](MenuBase.md)| Full menu data | ### Return type 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/MetafieldDefinition.md b/docs/MetafieldDefinition.md index 26470fa9..742025e0 100644 --- a/docs/MetafieldDefinition.md +++ b/docs/MetafieldDefinition.md @@ -4,7 +4,7 @@ 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.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} | [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 | diff --git a/docs/MetafieldDefinitionRecommendation.md b/docs/MetafieldDefinitionRecommendation.md index b0f12231..004e6e50 100644 --- a/docs/MetafieldDefinitionRecommendation.md +++ b/docs/MetafieldDefinitionRecommendation.md @@ -3,7 +3,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**OwnerEntity** | **string** | The Metafield will extend the specified {Flipdish.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} | [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 | diff --git a/docs/MetafieldDefinitionsApi.md b/docs/MetafieldDefinitionsApi.md index e8579ea4..56649322 100644 --- a/docs/MetafieldDefinitionsApi.md +++ b/docs/MetafieldDefinitionsApi.md @@ -4,21 +4,19 @@ 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} | Create a Metafield Definition -[**GetMetafieldDefinitionByKey**](MetafieldDefinitionsApi.md#getmetafielddefinitionbykey) | **GET** /api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key} | Get a Metafield Definition for the specified owner entity and key. -[**GetMetafieldDefinitions**](MetafieldDefinitionsApi.md#getmetafielddefinitions) | **GET** /api/v1.0/{appId}/metafields/definitions/{ownerEntity} | Get Metafield Definitions for the specified owner entity. -[**GetOwnerEntityConfigurations**](MetafieldDefinitionsApi.md#getownerentityconfigurations) | **GET** /api/v1.0/{appId}/metafields/definitions | Get OwnerEntity Configurations which contain information to manage Metafield Definitions -[**GetOwnerEntityRecommendations**](MetafieldDefinitionsApi.md#getownerentityrecommendations) | **GET** /api/v1.0/{appId}/metafields/definitions/recommendations/{ownerEntity} | Get OwnerEntity Definition Recommendations -[**UpdateMetafieldDefinition**](MetafieldDefinitionsApi.md#updatemetafielddefinition) | **POST** /api/v1.0/{appId}/metafields/definitions/{ownerEntity}/{key} | Update a Metafield Definition +[**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) -Create a Metafield Definition -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -44,7 +42,6 @@ namespace Example try { - // Create a Metafield Definition RestApiResultMetafieldDefinition result = apiInstance.CreateMetafieldDefinition(appId, ownerEntity, createMetafieldDefinition); Debug.WriteLine(result); } @@ -84,9 +81,7 @@ Name | Type | Description | Notes # **GetMetafieldDefinitionByKey** > RestApiResultMetafieldDefinition GetMetafieldDefinitionByKey (string appId, string ownerEntity, string key) -Get a Metafield Definition for the specified owner entity and key. -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -112,7 +107,6 @@ namespace Example try { - // Get a Metafield Definition for the specified owner entity and key. RestApiResultMetafieldDefinition result = apiInstance.GetMetafieldDefinitionByKey(appId, ownerEntity, key); Debug.WriteLine(result); } @@ -152,9 +146,7 @@ Name | Type | Description | Notes # **GetMetafieldDefinitions** > RestApiPaginationResultMetafieldDefinition GetMetafieldDefinitions (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null) -Get Metafield Definitions for the specified owner entity. -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -182,7 +174,6 @@ namespace Example try { - // Get Metafield Definitions for the specified owner entity. RestApiPaginationResultMetafieldDefinition result = apiInstance.GetMetafieldDefinitions(appId, ownerEntity, searchTerm, page, limit); Debug.WriteLine(result); } @@ -224,9 +215,7 @@ Name | Type | Description | Notes # **GetOwnerEntityConfigurations** > OwnerEntityConfigurations GetOwnerEntityConfigurations (string appId) -Get OwnerEntity Configurations which contain information to manage Metafield Definitions -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -250,7 +239,6 @@ namespace Example try { - // Get OwnerEntity Configurations which contain information to manage Metafield Definitions OwnerEntityConfigurations result = apiInstance.GetOwnerEntityConfigurations(appId); Debug.WriteLine(result); } @@ -288,9 +276,7 @@ Name | Type | Description | Notes # **GetOwnerEntityRecommendations** > RestApiPaginationResultMetafieldDefinitionRecommendation GetOwnerEntityRecommendations (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null) -Get OwnerEntity Definition Recommendations -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -318,7 +304,6 @@ namespace Example try { - // Get OwnerEntity Definition Recommendations RestApiPaginationResultMetafieldDefinitionRecommendation result = apiInstance.GetOwnerEntityRecommendations(appId, ownerEntity, searchTerm, page, limit); Debug.WriteLine(result); } @@ -360,9 +345,7 @@ Name | Type | Description | Notes # **UpdateMetafieldDefinition** > RestApiResultMetafieldDefinition UpdateMetafieldDefinition (string appId, string ownerEntity, string key, UpdateMetafieldDefinition updateMetafieldDefinition) -Update a Metafield Definition -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -389,7 +372,6 @@ namespace Example try { - // Update a Metafield Definition RestApiResultMetafieldDefinition result = apiInstance.UpdateMetafieldDefinition(appId, ownerEntity, key, updateMetafieldDefinition); Debug.WriteLine(result); } diff --git a/docs/MobileAppsApi.md b/docs/MobileAppsApi.md index fc368086..46642074 100644 --- a/docs/MobileAppsApi.md +++ b/docs/MobileAppsApi.md @@ -4,21 +4,24 @@ 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 | Get sales channel configuration -[**GetStatistics**](MobileAppsApi.md#getstatistics) | **GET** /api/v1.0/mobileapps/{appId}/statistics | Get statistics mobile apps -[**GetSubmissionDetails**](MobileAppsApi.md#getsubmissiondetails) | **GET** /api/v1.0/mobileapps/{appId}/submission/details | Get submission details mobile apps -[**GetSubmissionStatus**](MobileAppsApi.md#getsubmissionstatus) | **GET** /api/v1.0/mobileapps/{appId}/submission/status | Get submission status mobile apps -[**Submission**](MobileAppsApi.md#submission) | **POST** /api/v1.0/mobileapps/{appId}/submission | Submission form mobile apps -[**UpdateAppConfigSalesChannel**](MobileAppsApi.md#updateappconfigsaleschannel) | **POST** /api/v1.0/mobileapps/{appId}/saleschannel | Update the application sales channel configuration -[**UpdateSubmissionStatus**](MobileAppsApi.md#updatesubmissionstatus) | **POST** /api/v1.0/mobileapps/{appId}/submission/{mobileAppsSubmissionId}/status | Update submission status -[**UploadImage**](MobileAppsApi.md#uploadimage) | **POST** /api/v1.0/mobileapps/{appId}/submission/image | Upload image mobile apps +[**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) -Get sales channel configuration + ### Example ```csharp @@ -42,7 +45,6 @@ namespace Example try { - // Get sales channel configuration RestApiResultAppConfigSalesChannel result = apiInstance.GetAppConfigSalesChannel(appId); Debug.WriteLine(result); } @@ -80,7 +82,7 @@ Name | Type | Description | Notes # **GetStatistics** > RestApiArrayResultMobileAppsStatistics GetStatistics (string appId, List platformTypes) -Get statistics mobile apps + ### Example ```csharp @@ -105,7 +107,6 @@ namespace Example try { - // Get statistics mobile apps RestApiArrayResultMobileAppsStatistics result = apiInstance.GetStatistics(appId, platformTypes); Debug.WriteLine(result); } @@ -144,7 +145,7 @@ Name | Type | Description | Notes # **GetSubmissionDetails** > RestApiResultMobileAppsSubmissionDetails GetSubmissionDetails (string appId) -Get submission details mobile apps + ### Example ```csharp @@ -168,7 +169,6 @@ namespace Example try { - // Get submission details mobile apps RestApiResultMobileAppsSubmissionDetails result = apiInstance.GetSubmissionDetails(appId); Debug.WriteLine(result); } @@ -204,9 +204,9 @@ Name | Type | Description | Notes # **GetSubmissionStatus** -> RestApiResultMobileAppsSubmissionStatus GetSubmissionStatus (string appId, int? mobileAppsSubmissionId) +> RestApiResultMobileAppsSubmissionStatus GetSubmissionStatus (string appId, int? submissionId) + -Get submission status mobile apps ### Example ```csharp @@ -227,12 +227,11 @@ namespace Example var apiInstance = new MobileAppsApi(); var appId = appId_example; // string | - var mobileAppsSubmissionId = 56; // int? | + var submissionId = 56; // int? | try { - // Get submission status mobile apps - RestApiResultMobileAppsSubmissionStatus result = apiInstance.GetSubmissionStatus(appId, mobileAppsSubmissionId); + RestApiResultMobileAppsSubmissionStatus result = apiInstance.GetSubmissionStatus(appId, submissionId); Debug.WriteLine(result); } catch (Exception e) @@ -249,7 +248,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **appId** | **string**| | - **mobileAppsSubmissionId** | **int?**| | + **submissionId** | **int?**| | ### Return type @@ -266,11 +265,139 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) -Submission form mobile apps + ### Example ```csharp @@ -295,7 +422,6 @@ namespace Example try { - // Submission form mobile apps RestApiResultMobileAppsSubmission result = apiInstance.Submission(appId, mobileAppsSubmission); Debug.WriteLine(result); } @@ -330,11 +456,76 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) -Update the application sales channel configuration + ### Example ```csharp @@ -359,7 +550,6 @@ namespace Example try { - // Update the application sales channel configuration RestApiResultAppConfigSalesChannel result = apiInstance.UpdateAppConfigSalesChannel(appId, appConfigSalesChannel); Debug.WriteLine(result); } @@ -396,9 +586,9 @@ Name | Type | Description | Notes # **UpdateSubmissionStatus** -> RestApiResultUpdateMobileAppsSubmissionStatus UpdateSubmissionStatus (string appId, int? mobileAppsSubmissionId, UpdateMobileAppsSubmissionStatus updateMobileAppsSubmissionStatus) +> RestApiResultUpdateMobileAppsSubmissionStatus UpdateSubmissionStatus (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus) + -Update submission status ### Example ```csharp @@ -419,13 +609,12 @@ namespace Example var apiInstance = new MobileAppsApi(); var appId = appId_example; // string | - var mobileAppsSubmissionId = 56; // int? | - var updateMobileAppsSubmissionStatus = new UpdateMobileAppsSubmissionStatus(); // UpdateMobileAppsSubmissionStatus | + var submissionId = 56; // int? | + var updateSubmissionStatus = new UpdateMobileAppsSubmissionStatus(); // UpdateMobileAppsSubmissionStatus | try { - // Update submission status - RestApiResultUpdateMobileAppsSubmissionStatus result = apiInstance.UpdateSubmissionStatus(appId, mobileAppsSubmissionId, updateMobileAppsSubmissionStatus); + RestApiResultUpdateMobileAppsSubmissionStatus result = apiInstance.UpdateSubmissionStatus(appId, submissionId, updateSubmissionStatus); Debug.WriteLine(result); } catch (Exception e) @@ -442,8 +631,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **appId** | **string**| | - **mobileAppsSubmissionId** | **int?**| | - **updateMobileAppsSubmissionStatus** | [**UpdateMobileAppsSubmissionStatus**](UpdateMobileAppsSubmissionStatus.md)| | + **submissionId** | **int?**| | + **updateSubmissionStatus** | [**UpdateMobileAppsSubmissionStatus**](UpdateMobileAppsSubmissionStatus.md)| | ### Return type @@ -464,7 +653,7 @@ Name | Type | Description | Notes # **UploadImage** > RestApiResultMobileAppsImage UploadImage (string appId, System.IO.Stream image) -Upload image mobile apps + ### Example ```csharp @@ -489,7 +678,6 @@ namespace Example try { - // Upload image mobile apps RestApiResultMobileAppsImage result = apiInstance.UploadImage(appId, image); Debug.WriteLine(result); } diff --git a/docs/MobileAppsSubmission.md b/docs/MobileAppsSubmission.md index c0662341..a9f7ecfa 100644 --- a/docs/MobileAppsSubmission.md +++ b/docs/MobileAppsSubmission.md @@ -3,6 +3,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**SubmissionId** | **int?** | Mobile Apps Submission Id | [optional] **AppName** | **string** | App Name | **AppDescription** | **string** | App Description | **AppShortDescription** | **string** | App Description | 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/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/OAuthClientsApi.md b/docs/OAuthClientsApi.md index 62bc27e6..e48c5393 100644 --- a/docs/OAuthClientsApi.md +++ b/docs/OAuthClientsApi.md @@ -4,24 +4,24 @@ 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 | Create OAuth App redirect uri -[**CreateOAuthApp**](OAuthClientsApi.md#createoauthapp) | **POST** /api/v1.0/{appId}/oauthclients | Create OAuth App -[**DeleteOAuthApp**](OAuthClientsApi.md#deleteoauthapp) | **DELETE** /api/v1.0/{appId}/oauthclients/{oauthAppId} | Delete OAuth App -[**GetOAuthApps**](OAuthClientsApi.md#getoauthapps) | **GET** /api/v1.0/{appId}/oauthclients | Get all OAuth Apps -[**GetOAuthClientByClientId**](OAuthClientsApi.md#getoauthclientbyclientid) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId} | Get OAuth App by identifier -[**GetOAuthClientSecret**](OAuthClientsApi.md#getoauthclientsecret) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/secret | Get OAuth App secret key -[**GetOauthAccessToken**](OAuthClientsApi.md#getoauthaccesstoken) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/accesstoken | Get OAuth access token for App -[**GetRedirectUris**](OAuthClientsApi.md#getredirecturis) | **GET** /api/v1.0/{appId}/oauthclients/{oauthAppId}/redirecturis | Get OAuth App redirect uris +[**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} | Delete OAuth App redirect uri -[**UpdateOAuthApp**](OAuthClientsApi.md#updateoauthapp) | **POST** /api/v1.0/{appId}/oauthclients/{oauthAppId} | Update OAuth App +[**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) -Create OAuth App redirect uri + ### Example ```csharp @@ -41,13 +41,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OAuthClientsApi(); - var oauthAppId = oauthAppId_example; // string | OAuth App identifier - var uri = uri_example; // string | Redirect uri + var oauthAppId = oauthAppId_example; // string | + var uri = uri_example; // string | var appId = appId_example; // string | try { - // Create OAuth App redirect uri RestApiResultOauthClientRedirectUri result = apiInstance.AddRedirectUri(oauthAppId, uri, appId); Debug.WriteLine(result); } @@ -64,8 +63,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| OAuth App identifier | - **uri** | **string**| Redirect uri | + **oauthAppId** | **string**| | + **uri** | **string**| | **appId** | **string**| | ### Return type @@ -87,7 +86,7 @@ Name | Type | Description | Notes # **CreateOAuthApp** > void CreateOAuthApp (OAuthApp oAuthApp, string appId) -Create OAuth App + ### Example ```csharp @@ -107,12 +106,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OAuthClientsApi(); - var oAuthApp = new OAuthApp(); // OAuthApp | OAuth App + var oAuthApp = new OAuthApp(); // OAuthApp | var appId = appId_example; // string | try { - // Create OAuth App apiInstance.CreateOAuthApp(oAuthApp, appId); } catch (Exception e) @@ -128,7 +126,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oAuthApp** | [**OAuthApp**](OAuthApp.md)| OAuth App | + **oAuthApp** | [**OAuthApp**](OAuthApp.md)| | **appId** | **string**| | ### Return type @@ -150,7 +148,7 @@ void (empty response body) # **DeleteOAuthApp** > void DeleteOAuthApp (string oauthAppId, string appId) -Delete OAuth App + ### Example ```csharp @@ -170,12 +168,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OAuthClientsApi(); - var oauthAppId = oauthAppId_example; // string | OAuth App identifier + var oauthAppId = oauthAppId_example; // string | var appId = appId_example; // string | try { - // Delete OAuth App apiInstance.DeleteOAuthApp(oauthAppId, appId); } catch (Exception e) @@ -191,7 +188,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| OAuth App identifier | + **oauthAppId** | **string**| | **appId** | **string**| | ### Return type @@ -213,7 +210,7 @@ void (empty response body) # **GetOAuthApps** > RestApiArrayResultOAuthApp GetOAuthApps (string appId, string oauthAppName = null) -Get all OAuth Apps + ### Example ```csharp @@ -238,7 +235,6 @@ namespace Example try { - // Get all OAuth Apps RestApiArrayResultOAuthApp result = apiInstance.GetOAuthApps(appId, oauthAppName); Debug.WriteLine(result); } @@ -277,7 +273,7 @@ Name | Type | Description | Notes # **GetOAuthClientByClientId** > RestApiResultOAuthApp GetOAuthClientByClientId (string oauthAppId, string appId) -Get OAuth App by identifier + ### Example ```csharp @@ -297,12 +293,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OAuthClientsApi(); - var oauthAppId = oauthAppId_example; // string | OAuth App identifier + var oauthAppId = oauthAppId_example; // string | var appId = appId_example; // string | try { - // Get OAuth App by identifier RestApiResultOAuthApp result = apiInstance.GetOAuthClientByClientId(oauthAppId, appId); Debug.WriteLine(result); } @@ -319,7 +314,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| OAuth App identifier | + **oauthAppId** | **string**| | **appId** | **string**| | ### Return type @@ -341,7 +336,7 @@ Name | Type | Description | Notes # **GetOAuthClientSecret** > RestApiStringResult GetOAuthClientSecret (string oauthAppId, string appId) -Get OAuth App secret key + ### Example ```csharp @@ -361,12 +356,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OAuthClientsApi(); - var oauthAppId = oauthAppId_example; // string | OAuth App identifier + var oauthAppId = oauthAppId_example; // string | var appId = appId_example; // string | try { - // Get OAuth App secret key RestApiStringResult result = apiInstance.GetOAuthClientSecret(oauthAppId, appId); Debug.WriteLine(result); } @@ -383,7 +377,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| OAuth App identifier | + **oauthAppId** | **string**| | **appId** | **string**| | ### Return type @@ -405,7 +399,7 @@ Name | Type | Description | Notes # **GetOauthAccessToken** > RestApiStringResult GetOauthAccessToken (string oauthAppId, string appId) -Get OAuth access token for App + ### Example ```csharp @@ -425,12 +419,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OAuthClientsApi(); - var oauthAppId = oauthAppId_example; // string | OAuth App identifier + var oauthAppId = oauthAppId_example; // string | var appId = appId_example; // string | try { - // Get OAuth access token for App RestApiStringResult result = apiInstance.GetOauthAccessToken(oauthAppId, appId); Debug.WriteLine(result); } @@ -447,7 +440,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| OAuth App identifier | + **oauthAppId** | **string**| | **appId** | **string**| | ### Return type @@ -469,7 +462,7 @@ Name | Type | Description | Notes # **GetRedirectUris** > RestApiArrayResultOauthClientRedirectUri GetRedirectUris (string oauthAppId, string appId) -Get OAuth App redirect uris + ### Example ```csharp @@ -489,12 +482,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OAuthClientsApi(); - var oauthAppId = oauthAppId_example; // string | OAuth App identifier + var oauthAppId = oauthAppId_example; // string | var appId = appId_example; // string | try { - // Get OAuth App redirect uris RestApiArrayResultOauthClientRedirectUri result = apiInstance.GetRedirectUris(oauthAppId, appId); Debug.WriteLine(result); } @@ -511,7 +503,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| OAuth App identifier | + **oauthAppId** | **string**| | **appId** | **string**| | ### Return type @@ -594,7 +586,7 @@ Name | Type | Description | Notes # **RemoveRedirectUri** > void RemoveRedirectUri (string oauthAppId, int? uriId, string appId) -Delete OAuth App redirect uri + ### Example ```csharp @@ -614,13 +606,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OAuthClientsApi(); - var oauthAppId = oauthAppId_example; // string | OAuth App identifier - var uriId = 56; // int? | Redirect uri identifier + var oauthAppId = oauthAppId_example; // string | + var uriId = 56; // int? | var appId = appId_example; // string | try { - // Delete OAuth App redirect uri apiInstance.RemoveRedirectUri(oauthAppId, uriId, appId); } catch (Exception e) @@ -636,8 +627,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| OAuth App identifier | - **uriId** | **int?**| Redirect uri identifier | + **oauthAppId** | **string**| | + **uriId** | **int?**| | **appId** | **string**| | ### Return type @@ -659,7 +650,7 @@ void (empty response body) # **UpdateOAuthApp** > void UpdateOAuthApp (string oauthAppId, OAuthApp oAuthApp, string appId) -Update OAuth App + ### Example ```csharp @@ -679,13 +670,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OAuthClientsApi(); - var oauthAppId = oauthAppId_example; // string | OAuth App identifier - var oAuthApp = new OAuthApp(); // OAuthApp | OAuth App + var oauthAppId = oauthAppId_example; // string | + var oAuthApp = new OAuthApp(); // OAuthApp | var appId = appId_example; // string | try { - // Update OAuth App apiInstance.UpdateOAuthApp(oauthAppId, oAuthApp, appId); } catch (Exception e) @@ -701,8 +691,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| OAuth App identifier | - **oAuthApp** | [**OAuthApp**](OAuthApp.md)| OAuth App | + **oauthAppId** | **string**| | + **oAuthApp** | [**OAuthApp**](OAuthApp.md)| | **appId** | **string**| | ### Return type 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 index 45782e9a..2cce27cd 100644 --- a/docs/OnboardingApi.md +++ b/docs/OnboardingApi.md @@ -5,9 +5,13 @@ 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} | @@ -71,9 +75,70 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) +> Object OnboardingGetOnboardingItems (string appId, int? storeId, int? milestoneId = null) @@ -97,10 +162,11 @@ namespace Example 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); + Object result = apiInstance.OnboardingGetOnboardingItems(appId, storeId, milestoneId); Debug.WriteLine(result); } catch (Exception e) @@ -118,6 +184,72 @@ 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 @@ -197,6 +329,71 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) @@ -264,3 +461,70 @@ Name | Type | Description | Notes [[Back to top]](#) [[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 index 772fce7a..7ecd5857 100644 --- a/docs/OnboardingConfigUpdate.md +++ b/docs/OnboardingConfigUpdate.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **IsEnabled** | **bool?** | Gets or sets whether onboarding is enabled | [optional] -**IsWelcomeScreenEnabled** | **bool?** | | [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/Order.md b/docs/Order.md index c945c20d..546310d0 100644 --- a/docs/Order.md +++ b/docs/Order.md @@ -20,9 +20,11 @@ Name | Type | Description | Notes **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] -**ReceiptCode** | **string** | Generated receipt code for an order | [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] @@ -51,6 +53,9 @@ Name | Type | Description | Notes **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 index 99718e72..b30be962 100644 --- a/docs/OrderAcceptedEvent.md +++ b/docs/OrderAcceptedEvent.md @@ -4,14 +4,18 @@ 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 index 0084defc..cd84f01c 100644 --- a/docs/OrderBatch.md +++ b/docs/OrderBatch.md @@ -3,11 +3,11 @@ 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] -**OrderIds** | **List<int?>** | Orders' ids on the batch | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OrderBatchItem.md b/docs/OrderBatchItem.md deleted file mode 100644 index 57a0e934..00000000 --- a/docs/OrderBatchItem.md +++ /dev/null @@ -1,11 +0,0 @@ -# Flipdish.Model.OrderBatchItem -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BatchId** | **int?** | Unique identifier | [optional] -**CreatedAt** | **DateTime?** | Creation date | [optional] -**IsPublished** | **bool?** | Is dispatched | [optional] - -[[Back to Model list]](../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 index dbd02a6a..5cc995c2 100644 --- a/docs/OrderBatchesApi.md +++ b/docs/OrderBatchesApi.md @@ -4,17 +4,15 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetAllOrderBatches**](OrderBatchesApi.md#getallorderbatches) | **GET** /api/v1.0/{appId}/stores/{storeId}/order-batches | Returns order batches -[**GetOrderBatch**](OrderBatchesApi.md#getorderbatch) | **GET** /api/v1.0/{appId}/stores/{storeId}/order-batches/{batchId} | Returns the order batch details +[**GetAllOrderBatches**](OrderBatchesApi.md#getallorderbatches) | **GET** /api/v1.0/{appId}/order-batches | +[**GetOrderBatch**](OrderBatchesApi.md#getorderbatch) | **GET** /api/v1.0/{appId}/order-batches/{orderBatchId} | # **GetAllOrderBatches** -> RestApiArrayResultOrderBatchItem GetAllOrderBatches (string appId, int? storeId, DateTime? createdFrom = null, DateTime? createdTo = null) +> RestApiArrayResultOrderBatch GetAllOrderBatches (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null) -Returns order batches -Entries are sorted by date, from the most recent. At most 100 entries are returned. ### Example ```csharp @@ -34,15 +32,14 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrderBatchesApi(); - var appId = appId_example; // string | App Id - var storeId = 56; // int? | Store Id - var createdFrom = 2013-10-20T19:20:30+01:00; // DateTime? | Start date for retrieving the entries (optional) - var createdTo = 2013-10-20T19:20:30+01:00; // DateTime? | End date for retrieving the entries (optional) + 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 { - // Returns order batches - RestApiArrayResultOrderBatchItem result = apiInstance.GetAllOrderBatches(appId, storeId, createdFrom, createdTo); + RestApiArrayResultOrderBatch result = apiInstance.GetAllOrderBatches(appId, storeIds, createdFrom, createdTo); Debug.WriteLine(result); } catch (Exception e) @@ -58,14 +55,14 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Id | - **storeId** | **int?**| Store Id | - **createdFrom** | **DateTime?**| Start date for retrieving the entries | [optional] - **createdTo** | **DateTime?**| End date for retrieving the entries | [optional] + **appId** | **string**| | + **storeIds** | [**List<int?>**](int?.md)| | [optional] + **createdFrom** | **DateTime?**| | [optional] + **createdTo** | **DateTime?**| | [optional] ### Return type -[**RestApiArrayResultOrderBatchItem**](RestApiArrayResultOrderBatchItem.md) +[**RestApiArrayResultOrderBatch**](RestApiArrayResultOrderBatch.md) ### Authorization @@ -80,9 +77,9 @@ Name | Type | Description | Notes # **GetOrderBatch** -> RestApiResultOrderBatch GetOrderBatch (string appId, int? storeId, int? batchId) +> RestApiResultOrderBatch GetOrderBatch (string appId, int? orderBatchId) + -Returns the order batch details ### Example ```csharp @@ -102,14 +99,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrderBatchesApi(); - var appId = appId_example; // string | App Id - var storeId = 56; // int? | Store Id - var batchId = 56; // int? | Order Batch Id + var appId = appId_example; // string | + var orderBatchId = 56; // int? | try { - // Returns the order batch details - RestApiResultOrderBatch result = apiInstance.GetOrderBatch(appId, storeId, batchId); + RestApiResultOrderBatch result = apiInstance.GetOrderBatch(appId, orderBatchId); Debug.WriteLine(result); } catch (Exception e) @@ -125,9 +120,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Id | - **storeId** | **int?**| Store Id | - **batchId** | **int?**| Order Batch Id | + **appId** | **string**| | + **orderBatchId** | **int?**| | ### Return type diff --git a/docs/OrderBatchingConfiguration.md b/docs/OrderBatchingConfiguration.md index a40a026a..84ec1c2a 100644 --- a/docs/OrderBatchingConfiguration.md +++ b/docs/OrderBatchingConfiguration.md @@ -3,7 +3,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**BatchIntervalInMinutes** | **int?** | Batch sending interval in minutes | [optional] +**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 index daf453cc..b4ed4a0f 100644 --- a/docs/OrderBatchingConfigurationApi.md +++ b/docs/OrderBatchingConfigurationApi.md @@ -4,15 +4,15 @@ 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 | Returns order batching configuration for a specific store -[**Post**](OrderBatchingConfigurationApi.md#post) | **POST** /api/v1.0/stores/{storeId}/order-batching-configuration | Sets order batching configuration for a specific store +[**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) -Returns order batching configuration for a specific store + ### Example ```csharp @@ -32,11 +32,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrderBatchingConfigurationApi(); - var storeId = 56; // int? | Store Id + var storeId = 56; // int? | try { - // Returns order batching configuration for a specific store RestApiResultOrderBatchingConfiguration result = apiInstance.Get(storeId); Debug.WriteLine(result); } @@ -53,7 +52,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store Id | + **storeId** | **int?**| | ### Return type @@ -74,7 +73,7 @@ Name | Type | Description | Notes # **Post** > void Post (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration) -Sets order batching configuration for a specific store + ### Example ```csharp @@ -94,12 +93,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrderBatchingConfigurationApi(); - var storeId = 56; // int? | Store Id - var setOrderBatchingConfiguration = new SetOrderBatchingConfiguration(); // SetOrderBatchingConfiguration | SetOrderBatchingConfiguration + var storeId = 56; // int? | + var setOrderBatchingConfiguration = new SetOrderBatchingConfiguration(); // SetOrderBatchingConfiguration | try { - // Sets order batching configuration for a specific store apiInstance.Post(storeId, setOrderBatchingConfiguration); } catch (Exception e) @@ -115,8 +113,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store Id | - **setOrderBatchingConfiguration** | [**SetOrderBatchingConfiguration**](SetOrderBatchingConfiguration.md)| SetOrderBatchingConfiguration | + **storeId** | **int?**| | + **setOrderBatchingConfiguration** | [**SetOrderBatchingConfiguration**](SetOrderBatchingConfiguration.md)| | ### Return type diff --git a/docs/OrderCapacityConfigUpdatedEvent.md b/docs/OrderCapacityConfigUpdatedEvent.md index c6e4063c..17fe14a5 100644 --- a/docs/OrderCapacityConfigUpdatedEvent.md +++ b/docs/OrderCapacityConfigUpdatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 64864889..168821a2 100644 --- a/docs/OrderCreatedEvent.md +++ b/docs/OrderCreatedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index 7e7bf5c9..4068e6a2 100644 --- a/docs/OrderCustomerTrackingCreatedEvent.md +++ b/docs/OrderCustomerTrackingCreatedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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/OrderDeliveryTrackingStatusUpdatedEvent.md b/docs/OrderDeliveryTrackingStatusUpdatedEvent.md index 39b6eb99..7f621bae 100644 --- a/docs/OrderDeliveryTrackingStatusUpdatedEvent.md +++ b/docs/OrderDeliveryTrackingStatusUpdatedEvent.md @@ -6,11 +6,16 @@ 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 index 276b81a8..567a1a13 100644 --- a/docs/OrderDispatchedEvent.md +++ b/docs/OrderDispatchedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index 999cae8c..d66cbfd8 100644 --- a/docs/OrderDropOffLocation.md +++ b/docs/OrderDropOffLocation.md @@ -3,12 +3,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**OrderId** | **int?** | | [optional] -**LocationName** | **string** | | [optional] -**LocationAreaName** | **string** | | [optional] -**LocationId** | **int?** | | [optional] -**LocationAreaId** | **int?** | | [optional] -**ExternalLocationId** | **string** | | [optional] +**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/OrderFulfillmentStatusUpdatedEvent.md b/docs/OrderFulfillmentStatusUpdatedEvent.md index 19605078..0cb0a8b3 100644 --- a/docs/OrderFulfillmentStatusUpdatedEvent.md +++ b/docs/OrderFulfillmentStatusUpdatedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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/OrderIdAndSequenceNumber.md b/docs/OrderIdAndSequenceNumber.md deleted file mode 100644 index efa9c7e4..00000000 --- a/docs/OrderIdAndSequenceNumber.md +++ /dev/null @@ -1,10 +0,0 @@ -# Flipdish.Model.OrderIdAndSequenceNumber -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**OrderId** | **int?** | Order identifier | [optional] -**Sequence** | **int?** | Sequence 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/OrderIngestApi.md b/docs/OrderIngestApi.md deleted file mode 100644 index 6006f1f7..00000000 --- a/docs/OrderIngestApi.md +++ /dev/null @@ -1,75 +0,0 @@ -# Flipdish.Api.OrderIngestApi - -All URIs are relative to *https://api.flipdish.co* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**OrderIngestSubmitNewOrder**](OrderIngestApi.md#orderingestsubmitneworder) | **POST** /api/v1.0/{appNameId}/order-ingest/submit | Provides an ability to ingest a 3rd party order into Flipdish ecosystem - - - -# **OrderIngestSubmitNewOrder** -> RestApiResultOrderIngestSubmitOrderResponse OrderIngestSubmitNewOrder (OrderIngestSubmitOrderRequest order, string appNameId) - -Provides an ability to ingest a 3rd party order into Flipdish ecosystem - -[ALPHA - this endpoint is under internal development, it is not available just yet to use in your production system] - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class OrderIngestSubmitNewOrderExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new OrderIngestApi(); - var order = new OrderIngestSubmitOrderRequest(); // OrderIngestSubmitOrderRequest | - var appNameId = appNameId_example; // string | - - try - { - // Provides an ability to ingest a 3rd party order into Flipdish ecosystem - RestApiResultOrderIngestSubmitOrderResponse result = apiInstance.OrderIngestSubmitNewOrder(order, appNameId); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling OrderIngestApi.OrderIngestSubmitNewOrder: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order** | [**OrderIngestSubmitOrderRequest**](OrderIngestSubmitOrderRequest.md)| | - **appNameId** | **string**| | - -### Return type - -[**RestApiResultOrderIngestSubmitOrderResponse**](RestApiResultOrderIngestSubmitOrderResponse.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/OrderIngestSubmitOrderRequest.md b/docs/OrderIngestSubmitOrderRequest.md deleted file mode 100644 index 175a99dd..00000000 --- a/docs/OrderIngestSubmitOrderRequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# Flipdish.Model.OrderIngestSubmitOrderRequest -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AppType** | **string** | [Required] Indicated the name from where the request is coming from | [optional] -**StoreId** | **int?** | [Required] Store Id | [optional] -**CurrencyCode** | **string** | [Required] Currency Code These must match three letter codes ISO 4127 http://en.wikipedia.org/wiki/ISO_4217 | [optional] -**Cart** | [**Cart**](Cart.md) | [Required] Cart of the user | [optional] -**FulfillmentInfo** | [**FulfillmentInfo**](FulfillmentInfo.md) | [Required] Relevant fulfillment Information | [optional] -**ChannelOrderId** | **string** | [Required] Order ID in the external System | [optional] -**ChannelPublicOrderId** | **string** | [Optional] Public Order ID in the external System | [optional] -**OrderDateUtc** | **DateTime?** | Date the order was placed at in UTC [Required] | [optional] -**PaymentInfo** | [**PaymentInfo**](PaymentInfo.md) | Payment Information [Required] | [optional] -**Contact** | [**Contact**](Contact.md) | Contact Information [Required] | [optional] -**TipAmount** | **double?** | Tip 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/OrderIngestSubmitOrderResponse.md b/docs/OrderIngestSubmitOrderResponse.md deleted file mode 100644 index 7dc19215..00000000 --- a/docs/OrderIngestSubmitOrderResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# Flipdish.Model.OrderIngestSubmitOrderResponse -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**OrderId** | **int?** | | [optional] -**ReceiptUrl** | **string** | | [optional] -**CurrencyCode** | **string** | | [optional] -**TotalPrice** | [**Price**](Price.md) | | [optional] -**DeliveryFee** | [**Price**](Price.md) | | [optional] -**EstimatedDeliveryTime** | **DateTime?** | | [optional] -**ChannelOrderId** | **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/OrderItem.md b/docs/OrderItem.md index a0d64e1e..13b44593 100644 --- a/docs/OrderItem.md +++ b/docs/OrderItem.md @@ -11,10 +11,12 @@ Name | Type | Description | Notes **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 index 036a837c..11023137 100644 --- a/docs/OrderItemOption.md +++ b/docs/OrderItemOption.md @@ -9,8 +9,10 @@ Name | Type | Description | Notes **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/OrderRatingUpdatedEvent.md b/docs/OrderRatingUpdatedEvent.md index a390ac64..5a83acfe 100644 --- a/docs/OrderRatingUpdatedEvent.md +++ b/docs/OrderRatingUpdatedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index 5cae7fd3..6b837907 100644 --- a/docs/OrderRefundedEvent.md +++ b/docs/OrderRefundedEvent.md @@ -6,12 +6,16 @@ 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 index 04b3afa2..7026026f 100644 --- a/docs/OrderRejectedEvent.md +++ b/docs/OrderRejectedEvent.md @@ -7,12 +7,16 @@ Name | Type | Description | Notes **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 index 68966dcd..e0151876 100644 --- a/docs/OrderSummary.md +++ b/docs/OrderSummary.md @@ -29,6 +29,8 @@ Name | Type | Description | Notes **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 index 6a3c7972..5b210912 100644 --- a/docs/OrderTipUpdatedEvent.md +++ b/docs/OrderTipUpdatedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index 6df937ad..8d232c91 100644 --- a/docs/OrderVoucherSummary.md +++ b/docs/OrderVoucherSummary.md @@ -3,6 +3,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**VoucherId** | **int?** | Voucher ID | [optional] **Name** | **string** | Voucher name | [optional] **Description** | **string** | Voucher description | [optional] **Code** | **string** | Voucher code | [optional] diff --git a/docs/OrdersApi.md b/docs/OrdersApi.md index dc38d22a..fce018bb 100644 --- a/docs/OrdersApi.md +++ b/docs/OrdersApi.md @@ -4,28 +4,28 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AcceptOrder**](OrdersApi.md#acceptorder) | **POST** /api/v1.0/orders/{id}/accept | Accept order -[**DispatchOrder**](OrdersApi.md#dispatchorder) | **POST** /api/v1.0/orders/{id}/dispatch | Dispatch order -[**GetDeliveryInformation**](OrdersApi.md#getdeliveryinformation) | **GET** /api/v1.0/orders/{orderId}/deliveryinfo | Get order delivery information -[**GetFulfillmentState**](OrdersApi.md#getfulfillmentstate) | **GET** /api/v1.0/orders/{orderId}/fulfillment/state | Get order fulfillment state -[**GetFulfillmentStatusWithDetailsAndActions**](OrdersApi.md#getfulfillmentstatuswithdetailsandactions) | **GET** /api/v1.0/orders/{orderId}/fulfillment/state/details | Get order fulfillment state with actionable details like default next state -[**GetOrderById**](OrdersApi.md#getorderbyid) | **GET** /api/v1.0/orders/{id} | Get order by ID -[**GetOrders**](OrdersApi.md#getorders) | **GET** /api/v1.0/orders | Get orders by filter -[**GetOrdersSummary**](OrdersApi.md#getorderssummary) | **GET** /api/v1.0/{appId}/orders/summaries | [PRIVATE API] Get summary of orders by filter -[**RefundOrder**](OrdersApi.md#refundorder) | **POST** /api/v1.0/orders/{id}/refund | Refund order -[**RejectOrder**](OrdersApi.md#rejectorder) | **POST** /api/v1.0/orders/{id}/reject | Reject order -[**SearchFulfillmentStatuses**](OrdersApi.md#searchfulfillmentstatuses) | **GET** /api/v1.0/{appId}/orders/fulfillmentstatuses | Get fulfillment status for a list of orders -[**UpdateDeliveryInformation**](OrdersApi.md#updatedeliveryinformation) | **POST** /api/v1.0/orders/{orderId}/deliveryinfo | Add/update delivery-related information to an order -[**UpdateFulfillmentState**](OrdersApi.md#updatefulfillmentstate) | **POST** /api/v1.0/orders/{orderId}/fulfillment/state | Update fulfillment status information to an order +[**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) -Accept order -To accept an order, you create an `accept` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. ### Example ```csharp @@ -45,12 +45,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrdersApi(); - var id = 56; // int? | Order identifier - var acceptObject = new Accept(); // Accept | Order accept parameters (eg: EstimatedMinutesForDelivery) + var id = 56; // int? | + var acceptObject = new Accept(); // Accept | try { - // Accept order apiInstance.AcceptOrder(id, acceptObject); } catch (Exception e) @@ -66,8 +65,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int?**| Order identifier | - **acceptObject** | [**Accept**](Accept.md)| Order accept parameters (eg: EstimatedMinutesForDelivery) | + **id** | **int?**| | + **acceptObject** | [**Accept**](Accept.md)| | ### Return type @@ -88,9 +87,7 @@ void (empty response body) # **DispatchOrder** > void DispatchOrder (int? id) -Dispatch order -To dispatch an order send a POST request with `Id` path parameter which identifies the order. ### Example ```csharp @@ -110,11 +107,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrdersApi(); - var id = 56; // int? | Order identifier + var id = 56; // int? | try { - // Dispatch order apiInstance.DispatchOrder(id); } catch (Exception e) @@ -130,7 +126,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int?**| Order identifier | + **id** | **int?**| | ### Return type @@ -151,9 +147,7 @@ void (empty response body) # **GetDeliveryInformation** > RestApiResultOrderDeliveryInformation GetDeliveryInformation (int? orderId) -Get order delivery information -Returns an orders delivery information. This would be used to display the latest known delivery information on a screen. ### Example ```csharp @@ -173,11 +167,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrdersApi(); - var orderId = 56; // int? | Flipdish Order Id + var orderId = 56; // int? | try { - // Get order delivery information RestApiResultOrderDeliveryInformation result = apiInstance.GetDeliveryInformation(orderId); Debug.WriteLine(result); } @@ -194,7 +187,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **int?**| Flipdish Order Id | + **orderId** | **int?**| | ### Return type @@ -215,9 +208,7 @@ Name | Type | Description | Notes # **GetFulfillmentState** > RestApiResultOrderFulfillmentStatus GetFulfillmentState (int? orderId) -Get order fulfillment state -[BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment state. ### Example ```csharp @@ -237,11 +228,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrdersApi(); - var orderId = 56; // int? | Flipdish Order Id + var orderId = 56; // int? | try { - // Get order fulfillment state RestApiResultOrderFulfillmentStatus result = apiInstance.GetFulfillmentState(orderId); Debug.WriteLine(result); } @@ -258,7 +248,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **int?**| Flipdish Order Id | + **orderId** | **int?**| | ### Return type @@ -279,9 +269,7 @@ Name | Type | Description | Notes # **GetFulfillmentStatusWithDetailsAndActions** > RestApiResultOrderFulfillmentStatusWithConfigurationActions GetFulfillmentStatusWithDetailsAndActions (int? orderId) -Get order fulfillment state with actionable details like default next state -[BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment status and details about possible states. ### Example ```csharp @@ -301,11 +289,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrdersApi(); - var orderId = 56; // int? | Flipdish Order Id + var orderId = 56; // int? | try { - // Get order fulfillment state with actionable details like default next state RestApiResultOrderFulfillmentStatusWithConfigurationActions result = apiInstance.GetFulfillmentStatusWithDetailsAndActions(orderId); Debug.WriteLine(result); } @@ -322,7 +309,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **int?**| Flipdish Order Id | + **orderId** | **int?**| | ### Return type @@ -343,7 +330,7 @@ Name | Type | Description | Notes # **GetOrderById** > RestApiResultOrder GetOrderById (int? id) -Get order by ID + ### Example ```csharp @@ -363,11 +350,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrdersApi(); - var id = 56; // int? | Order identifier + var id = 56; // int? | try { - // Get order by ID RestApiResultOrder result = apiInstance.GetOrderById(id); Debug.WriteLine(result); } @@ -384,7 +370,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int?**| Order identifier | + **id** | **int?**| | ### Return type @@ -405,7 +391,7 @@ Name | Type | Description | Notes # **GetOrders** > RestApiPaginationResultOrder GetOrders (List physicalRestaurantId = null, List state = null, DateTime? from = null, DateTime? to = null, int? page = null, int? limit = null) -Get orders by filter + ### Example ```csharp @@ -425,16 +411,15 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrdersApi(); - var physicalRestaurantId = new List(); // List | Physical restaurant identifiers (optional) - var state = state_example; // List | Order states (optional) - var from = 2013-10-20T19:20:30+01:00; // DateTime? | Order has been placed after this parameter value (optional) - var to = 2013-10-20T19:20:30+01:00; // DateTime? | Order has been placed before this parameter value (optional) - var page = 56; // int? | Requested page number (optional) - var limit = 56; // int? | Requested page limit (optional) + 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 { - // Get orders by filter RestApiPaginationResultOrder result = apiInstance.GetOrders(physicalRestaurantId, state, from, to, page, limit); Debug.WriteLine(result); } @@ -451,12 +436,12 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **physicalRestaurantId** | [**List<int?>**](int?.md)| Physical restaurant identifiers | [optional] - **state** | **List<string>**| Order states | [optional] - **from** | **DateTime?**| Order has been placed after this parameter value | [optional] - **to** | **DateTime?**| Order has been placed before this parameter value | [optional] - **page** | **int?**| Requested page number | [optional] - **limit** | **int?**| Requested page limit | [optional] + **physicalRestaurantId** | [**List<int?>**](int?.md)| | [optional] + **state** | **List<string>**| | [optional] + **from** | **DateTime?**| | [optional] + **to** | **DateTime?**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] ### Return type @@ -475,9 +460,9 @@ Name | Type | Description | Notes # **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) +> 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) + -[PRIVATE API] Get summary of orders by filter ### Example ```csharp @@ -497,19 +482,22 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrdersApi(); - var appId = appId_example; // string | App Name Id - var searchQuery = searchQuery_example; // string | Query string (optional) - var physicalRestaurantId = new List(); // List | Physical restaurant identifiers (optional) - var state = state_example; // List | Order states (optional) - var page = 56; // int? | Requested page number (optional) - var limit = 56; // int? | Requested page limit (optional) + 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 { - // [PRIVATE API] Get summary of orders by filter - RestApiPaginationResultOrderSummary result = apiInstance.GetOrdersSummary(appId, searchQuery, physicalRestaurantId, state, page, limit, orderByRequestedForTime, channels); + RestApiPaginationResultOrderSummary result = apiInstance.GetOrdersSummary(appId, searchQuery, physicalRestaurantId, state, page, limit, orderByRequestedForTime, channels, orderIds, from, to, logSql); Debug.WriteLine(result); } catch (Exception e) @@ -525,14 +513,101 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **searchQuery** | **string**| Query string | [optional] - **physicalRestaurantId** | [**List<int?>**](int?.md)| Physical restaurant identifiers | [optional] - **state** | **List<string>**| Order states | [optional] - **page** | **int?**| Requested page number | [optional] - **limit** | **int?**| Requested page limit | [optional] + **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 @@ -549,13 +624,74 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) -Refund order -To refund an order, you create a `refund` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. ### Example ```csharp @@ -575,12 +711,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrdersApi(); - var id = 56; // int? | Order identifier + var id = 56; // int? | var refundObject = new Refund(); // Refund | try { - // Refund order apiInstance.RefundOrder(id, refundObject); } catch (Exception e) @@ -596,7 +731,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int?**| Order identifier | + **id** | **int?**| | **refundObject** | [**Refund**](Refund.md)| | ### Return type @@ -618,9 +753,7 @@ void (empty response body) # **RejectOrder** > void RejectOrder (int? id, Reject rejectObject) -Reject order -To reject an order, you create a `reject` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. ### Example ```csharp @@ -640,12 +773,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrdersApi(); - var id = 56; // int? | Order identifier + var id = 56; // int? | var rejectObject = new Reject(); // Reject | try { - // Reject order apiInstance.RejectOrder(id, rejectObject); } catch (Exception e) @@ -661,7 +793,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int?**| Order identifier | + **id** | **int?**| | **rejectObject** | [**Reject**](Reject.md)| | ### Return type @@ -683,9 +815,7 @@ void (empty response body) # **SearchFulfillmentStatuses** > RestApiArrayResultOrderFulfillmentStatus SearchFulfillmentStatuses (string appId, string orderIds) -Get fulfillment status for a list of orders -[BETA - this endpoint is under development, do not use it in your production system] Returns fulfillment status for list of orders. ### Example ```csharp @@ -705,12 +835,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrdersApi(); - var appId = appId_example; // string | App Id - var orderIds = orderIds_example; // string | Flipdish Order Id list, comma separated + var appId = appId_example; // string | + var orderIds = orderIds_example; // string | try { - // Get fulfillment status for a list of orders RestApiArrayResultOrderFulfillmentStatus result = apiInstance.SearchFulfillmentStatuses(appId, orderIds); Debug.WriteLine(result); } @@ -727,8 +856,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Id | - **orderIds** | **string**| Flipdish Order Id list, comma separated | + **appId** | **string**| | + **orderIds** | **string**| | ### Return type @@ -749,9 +878,7 @@ Name | Type | Description | Notes # **UpdateDeliveryInformation** > void UpdateDeliveryInformation (int? orderId, OrderDeliveryInformationBase deliveryInformation) -Add/update delivery-related information to an order -Returns an order's delivery information. This would be used to display the latest known delivery information on a screen. ### Example ```csharp @@ -771,12 +898,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrdersApi(); - var orderId = 56; // int? | Flipdish Order Id - var deliveryInformation = new OrderDeliveryInformationBase(); // OrderDeliveryInformationBase | Delivery Information + var orderId = 56; // int? | + var deliveryInformation = new OrderDeliveryInformationBase(); // OrderDeliveryInformationBase | try { - // Add/update delivery-related information to an order apiInstance.UpdateDeliveryInformation(orderId, deliveryInformation); } catch (Exception e) @@ -792,8 +918,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **int?**| Flipdish Order Id | - **deliveryInformation** | [**OrderDeliveryInformationBase**](OrderDeliveryInformationBase.md)| Delivery Information | + **orderId** | **int?**| | + **deliveryInformation** | [**OrderDeliveryInformationBase**](OrderDeliveryInformationBase.md)| | ### Return type @@ -814,9 +940,7 @@ void (empty response body) # **UpdateFulfillmentState** > void UpdateFulfillmentState (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest) -Update fulfillment status information to an order -[BETA - this endpoint is under development, do not use it in your production system] Updates an order's fulfillment states. ### Example ```csharp @@ -836,12 +960,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new OrdersApi(); - var orderId = 56; // int? | Flipdish Order Id - var fulfillmentStatusRequest = new OrderFulfillmentStatusUpdate(); // OrderFulfillmentStatusUpdate | Fulfillment Status + var orderId = 56; // int? | + var fulfillmentStatusRequest = new OrderFulfillmentStatusUpdate(); // OrderFulfillmentStatusUpdate | try { - // Update fulfillment status information to an order apiInstance.UpdateFulfillmentState(orderId, fulfillmentStatusRequest); } catch (Exception e) @@ -857,8 +980,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **int?**| Flipdish Order Id | - **fulfillmentStatusRequest** | [**OrderFulfillmentStatusUpdate**](OrderFulfillmentStatusUpdate.md)| Fulfillment Status | + **orderId** | **int?**| | + **fulfillmentStatusRequest** | [**OrderFulfillmentStatusUpdate**](OrderFulfillmentStatusUpdate.md)| | ### Return type diff --git a/docs/PasswordResetModel.md b/docs/PasswordResetModel.md index 065be976..6097e780 100644 --- a/docs/PasswordResetModel.md +++ b/docs/PasswordResetModel.md @@ -3,6 +3,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**TokenId** | **string** | Token Id | [optional] **Email** | **string** | Email address | [optional] **Password** | **string** | Password | **PasswordConfirmation** | **string** | Password confirmation | 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/PaymentIntentsApi.md b/docs/PaymentIntentsApi.md index 70c8c776..4b62b305 100644 --- a/docs/PaymentIntentsApi.md +++ b/docs/PaymentIntentsApi.md @@ -4,14 +4,14 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetPaymentIntent**](PaymentIntentsApi.md#getpaymentintent) | **GET** /api/v1.0/payment_intents/{paymentIntentId} | Returns stripe payment intent for a given id +[**GetPaymentIntent**](PaymentIntentsApi.md#getpaymentintent) | **GET** /api/v1.0/payment_intents/{paymentIntentId} | # **GetPaymentIntent** > RestApiResultPaymentIntent GetPaymentIntent (string paymentIntentId) -Returns stripe payment intent for a given id + ### Example ```csharp @@ -31,11 +31,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PaymentIntentsApi(); - var paymentIntentId = paymentIntentId_example; // string | Stripe payment intent identifier + var paymentIntentId = paymentIntentId_example; // string | try { - // Returns stripe payment intent for a given id RestApiResultPaymentIntent result = apiInstance.GetPaymentIntent(paymentIntentId); Debug.WriteLine(result); } @@ -52,7 +51,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **paymentIntentId** | **string**| Stripe payment intent identifier | + **paymentIntentId** | **string**| | ### Return type diff --git a/docs/PaymentsApi.md b/docs/PaymentsApi.md index 061f624a..18391217 100644 --- a/docs/PaymentsApi.md +++ b/docs/PaymentsApi.md @@ -4,14 +4,14 @@ 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 | Returns payment refund information related to the order with the order id +[**GetOrderPaymentInformation**](PaymentsApi.md#getorderpaymentinformation) | **GET** /api/v1.0/payments/payment/{orderId}/refundable | # **GetOrderPaymentInformation** > RestApiResultOrderPaymentInformation GetOrderPaymentInformation (int? orderId) -Returns payment refund information related to the order with the order id + ### Example ```csharp @@ -31,11 +31,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PaymentsApi(); - var orderId = 56; // int? | Order identifier + var orderId = 56; // int? | try { - // Returns payment refund information related to the order with the order id RestApiResultOrderPaymentInformation result = apiInstance.GetOrderPaymentInformation(orderId); Debug.WriteLine(result); } @@ -52,7 +51,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **int?**| Order identifier | + **orderId** | **int?**| | ### Return type diff --git a/docs/Payout.md b/docs/Payout.md index dd315344..2592d475 100644 --- a/docs/Payout.md +++ b/docs/Payout.md @@ -22,7 +22,9 @@ Name | Type | Description | Notes **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] @@ -32,11 +34,20 @@ Name | Type | Description | Notes **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/PayoutOrder.md b/docs/PayoutOrder.md index 5c038cf6..2c4fc18f 100644 --- a/docs/PayoutOrder.md +++ b/docs/PayoutOrder.md @@ -14,9 +14,10 @@ Name | Type | Description | Notes **Tips** | **double?** | Order tips amount | [optional] **Voucher** | **double?** | Order voucher amount | [optional] **FlatFeeExcludingVat** | **double?** | Order flat fee amount excluding VAT | [optional] -**FlatFeeExcludingVAT** | **double?** | | [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?** | | [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] 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/ChannelStoreMapping.md b/docs/PayoutReport3Store.md similarity index 78% rename from docs/ChannelStoreMapping.md rename to docs/PayoutReport3Store.md index a0551056..2611edb0 100644 --- a/docs/ChannelStoreMapping.md +++ b/docs/PayoutReport3Store.md @@ -1,10 +1,10 @@ -# Flipdish.Model.ChannelStoreMapping +# Flipdish.Model.PayoutReport3Store ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StoreId** | **int?** | | [optional] -**ChannelStoreId** | **string** | | [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/PayoutStore.md b/docs/PayoutStore.md index c8f3eeda..392900a1 100644 --- a/docs/PayoutStore.md +++ b/docs/PayoutStore.md @@ -13,6 +13,8 @@ Name | Type | Description | Notes **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/PayoutsApi.md b/docs/PayoutsApi.md index ea427970..adee5bc9 100644 --- a/docs/PayoutsApi.md +++ b/docs/PayoutsApi.md @@ -4,20 +4,20 @@ 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} | Get Payout details broken down by Store -[**GetPayoutChargebacks**](PayoutsApi.md#getpayoutchargebacks) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks | Get list of payout's chargebacks -[**GetPayoutOrders**](PayoutsApi.md#getpayoutorders) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders | Get list of payout's orders -[**GetPayoutOtherCharges**](PayoutsApi.md#getpayoutothercharges) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges | Get list of payout's other charges -[**GetPayoutRefunds**](PayoutsApi.md#getpayoutrefunds) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds | Get list of payout's refunds -[**GetPayoutSummaries**](PayoutsApi.md#getpayoutsummaries) | **GET** /api/v1.0/{appId}/payouts/summaries | Get list of payout summaries -[**GetPayouts**](PayoutsApi.md#getpayouts) | **GET** /api/v1.0/{appId}/payouts | Get list of payouts +[**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) -Get Payout details broken down by Store + ### Example ```csharp @@ -43,7 +43,6 @@ namespace Example try { - // Get Payout details broken down by Store PayoutDetail result = apiInstance.GetPayout(appId, bankAccountId, payoutId); Debug.WriteLine(result); } @@ -83,7 +82,7 @@ Name | Type | Description | Notes # **GetPayoutChargebacks** > RestApiPaginationResultPayoutChargeback GetPayoutChargebacks (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) -Get list of payout's chargebacks + ### Example ```csharp @@ -112,7 +111,6 @@ namespace Example try { - // Get list of payout's chargebacks RestApiPaginationResultPayoutChargeback result = apiInstance.GetPayoutChargebacks(appId, bankAccountId, payoutId, page, limit, storeIds); Debug.WriteLine(result); } @@ -155,7 +153,7 @@ Name | Type | Description | Notes # **GetPayoutOrders** > RestApiPaginationResultPayoutOrder GetPayoutOrders (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) -Get list of payout's orders + ### Example ```csharp @@ -184,7 +182,6 @@ namespace Example try { - // Get list of payout's orders RestApiPaginationResultPayoutOrder result = apiInstance.GetPayoutOrders(appId, bankAccountId, payoutId, page, limit, storeIds); Debug.WriteLine(result); } @@ -227,7 +224,7 @@ Name | Type | Description | Notes # **GetPayoutOtherCharges** > RestApiPaginationResultPayoutOtherCharge GetPayoutOtherCharges (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) -Get list of payout's other charges + ### Example ```csharp @@ -256,7 +253,6 @@ namespace Example try { - // Get list of payout's other charges RestApiPaginationResultPayoutOtherCharge result = apiInstance.GetPayoutOtherCharges(appId, bankAccountId, payoutId, page, limit, storeIds); Debug.WriteLine(result); } @@ -299,7 +295,7 @@ Name | Type | Description | Notes # **GetPayoutRefunds** > RestApiPaginationResultPayoutRefund GetPayoutRefunds (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null) -Get list of payout's refunds + ### Example ```csharp @@ -328,7 +324,6 @@ namespace Example try { - // Get list of payout's refunds RestApiPaginationResultPayoutRefund result = apiInstance.GetPayoutRefunds(appId, bankAccountId, payoutId, page, limit, storeIds); Debug.WriteLine(result); } @@ -371,9 +366,7 @@ Name | Type | Description | Notes # **GetPayoutSummaries** > RestApiArrayResultPayoutSummary GetPayoutSummaries (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) -Get list of payout summaries -BETA - this endpoint is under development, do not use it in your production system ### Example ```csharp @@ -401,7 +394,6 @@ namespace Example try { - // Get list of payout summaries RestApiArrayResultPayoutSummary result = apiInstance.GetPayoutSummaries(appId, startDate, endDate, payoutRequestIdsBankAccountIds, payoutRequestIdsStates); Debug.WriteLine(result); } @@ -443,9 +435,7 @@ Name | Type | Description | Notes # **GetPayouts** > RestApiPaginationResultPayout GetPayouts (string appId, DateTime? startDate = null, DateTime? endDate = null, int? page = null, int? limit = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) -Get list of payouts -BETA - this endpoint is under development, do not use it in your production system ### Example ```csharp @@ -475,7 +465,6 @@ namespace Example try { - // Get list of payouts RestApiPaginationResultPayout result = apiInstance.GetPayouts(appId, startDate, endDate, page, limit, payoutRequestIdsBankAccountIds, payoutRequestIdsStates); Debug.WriteLine(result); } diff --git a/docs/PayoutsExportApi.md b/docs/PayoutsExportApi.md deleted file mode 100644 index f0b83460..00000000 --- a/docs/PayoutsExportApi.md +++ /dev/null @@ -1,424 +0,0 @@ -# Flipdish.Api.PayoutsExportApi - -All URIs are relative to *https://api.flipdish.co* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**ExportPayoutChargebacks**](PayoutsExportApi.md#exportpayoutchargebacks) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks/export | Export a list of payout's chargebacks as CSV -[**ExportPayoutOrders**](PayoutsExportApi.md#exportpayoutorders) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders/export | Export a list of payout's orders as CSV -[**ExportPayoutOtherCharges**](PayoutsExportApi.md#exportpayoutothercharges) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges/export | Export a list of payout's other charges as CSV -[**ExportPayoutRefunds**](PayoutsExportApi.md#exportpayoutrefunds) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds/export | Export a list of payout's refunds as CSV -[**ExportPayoutStores**](PayoutsExportApi.md#exportpayoutstores) | **GET** /api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/export | Export payout's details as CSV -[**ExportPayouts**](PayoutsExportApi.md#exportpayouts) | **GET** /api/v1.0/{appId}/payouts/export | Export payouts as CSV - - - -# **ExportPayoutChargebacks** -> string ExportPayoutChargebacks (string appId, int? bankAccountId, int? payoutId, List storeIds = null) - -Export a list of payout's chargebacks as CSV - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class ExportPayoutChargebacksExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new PayoutsExportApi(); - var appId = appId_example; // string | - var bankAccountId = 56; // int? | - var payoutId = 56; // int? | - var storeIds = new List(); // List | (optional) - - try - { - // Export a list of payout's chargebacks as CSV - string result = apiInstance.ExportPayoutChargebacks(appId, bankAccountId, payoutId, storeIds); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling PayoutsExportApi.ExportPayoutChargebacks: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **appId** | **string**| | - **bankAccountId** | **int?**| | - **payoutId** | **int?**| | - **storeIds** | [**List<int?>**](int?.md)| | [optional] - -### 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) - - -# **ExportPayoutOrders** -> string ExportPayoutOrders (string appId, int? bankAccountId, int? payoutId, List storeIds = null) - -Export a list of payout's orders as CSV - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class ExportPayoutOrdersExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new PayoutsExportApi(); - var appId = appId_example; // string | - var bankAccountId = 56; // int? | - var payoutId = 56; // int? | - var storeIds = new List(); // List | (optional) - - try - { - // Export a list of payout's orders as CSV - string result = apiInstance.ExportPayoutOrders(appId, bankAccountId, payoutId, storeIds); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling PayoutsExportApi.ExportPayoutOrders: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **appId** | **string**| | - **bankAccountId** | **int?**| | - **payoutId** | **int?**| | - **storeIds** | [**List<int?>**](int?.md)| | [optional] - -### 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) - - -# **ExportPayoutOtherCharges** -> string ExportPayoutOtherCharges (string appId, int? bankAccountId, int? payoutId, List storeIds = null) - -Export a list of payout's other charges as CSV - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class ExportPayoutOtherChargesExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new PayoutsExportApi(); - var appId = appId_example; // string | - var bankAccountId = 56; // int? | - var payoutId = 56; // int? | - var storeIds = new List(); // List | (optional) - - try - { - // Export a list of payout's other charges as CSV - string result = apiInstance.ExportPayoutOtherCharges(appId, bankAccountId, payoutId, storeIds); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling PayoutsExportApi.ExportPayoutOtherCharges: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **appId** | **string**| | - **bankAccountId** | **int?**| | - **payoutId** | **int?**| | - **storeIds** | [**List<int?>**](int?.md)| | [optional] - -### 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) - - -# **ExportPayoutRefunds** -> string ExportPayoutRefunds (string appId, int? bankAccountId, int? payoutId, List storeIds = null) - -Export a list of payout's refunds as CSV - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class ExportPayoutRefundsExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new PayoutsExportApi(); - var appId = appId_example; // string | - var bankAccountId = 56; // int? | - var payoutId = 56; // int? | - var storeIds = new List(); // List | (optional) - - try - { - // Export a list of payout's refunds as CSV - string result = apiInstance.ExportPayoutRefunds(appId, bankAccountId, payoutId, storeIds); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling PayoutsExportApi.ExportPayoutRefunds: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **appId** | **string**| | - **bankAccountId** | **int?**| | - **payoutId** | **int?**| | - **storeIds** | [**List<int?>**](int?.md)| | [optional] - -### 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) - - -# **ExportPayoutStores** -> string ExportPayoutStores (string appId, int? bankAccountId, int? payoutId, List storeIds = null) - -Export payout's details as CSV - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class ExportPayoutStoresExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new PayoutsExportApi(); - var appId = appId_example; // string | - var bankAccountId = 56; // int? | - var payoutId = 56; // int? | - var storeIds = new List(); // List | (optional) - - try - { - // Export payout's details as CSV - string result = apiInstance.ExportPayoutStores(appId, bankAccountId, payoutId, storeIds); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling PayoutsExportApi.ExportPayoutStores: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **appId** | **string**| | - **bankAccountId** | **int?**| | - **payoutId** | **int?**| | - **storeIds** | [**List<int?>**](int?.md)| | [optional] - -### 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) - - -# **ExportPayouts** -> string ExportPayouts (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) - -Export payouts as CSV - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class ExportPayoutsExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new PayoutsExportApi(); - 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 - { - // Export payouts as CSV - string result = apiInstance.ExportPayouts(appId, startDate, endDate, payoutRequestIdsBankAccountIds, payoutRequestIdsStates); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling PayoutsExportApi.ExportPayouts: " + 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 - -**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) - 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/PercentDiscountDetails.md b/docs/PercentDiscountDetails.md index c5803160..464bc63e 100644 --- a/docs/PercentDiscountDetails.md +++ b/docs/PercentDiscountDetails.md @@ -4,6 +4,7 @@ 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 index 263c53e0..7368370e 100644 --- a/docs/PhoneCall.md +++ b/docs/PhoneCall.md @@ -4,6 +4,7 @@ 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] diff --git a/docs/PhoneCallEndedEvent.md b/docs/PhoneCallEndedEvent.md index 73c67938..2f9952ac 100644 --- a/docs/PhoneCallEndedEvent.md +++ b/docs/PhoneCallEndedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index 53da851f..77fbd2de 100644 --- a/docs/PhoneCallStartedEvent.md +++ b/docs/PhoneCallStartedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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/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/Price.md b/docs/Price.md deleted file mode 100644 index f9394124..00000000 --- a/docs/Price.md +++ /dev/null @@ -1,10 +0,0 @@ -# Flipdish.Model.Price -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | **double?** | Amount (including tax) | [optional] -**Tax** | **double?** | Tax (only required in tax exclusive prices) | [optional] - -[[Back to Model list]](../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 index 7fe70380..7839d1e2 100644 --- a/docs/PrinterAssignedToStoreEvent.md +++ b/docs/PrinterAssignedToStoreEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index 721f0c6d..0f056106 100644 --- a/docs/PrinterTurnedOffEvent.md +++ b/docs/PrinterTurnedOffEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index 8e9dfd56..dcf7143a 100644 --- a/docs/PrinterTurnedOnEvent.md +++ b/docs/PrinterTurnedOnEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index 7bff0e0f..067bdf56 100644 --- a/docs/PrinterUnassignedFromStoreEvent.md +++ b/docs/PrinterUnassignedFromStoreEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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/ProcessingFeeConfigsApi.md b/docs/ProcessingFeeConfigsApi.md index 93392afc..457406a1 100644 --- a/docs/ProcessingFeeConfigsApi.md +++ b/docs/ProcessingFeeConfigsApi.md @@ -4,14 +4,14 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetProcessingFeeConfigsByStoreIds**](ProcessingFeeConfigsApi.md#getprocessingfeeconfigsbystoreids) | **GET** /api/v1.0/processingfeeconfigs | Get processing fee configs by store identifiers +[**GetProcessingFeeConfigsByStoreIds**](ProcessingFeeConfigsApi.md#getprocessingfeeconfigsbystoreids) | **GET** /api/v1.0/processingfeeconfigs | # **GetProcessingFeeConfigsByStoreIds** > RestApiArrayResultProcessingFeeConfig GetProcessingFeeConfigsByStoreIds (List storeIds) -Get processing fee configs by store identifiers + ### Example ```csharp @@ -31,11 +31,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new ProcessingFeeConfigsApi(); - var storeIds = new List(); // List | Store identifiers + var storeIds = new List(); // List | try { - // Get processing fee configs by store identifiers RestApiArrayResultProcessingFeeConfig result = apiInstance.GetProcessingFeeConfigsByStoreIds(storeIds); Debug.WriteLine(result); } @@ -52,7 +51,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeIds** | [**List<int?>**](int?.md)| Store identifiers | + **storeIds** | [**List<int?>**](int?.md)| | ### Return type diff --git a/docs/ProductReference.md b/docs/ProductReference.md index 96ab355e..f770e8cc 100644 --- a/docs/ProductReference.md +++ b/docs/ProductReference.md @@ -3,8 +3,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Item** | [**Product**](Product.md) | Details of the referenced {Flipdish.PublicModels.V1.Catalog.Groups.ProductReference.Product} | [optional] -**Product** | [**Product**](Product.md) | Details of the referenced {Flipdish.PublicModels.V1.Catalog.Groups.ProductReference.Product} | [optional] +**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] diff --git a/docs/PaymentInfo.md b/docs/PromotionAward.md similarity index 58% rename from docs/PaymentInfo.md rename to docs/PromotionAward.md index 6474e6e5..80eec1fb 100644 --- a/docs/PaymentInfo.md +++ b/docs/PromotionAward.md @@ -1,10 +1,10 @@ -# Flipdish.Model.PaymentInfo +# Flipdish.Model.PromotionAward ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Paid** | **bool?** | Defines if the order was paid | [optional] -**PaymentType** | **string** | Payment Description | [optional] +**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/PushNotificationDeletedEvent.md b/docs/PushNotificationDeletedEvent.md index 6879b1b2..130b6873 100644 --- a/docs/PushNotificationDeletedEvent.md +++ b/docs/PushNotificationDeletedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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/PushNotificationScheduledEvent.md b/docs/PushNotificationScheduledEvent.md index 293672c8..1b931ed7 100644 --- a/docs/PushNotificationScheduledEvent.md +++ b/docs/PushNotificationScheduledEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index 08beb147..f1e63124 100644 --- a/docs/PushNotificationSentEvent.md +++ b/docs/PushNotificationSentEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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 index 5a86d61b..cbc13ebd 100644 --- a/docs/PushNotificationsApi.md +++ b/docs/PushNotificationsApi.md @@ -4,17 +4,17 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**DeletePushNotification**](PushNotificationsApi.md#deletepushnotification) | **DELETE** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | [PRIVATE] Push notification to cutomers -[**GetPushNotifications**](PushNotificationsApi.md#getpushnotifications) | **GET** /api/v1.0/{appId}/pushnotifications | [PRIVATE] Push notification to cutomers -[**SchedulePushNotification**](PushNotificationsApi.md#schedulepushnotification) | **POST** /api/v1.0/{appId}/pushnotifications | [PRIVATE] Push notification to cutomers -[**UpdatePushNotification**](PushNotificationsApi.md#updatepushnotification) | **POST** /api/v1.0/{appId}/pushnotifications/{scheduledPushNotificationId} | [PRIVATE] Update the push notification +[**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) -[PRIVATE] Push notification to cutomers + ### Example ```csharp @@ -35,11 +35,10 @@ namespace Example var apiInstance = new PushNotificationsApi(); var appId = appId_example; // string | - var scheduledPushNotificationId = 56; // int? | ID of Scheduled push notifiaction to delete + var scheduledPushNotificationId = 56; // int? | try { - // [PRIVATE] Push notification to cutomers apiInstance.DeletePushNotification(appId, scheduledPushNotificationId); } catch (Exception e) @@ -56,7 +55,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **appId** | **string**| | - **scheduledPushNotificationId** | **int?**| ID of Scheduled push notifiaction to delete | + **scheduledPushNotificationId** | **int?**| | ### Return type @@ -77,7 +76,7 @@ void (empty response body) # **GetPushNotifications** > RestApiPaginationResultPushNotificationResponse GetPushNotifications (string appId, int? page = null, int? limit = null) -[PRIVATE] Push notification to cutomers + ### Example ```csharp @@ -103,7 +102,6 @@ namespace Example try { - // [PRIVATE] Push notification to cutomers RestApiPaginationResultPushNotificationResponse result = apiInstance.GetPushNotifications(appId, page, limit); Debug.WriteLine(result); } @@ -143,7 +141,7 @@ Name | Type | Description | Notes # **SchedulePushNotification** > RestApiResultPushNotificationResponse SchedulePushNotification (string appId, PushNotificationRequest notification) -[PRIVATE] Push notification to cutomers + ### Example ```csharp @@ -163,12 +161,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PushNotificationsApi(); - var appId = appId_example; // string | Application Id - var notification = new PushNotificationRequest(); // PushNotificationRequest | Notification to send + var appId = appId_example; // string | + var notification = new PushNotificationRequest(); // PushNotificationRequest | try { - // [PRIVATE] Push notification to cutomers RestApiResultPushNotificationResponse result = apiInstance.SchedulePushNotification(appId, notification); Debug.WriteLine(result); } @@ -185,8 +182,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application Id | - **notification** | [**PushNotificationRequest**](PushNotificationRequest.md)| Notification to send | + **appId** | **string**| | + **notification** | [**PushNotificationRequest**](PushNotificationRequest.md)| | ### Return type @@ -207,7 +204,7 @@ Name | Type | Description | Notes # **UpdatePushNotification** > RestApiResultPushNotificationResponse UpdatePushNotification (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification) -[PRIVATE] Update the push notification + ### Example ```csharp @@ -227,13 +224,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PushNotificationsApi(); - var appId = appId_example; // string | Application Id - var scheduledPushNotificationId = 56; // int? | Notification Id - var notification = new PushNotificationRequest(); // PushNotificationRequest | Notification to send + var appId = appId_example; // string | + var scheduledPushNotificationId = 56; // int? | + var notification = new PushNotificationRequest(); // PushNotificationRequest | try { - // [PRIVATE] Update the push notification RestApiResultPushNotificationResponse result = apiInstance.UpdatePushNotification(appId, scheduledPushNotificationId, notification); Debug.WriteLine(result); } @@ -250,9 +246,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application Id | - **scheduledPushNotificationId** | **int?**| Notification Id | - **notification** | [**PushNotificationRequest**](PushNotificationRequest.md)| Notification to send | + **appId** | **string**| | + **scheduledPushNotificationId** | **int?**| | + **notification** | [**PushNotificationRequest**](PushNotificationRequest.md)| | ### Return type diff --git a/docs/FilesApi.md b/docs/ReceiptsApi.md similarity index 60% rename from docs/FilesApi.md rename to docs/ReceiptsApi.md index c4497c01..7e703c2a 100644 --- a/docs/FilesApi.md +++ b/docs/ReceiptsApi.md @@ -1,17 +1,17 @@ -# Flipdish.Api.FilesApi +# Flipdish.Api.ReceiptsApi All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**DownloadFile**](FilesApi.md#downloadfile) | **GET** /api/v1.0/{appId}/files/download/{fileId} | Get file from storage +[**GetReceipt**](ReceiptsApi.md#getreceipt) | **GET** /api/v1.0/receipts/{orderId} | - -# **DownloadFile** -> string DownloadFile (string appId, string fileId) + +# **GetReceipt** +> GetReceiptByOrderIdQueryResponse GetReceipt (int? orderId) + -Get file from storage ### Example ```csharp @@ -23,26 +23,24 @@ using Flipdish.Model; namespace Example { - public class DownloadFileExample + public class GetReceiptExample { public void main() { // Configure OAuth2 access token for authorization: oauth2 Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - var apiInstance = new FilesApi(); - var appId = appId_example; // string | - var fileId = fileId_example; // string | + var apiInstance = new ReceiptsApi(); + var orderId = 56; // int? | try { - // Get file from storage - string result = apiInstance.DownloadFile(appId, fileId); + GetReceiptByOrderIdQueryResponse result = apiInstance.GetReceipt(orderId); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling FilesApi.DownloadFile: " + e.Message ); + Debug.Print("Exception when calling ReceiptsApi.GetReceipt: " + e.Message ); } } } @@ -53,12 +51,11 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| | - **fileId** | **string**| | + **orderId** | **int?**| | ### Return type -**string** +[**GetReceiptByOrderIdQueryResponse**](GetReceiptByOrderIdQueryResponse.md) ### Authorization diff --git a/docs/RequestPasswordResetModel.md b/docs/RequestPasswordResetModel.md index 48dfffb9..263ac8a1 100644 --- a/docs/RequestPasswordResetModel.md +++ b/docs/RequestPasswordResetModel.md @@ -4,6 +4,7 @@ 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/RequestPasswordResetPinResponse.md b/docs/RequestPasswordResetPinResponse.md deleted file mode 100644 index f0f7061e..00000000 --- a/docs/RequestPasswordResetPinResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# Flipdish.Model.RequestPasswordResetPinResponse -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PasswordResetPinSentViaEmail** | **bool?** | Password Reset PIN sent via email to 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/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/RestApiArrayResultAppStoreAppConfigurationHeader.md b/docs/RestApiArrayResultAppStoreAppConfigurationHeader.md deleted file mode 100644 index d342d41f..00000000 --- a/docs/RestApiArrayResultAppStoreAppConfigurationHeader.md +++ /dev/null @@ -1,9 +0,0 @@ -# Flipdish.Model.RestApiArrayResultAppStoreAppConfigurationHeader -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**List<AppStoreAppConfigurationHeader>**](AppStoreAppConfigurationHeader.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/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/RestApiArrayResultDriverStore.md b/docs/RestApiArrayResultDriverStore.md deleted file mode 100644 index 14b410dd..00000000 --- a/docs/RestApiArrayResultDriverStore.md +++ /dev/null @@ -1,9 +0,0 @@ -# Flipdish.Model.RestApiArrayResultDriverStore -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**List<DriverStore>**](DriverStore.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/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/RestApiResultKioskCashSetting.md b/docs/RestApiArrayResultOrderBatch.md similarity index 72% rename from docs/RestApiResultKioskCashSetting.md rename to docs/RestApiArrayResultOrderBatch.md index b1e6c79b..48717901 100644 --- a/docs/RestApiResultKioskCashSetting.md +++ b/docs/RestApiArrayResultOrderBatch.md @@ -1,9 +1,9 @@ -# Flipdish.Model.RestApiResultKioskCashSetting +# Flipdish.Model.RestApiArrayResultOrderBatch ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | [**KioskCashSetting**](KioskCashSetting.md) | Generic data object. | +**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/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/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/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/RestApiArrayResultStoreChannelStoreMapping.md b/docs/RestApiArrayResultStoreChannelStoreMapping.md deleted file mode 100644 index 0147e492..00000000 --- a/docs/RestApiArrayResultStoreChannelStoreMapping.md +++ /dev/null @@ -1,9 +0,0 @@ -# Flipdish.Model.RestApiArrayResultStoreChannelStoreMapping -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**List<StoreChannelStoreMapping>**](StoreChannelStoreMapping.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/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/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/RestApiArrayResultOrderBatchItem.md b/docs/RestApiArrayResultVoucherSummary.md similarity index 72% rename from docs/RestApiArrayResultOrderBatchItem.md rename to docs/RestApiArrayResultVoucherSummary.md index 0494a14a..75d8914e 100644 --- a/docs/RestApiArrayResultOrderBatchItem.md +++ b/docs/RestApiArrayResultVoucherSummary.md @@ -1,9 +1,9 @@ -# Flipdish.Model.RestApiArrayResultOrderBatchItem +# Flipdish.Model.RestApiArrayResultVoucherSummary ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | [**List<OrderBatchItem>**](OrderBatchItem.md) | Generic data object. | +**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/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/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/RestApiPaginationResultHttpRequestAndResponseLog.md b/docs/RestApiPaginationResultRestaurant.md similarity index 70% rename from docs/RestApiPaginationResultHttpRequestAndResponseLog.md rename to docs/RestApiPaginationResultRestaurant.md index d41e9150..65ba5794 100644 --- a/docs/RestApiPaginationResultHttpRequestAndResponseLog.md +++ b/docs/RestApiPaginationResultRestaurant.md @@ -1,4 +1,4 @@ -# Flipdish.Model.RestApiPaginationResultHttpRequestAndResponseLog +# Flipdish.Model.RestApiPaginationResultRestaurant ## Properties Name | Type | Description | Notes @@ -6,7 +6,7 @@ Name | Type | Description | Notes **Page** | **int?** | Current page index | **Limit** | **int?** | Current page size | **TotalRecordCount** | **int?** | Total record count | -**Data** | [**List<HttpRequestAndResponseLog>**](HttpRequestAndResponseLog.md) | Generic data object. | +**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/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/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/KioskCashSetting.md b/docs/RestApiResultAppGeneralConfigModel.md similarity index 65% rename from docs/KioskCashSetting.md rename to docs/RestApiResultAppGeneralConfigModel.md index a8a1b1a5..5da9295f 100644 --- a/docs/KioskCashSetting.md +++ b/docs/RestApiResultAppGeneralConfigModel.md @@ -1,9 +1,9 @@ -# Flipdish.Model.KioskCashSetting +# Flipdish.Model.RestApiResultAppGeneralConfigModel ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CashPaymentEnabled** | **bool?** | Indicated whether cash payment is enabled or not eg: true | [optional] +**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/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/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/RestApiArrayResultDriver.md b/docs/RestApiResultClientDevice.md similarity index 72% rename from docs/RestApiArrayResultDriver.md rename to docs/RestApiResultClientDevice.md index 4c3d0c5f..cacb3b56 100644 --- a/docs/RestApiArrayResultDriver.md +++ b/docs/RestApiResultClientDevice.md @@ -1,9 +1,9 @@ -# Flipdish.Model.RestApiArrayResultDriver +# Flipdish.Model.RestApiResultClientDevice ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | [**List<Driver>**](Driver.md) | Generic data object. | +**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/RestApiResultKioskStoreSettings.md b/docs/RestApiResultCrossSellMenuItems.md similarity index 72% rename from docs/RestApiResultKioskStoreSettings.md rename to docs/RestApiResultCrossSellMenuItems.md index f3ff8669..50553d90 100644 --- a/docs/RestApiResultKioskStoreSettings.md +++ b/docs/RestApiResultCrossSellMenuItems.md @@ -1,9 +1,9 @@ -# Flipdish.Model.RestApiResultKioskStoreSettings +# Flipdish.Model.RestApiResultCrossSellMenuItems ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | [**KioskStoreSettings**](KioskStoreSettings.md) | Generic data object. | +**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/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/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/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/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/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/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/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/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/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/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/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/RestApiResultOrderIngestSubmitOrderResponse.md b/docs/RestApiResultOrderIngestSubmitOrderResponse.md deleted file mode 100644 index e46d27a1..00000000 --- a/docs/RestApiResultOrderIngestSubmitOrderResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# Flipdish.Model.RestApiResultOrderIngestSubmitOrderResponse -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**OrderIngestSubmitOrderResponse**](OrderIngestSubmitOrderResponse.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/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/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/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/RestApiResultStoreKioskSettings.md b/docs/RestApiResultStoreKioskSettings.md deleted file mode 100644 index fe2f1841..00000000 --- a/docs/RestApiResultStoreKioskSettings.md +++ /dev/null @@ -1,9 +0,0 @@ -# Flipdish.Model.RestApiResultStoreKioskSettings -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**StoreKioskSettings**](StoreKioskSettings.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/RestApiResultStripeTerminalPrivateKey.md b/docs/RestApiResultStripeTerminalPrivateKey.md deleted file mode 100644 index f95d4eef..00000000 --- a/docs/RestApiResultStripeTerminalPrivateKey.md +++ /dev/null @@ -1,9 +0,0 @@ -# Flipdish.Model.RestApiResultStripeTerminalPrivateKey -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**StripeTerminalPrivateKey**](StripeTerminalPrivateKey.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/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/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/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 index fb68607a..e042aa29 100644 --- a/docs/RestaurantVoucherAssignedStore.md +++ b/docs/RestaurantVoucherAssignedStore.md @@ -3,9 +3,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**StoreId** | **int?** | | [optional] -**Name** | **string** | | [optional] -**Active** | **bool?** | | [optional] +**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 index 83eaa5eb..145589c7 100644 --- a/docs/RestaurantVoucherEligibleStore.md +++ b/docs/RestaurantVoucherEligibleStore.md @@ -3,8 +3,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**StoreId** | **int?** | | [optional] -**Name** | **string** | | [optional] +**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 index b4c2b3a8..81d1b0ac 100644 --- a/docs/RestaurantVoucherPayGreenConfiguration.md +++ b/docs/RestaurantVoucherPayGreenConfiguration.md @@ -3,10 +3,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] -**PayGreenId** | **string** | | [optional] -**PayGreenConfigurationId** | **int?** | | [optional] -**AssignedStores** | [**List<RestaurantVoucherAssignedStore>**](RestaurantVoucherAssignedStore.md) | | [optional] +**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 index 3c5e4233..167057ac 100644 --- a/docs/RestaurantVoucherPayGreenConfigurationSummary.md +++ b/docs/RestaurantVoucherPayGreenConfigurationSummary.md @@ -3,8 +3,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] -**PayGreenConfigurationId** | **int?** | | [optional] +**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 index 17bee26f..0b3a32d7 100644 --- a/docs/RestaurantVoucherPayGreenStoreConfiguration.md +++ b/docs/RestaurantVoucherPayGreenStoreConfiguration.md @@ -3,10 +3,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] -**Active** | **bool?** | | [optional] -**PayGreenId** | **string** | | [optional] -**PayGreenConfigurationId** | **int?** | | [optional] +**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/RetentionCampaign.md b/docs/RetentionCampaign.md index f3912adc..66478c37 100644 --- a/docs/RetentionCampaign.md +++ b/docs/RetentionCampaign.md @@ -6,8 +6,10 @@ 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] @@ -15,6 +17,8 @@ Name | Type | Description | Notes **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 index ea7fbc83..0447bb5c 100644 --- a/docs/RetentionCampaignBase.md +++ b/docs/RetentionCampaignBase.md @@ -5,6 +5,7 @@ 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] @@ -12,6 +13,8 @@ Name | Type | Description | Notes **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 index 19906871..4a23f77a 100644 --- a/docs/RetentionCampaignCreatedEvent.md +++ b/docs/RetentionCampaignCreatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 26bcfc8f..8c1b9b4d 100644 --- a/docs/RetentionCampaignDeletedEvent.md +++ b/docs/RetentionCampaignDeletedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index cb77c892..46d97c81 100644 --- a/docs/RetentionCampaignUpdatedEvent.md +++ b/docs/RetentionCampaignUpdatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index eb0c3602..131f25ae 100644 --- a/docs/RevenueAdjustmentsDetails.md +++ b/docs/RevenueAdjustmentsDetails.md @@ -4,9 +4,12 @@ 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/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 index bdd68896..ceaf4743 100644 --- a/docs/SearchCriteria.md +++ b/docs/SearchCriteria.md @@ -9,8 +9,11 @@ Name | Type | Description | Notes **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] 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/SetOrderBatchingConfiguration.md b/docs/SetOrderBatchingConfiguration.md index 9519c032..ce6c2337 100644 --- a/docs/SetOrderBatchingConfiguration.md +++ b/docs/SetOrderBatchingConfiguration.md @@ -3,7 +3,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**BatchIntervalInMinutes** | **int?** | Batch sending interval in minutes | [optional] +**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/SetPasswordWithPinModel.md b/docs/SetPasswordWithPinModel.md deleted file mode 100644 index 9d0d77fc..00000000 --- a/docs/SetPasswordWithPinModel.md +++ /dev/null @@ -1,10 +0,0 @@ -# Flipdish.Model.SetPasswordWithPinModel -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Pin** | **int?** | PIN code (received via email) | -**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/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 index 049230b6..4a5946ec 100644 --- a/docs/Setting.md +++ b/docs/Setting.md @@ -3,8 +3,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Key** | **string** | Key | [optional] -**Value** | **string** | Value | [optional] +**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/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 index db268fcf..3cb44fe6 100644 --- a/docs/SmsReceivedEvent.md +++ b/docs/SmsReceivedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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/Store.md b/docs/Store.md index f4dd8121..aae42926 100644 --- a/docs/Store.md +++ b/docs/Store.md @@ -22,6 +22,8 @@ Name | Type | Description | Notes **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] @@ -51,6 +53,8 @@ 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] +**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/StoreAddressUpdatedEvent.md b/docs/StoreAddressUpdatedEvent.md index 3e650f2f..17065ce6 100644 --- a/docs/StoreAddressUpdatedEvent.md +++ b/docs/StoreAddressUpdatedEvent.md @@ -4,6 +4,7 @@ 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] @@ -14,6 +15,8 @@ Name | Type | Description | Notes **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 index 9502ab2f..bb1b8205 100644 --- a/docs/StoreArchivedEvent.md +++ b/docs/StoreArchivedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index 317fd60e..1267f209 100644 --- a/docs/StoreBase.md +++ b/docs/StoreBase.md @@ -32,6 +32,8 @@ 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] +**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 index 11bcf835..d03ef5d2 100644 --- a/docs/StoreBusinessHoursOverrideCreatedEvent.md +++ b/docs/StoreBusinessHoursOverrideCreatedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index 0d4d4bb5..76f4e3e1 100644 --- a/docs/StoreBusinessHoursOverrideDeletedEvent.md +++ b/docs/StoreBusinessHoursOverrideDeletedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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/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/StoreCreateBase.md b/docs/StoreCreateBase.md index f36322df..37f70f22 100644 --- a/docs/StoreCreateBase.md +++ b/docs/StoreCreateBase.md @@ -6,6 +6,8 @@ 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 index da924389..460f6781 100644 --- a/docs/StoreCreatedEvent.md +++ b/docs/StoreCreatedEvent.md @@ -4,6 +4,7 @@ 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] @@ -13,6 +14,8 @@ Name | Type | Description | Notes **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/StoreDeletedEvent.md b/docs/StoreDeletedEvent.md index dd817d50..0dee68af 100644 --- a/docs/StoreDeletedEvent.md +++ b/docs/StoreDeletedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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/StoreFeeConfig.md b/docs/StoreFeeConfig.md index 7d7e7a1c..9f65a3b9 100644 --- a/docs/StoreFeeConfig.md +++ b/docs/StoreFeeConfig.md @@ -25,6 +25,8 @@ Name | Type | Description | Notes **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] @@ -38,6 +40,22 @@ Name | Type | Description | Notes **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 index 12a2ed55..abef4942 100644 --- a/docs/StoreGroup.md +++ b/docs/StoreGroup.md @@ -6,6 +6,9 @@ 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] diff --git a/docs/StoreGroupCreatedEvent.md b/docs/StoreGroupCreatedEvent.md index 93ee9d15..8884a864 100644 --- a/docs/StoreGroupCreatedEvent.md +++ b/docs/StoreGroupCreatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 2a122dad..18a066ae 100644 --- a/docs/StoreGroupDeletedEvent.md +++ b/docs/StoreGroupDeletedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index ff808d7b..1b2fbe51 100644 --- a/docs/StoreGroupExtended.md +++ b/docs/StoreGroupExtended.md @@ -9,6 +9,9 @@ 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] diff --git a/docs/StoreGroupUpdatedEvent.md b/docs/StoreGroupUpdatedEvent.md index 8be25390..ebdbccdc 100644 --- a/docs/StoreGroupUpdatedEvent.md +++ b/docs/StoreGroupUpdatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index e25b664a..1e44dd2d 100644 --- a/docs/StoreGroupsApi.md +++ b/docs/StoreGroupsApi.md @@ -4,19 +4,85 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateStoreGroup**](StoreGroupsApi.md#createstoregroup) | **POST** /api/v1.0/{appNameId}/storegroups | Creates a Store Group It will be attached to an existing App -[**GetStoreGroup**](StoreGroupsApi.md#getstoregroup) | **GET** /api/v1.0/storegroups/{storeGroupId} | Returns a Store Groups -[**GetStoreGroups**](StoreGroupsApi.md#getstoregroups) | **GET** /api/v1.0/{appNameId}/storegroups | Returns a paginated list of Store Groups -[**GetStoreGroupsExtended**](StoreGroupsApi.md#getstoregroupsextended) | **GET** /api/v1.0/{appNameId}/storegroups/extended | [PRIVATE API] Returns a paginated list of Extended Store Groups -[**RemoveStoreGroup**](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 -[**UpdateStoreGroup**](StoreGroupsApi.md#updatestoregroup) | **POST** /api/v1.0/storegroups/{storeGroupId} | Updates Store Group +[**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) -Creates a Store Group It will be attached to an existing App + ### Example ```csharp @@ -36,12 +102,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoreGroupsApi(); - var appNameId = appNameId_example; // string | App Name Id - var storeGroup = new StoreGroupBase(); // StoreGroupBase | Store group definition + var appNameId = appNameId_example; // string | + var storeGroup = new StoreGroupBase(); // StoreGroupBase | try { - // Creates a Store Group It will be attached to an existing App RestApiResultStoreGroup result = apiInstance.CreateStoreGroup(appNameId, storeGroup); Debug.WriteLine(result); } @@ -58,8 +123,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appNameId** | **string**| App Name Id | - **storeGroup** | [**StoreGroupBase**](StoreGroupBase.md)| Store group definition | + **appNameId** | **string**| | + **storeGroup** | [**StoreGroupBase**](StoreGroupBase.md)| | ### Return type @@ -80,7 +145,7 @@ Name | Type | Description | Notes # **GetStoreGroup** > RestApiResultStoreGroup GetStoreGroup (int? storeGroupId) -Returns a Store Groups + ### Example ```csharp @@ -100,11 +165,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoreGroupsApi(); - var storeGroupId = 56; // int? | Store Group Id + var storeGroupId = 56; // int? | try { - // Returns a Store Groups RestApiResultStoreGroup result = apiInstance.GetStoreGroup(storeGroupId); Debug.WriteLine(result); } @@ -121,7 +185,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeGroupId** | **int?**| Store Group Id | + **storeGroupId** | **int?**| | ### Return type @@ -142,7 +206,7 @@ Name | Type | Description | Notes # **GetStoreGroups** > RestApiPaginationResultStoreGroup GetStoreGroups (string appNameId, string searchQuery = null, int? page = null, int? limit = null) -Returns a paginated list of Store Groups + ### Example ```csharp @@ -162,14 +226,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoreGroupsApi(); - var appNameId = appNameId_example; // string | App Name Id - var searchQuery = searchQuery_example; // string | Search query (optional) - var page = 56; // int? | Requested page index (optional) - var limit = 56; // int? | Requested page limit (optional) + var appNameId = appNameId_example; // string | + var searchQuery = searchQuery_example; // string | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) try { - // Returns a paginated list of Store Groups RestApiPaginationResultStoreGroup result = apiInstance.GetStoreGroups(appNameId, searchQuery, page, limit); Debug.WriteLine(result); } @@ -186,10 +249,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appNameId** | **string**| App Name Id | - **searchQuery** | **string**| Search query | [optional] - **page** | **int?**| Requested page index | [optional] - **limit** | **int?**| Requested page limit | [optional] + **appNameId** | **string**| | + **searchQuery** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] ### Return type @@ -210,7 +273,7 @@ Name | Type | Description | Notes # **GetStoreGroupsExtended** > RestApiPaginationResultStoreGroupExtended GetStoreGroupsExtended (string appNameId, string searchQuery = null, int? page = null, int? limit = null, int? groupingRadius = null) -[PRIVATE API] Returns a paginated list of Extended Store Groups + ### Example ```csharp @@ -230,15 +293,14 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoreGroupsApi(); - var appNameId = appNameId_example; // string | App Name Id - var searchQuery = searchQuery_example; // string | Search query (optional) - var page = 56; // int? | Requested page index (optional) - var limit = 56; // int? | Requested page limit (optional) + 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 { - // [PRIVATE API] Returns a paginated list of Extended Store Groups RestApiPaginationResultStoreGroupExtended result = apiInstance.GetStoreGroupsExtended(appNameId, searchQuery, page, limit, groupingRadius); Debug.WriteLine(result); } @@ -255,10 +317,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appNameId** | **string**| App Name Id | - **searchQuery** | **string**| Search query | [optional] - **page** | **int?**| Requested page index | [optional] - **limit** | **int?**| Requested page limit | [optional] + **appNameId** | **string**| | + **searchQuery** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] **groupingRadius** | **int?**| | [optional] ### Return type @@ -280,7 +342,7 @@ Name | Type | Description | Notes # **RemoveStoreGroup** > void RemoveStoreGroup (int? storeGroupId) -Deletes a Store Group Can only remove a store group if there is no stores attached to the group + ### Example ```csharp @@ -300,11 +362,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoreGroupsApi(); - var storeGroupId = 56; // int? | Store Group Id + var storeGroupId = 56; // int? | try { - // Deletes a Store Group Can only remove a store group if there is no stores attached to the group apiInstance.RemoveStoreGroup(storeGroupId); } catch (Exception e) @@ -320,7 +381,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeGroupId** | **int?**| Store Group Id | + **storeGroupId** | **int?**| | ### Return type @@ -337,11 +398,73 @@ void (empty response body) [[Back to top]](#) [[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) -Updates Store Group + ### Example ```csharp @@ -361,12 +484,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoreGroupsApi(); - var storeGroupId = 56; // int? | Store Group Id - var storeGroup = new StoreGroupBase(); // StoreGroupBase | Store Group Delta + var storeGroupId = 56; // int? | + var storeGroup = new StoreGroupBase(); // StoreGroupBase | try { - // Updates Store Group RestApiResultStoreGroupBase result = apiInstance.UpdateStoreGroup(storeGroupId, storeGroup); Debug.WriteLine(result); } @@ -383,8 +505,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeGroupId** | **int?**| Store Group Id | - **storeGroup** | [**StoreGroupBase**](StoreGroupBase.md)| Store Group Delta | + **storeGroupId** | **int?**| | + **storeGroup** | [**StoreGroupBase**](StoreGroupBase.md)| | ### Return type diff --git a/docs/StoreKioskSettingModel.md b/docs/StoreKioskSettingModel.md deleted file mode 100644 index a1b87e8c..00000000 --- a/docs/StoreKioskSettingModel.md +++ /dev/null @@ -1,16 +0,0 @@ -# Flipdish.Model.StoreKioskSettingModel -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**KioskName** | **string** | Name of the Kiosk | [optional] -**RequireCustomerName** | **bool?** | Require customer name flag | [optional] -**RequireCustomerPhoneNumber** | **bool?** | Require customer phone number flag | [optional] -**RequestTableNumber** | **bool?** | Request table number flag | [optional] -**OfferDineInOrTakeawayOptions** | **bool?** | Offer Dine-In/Takeaway option flag | [optional] -**SortOrder** | **int?** | Order in which the Kiosks should be listed | [optional] -**ConfigId** | **int?** | Kiosk (Hydra) config id | [optional] -**StoreId** | **int?** | Id of the store (Physical Restaurant) | [optional] - -[[Back to Model list]](../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 index 608186f0..d27d946e 100644 --- a/docs/StoreKioskSettingUpdatedEvent.md +++ b/docs/StoreKioskSettingUpdatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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/StoreLogoCreatedEvent.md b/docs/StoreLogoCreatedEvent.md index 0a6aa1ab..821604fa 100644 --- a/docs/StoreLogoCreatedEvent.md +++ b/docs/StoreLogoCreatedEvent.md @@ -4,7 +4,9 @@ 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] @@ -12,6 +14,8 @@ Name | Type | Description | Notes **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 index 5af16374..a11ecc36 100644 --- a/docs/StoreLogoDeletedEvent.md +++ b/docs/StoreLogoDeletedEvent.md @@ -4,6 +4,7 @@ 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] @@ -12,6 +13,8 @@ Name | Type | Description | Notes **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 index 4a63e226..df8e1754 100644 --- a/docs/StoreLogoUpdatedEvent.md +++ b/docs/StoreLogoUpdatedEvent.md @@ -4,7 +4,9 @@ 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] @@ -12,6 +14,8 @@ Name | Type | Description | Notes **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 index 5c99f0f5..61cf7808 100644 --- a/docs/StoreMenuAssignedEvent.md +++ b/docs/StoreMenuAssignedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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/StoreOpeningHoursUpdatedEvent.md b/docs/StoreOpeningHoursUpdatedEvent.md index 45421ea5..0db9e800 100644 --- a/docs/StoreOpeningHoursUpdatedEvent.md +++ b/docs/StoreOpeningHoursUpdatedEvent.md @@ -4,10 +4,12 @@ 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] @@ -16,6 +18,8 @@ Name | Type | Description | Notes **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 index 98d658cc..8c301235 100644 --- a/docs/StoreOrderCapacityApi.md +++ b/docs/StoreOrderCapacityApi.md @@ -4,15 +4,15 @@ 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} | Get store's order capacity configuration -[**UpdateStoreOrderCapacityConfig**](StoreOrderCapacityApi.md#updatestoreordercapacityconfig) | **POST** /api/v1.0/{appId}/storeordercapacity/{storeId} | Create or update a store's order capacity configuration +[**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) -Get store's order capacity configuration + ### Example ```csharp @@ -32,13 +32,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoreOrderCapacityApi(); - var appId = appId_example; // string | App Name Id - var storeId = 56; // int? | Store Id - var deliveryType = deliveryType_example; // string | Delivery / Pickup + var appId = appId_example; // string | + var storeId = 56; // int? | + var deliveryType = deliveryType_example; // string | try { - // Get store's order capacity configuration RestApiResultStoreOrderCapacityConfig result = apiInstance.GetStoreOrderCapacity(appId, storeId, deliveryType); Debug.WriteLine(result); } @@ -55,9 +54,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **storeId** | **int?**| Store Id | - **deliveryType** | **string**| Delivery / Pickup | + **appId** | **string**| | + **storeId** | **int?**| | + **deliveryType** | **string**| | ### Return type @@ -78,7 +77,7 @@ Name | Type | Description | Notes # **UpdateStoreOrderCapacityConfig** > void UpdateStoreOrderCapacityConfig (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId) -Create or update a store's order capacity configuration + ### Example ```csharp @@ -98,14 +97,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoreOrderCapacityApi(); - var storeId = 56; // int? | Store identifier - var deliveryType = deliveryType_example; // string | Delivery / Pickup - var newOrderCapacityConfig = new StoreOrderCapacityConfigEditModel(); // StoreOrderCapacityConfigEditModel | new order capacity configuration + var storeId = 56; // int? | + var deliveryType = deliveryType_example; // string | + var newOrderCapacityConfig = new StoreOrderCapacityConfigEditModel(); // StoreOrderCapacityConfigEditModel | var appId = appId_example; // string | try { - // Create or update a store's order capacity configuration apiInstance.UpdateStoreOrderCapacityConfig(storeId, deliveryType, newOrderCapacityConfig, appId); } catch (Exception e) @@ -121,9 +119,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **deliveryType** | **string**| Delivery / Pickup | - **newOrderCapacityConfig** | [**StoreOrderCapacityConfigEditModel**](StoreOrderCapacityConfigEditModel.md)| new order capacity configuration | + **storeId** | **int?**| | + **deliveryType** | **string**| | + **newOrderCapacityConfig** | [**StoreOrderCapacityConfigEditModel**](StoreOrderCapacityConfigEditModel.md)| | **appId** | **string**| | ### Return type diff --git a/docs/StorePreOrderConfigUpdatedEvent.md b/docs/StorePreOrderConfigUpdatedEvent.md index 5cfa2140..4e29e481 100644 --- a/docs/StorePreOrderConfigUpdatedEvent.md +++ b/docs/StorePreOrderConfigUpdatedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index a41e9e2c..b1677249 100644 --- a/docs/StorePublishedEvent.md +++ b/docs/StorePublishedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index 1a0e9cbb..3c2f8fbd 100644 --- a/docs/StoreServiceChargeUpdatedEvent.md +++ b/docs/StoreServiceChargeUpdatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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/StoreSummary.md b/docs/StoreSummary.md index 4297cf21..eb4dc9bb 100644 --- a/docs/StoreSummary.md +++ b/docs/StoreSummary.md @@ -6,11 +6,17 @@ 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 index 81f00be8..df83918f 100644 --- a/docs/StoreTipUpdatedEvent.md +++ b/docs/StoreTipUpdatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 553d3e6a..a6125043 100644 --- a/docs/StoreUnarchivedEvent.md +++ b/docs/StoreUnarchivedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index 32c82638..c92923d6 100644 --- a/docs/StoreUnpublishedEvent.md +++ b/docs/StoreUnpublishedEvent.md @@ -13,7 +13,10 @@ Name | Type | Description | Notes **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 index 562fbc70..86dde88a 100644 --- a/docs/StoreUpdatedEvent.md +++ b/docs/StoreUpdatedEvent.md @@ -4,6 +4,7 @@ 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] @@ -14,6 +15,8 @@ Name | Type | Description | Notes **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 index 216545b7..17c4ec08 100644 --- a/docs/StoreValidationConfig.md +++ b/docs/StoreValidationConfig.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StoreId** | **int?** | Store identifier | [optional] -**Name** | **string** | | [optional] +**Name** | **string** | Name | [optional] **IsValid** | **bool?** | Is Store Valid for Kiosk | [optional] **StoreGroupId** | **int?** | Store group Id | [optional] -**ConfigValidation** | [**StoreConfig**](StoreConfig.md) | | [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 index 6335109b..228fc35f 100644 --- a/docs/StoresApi.md +++ b/docs/StoresApi.md @@ -4,45 +4,53 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**ArchiveStore**](StoresApi.md#archivestore) | **POST** /api/v1.0/stores/{storeId}/archive | Archive store -[**AssignMenu**](StoresApi.md#assignmenu) | **POST** /api/v1.0/stores/{storeId}/menu/{menuId} | Assign Menu to Store -[**CloneStore**](StoresApi.md#clonestore) | **POST** /api/v1.0/stores/{storeId}/clone | Clone store with store clone settings -[**ConfigureStoreServiceCharge**](StoresApi.md#configurestoreservicecharge) | **POST** /api/v1.0/stores/{storeId}/servicecharge | Configure Store Service Charge; Idempotent Operation -[**CreateBusinessHoursOverrideByStoreId**](StoresApi.md#createbusinesshoursoverridebystoreid) | **POST** /api/v1.0/stores/{storeId}/businesshoursoverrides | Create Business Hours Override for a store -[**CreateStore**](StoresApi.md#createstore) | **POST** /api/v1.0/stores | Create store with Store Group identifier -[**DeleteBusinessHoursOverride**](StoresApi.md#deletebusinesshoursoverride) | **DELETE** /api/v1.0/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId} | Delete Business Hours Override for a store -[**GetBankAccountForStore**](StoresApi.md#getbankaccountforstore) | **GET** /api/v1.0/stores/{storeId}/bankaccount | Get Stores Bank Account Id -[**GetBusinessHours**](StoresApi.md#getbusinesshours) | **GET** /api/v1.0/stores/{storeId}/availability/{deliveryType} | Get Business hours -[**GetBusinessHoursOverrideByStoreId**](StoresApi.md#getbusinesshoursoverridebystoreid) | **GET** /api/v1.0/stores/{storeId}/businesshoursoverrides | Get business hours overrides by store identifier -[**GetEndOfDayReport**](StoresApi.md#getendofdayreport) | **GET** /api/v1.0/stores/{storeId}/endofdayreport | Get store end of day report -[**GetPreOrderConfig**](StoresApi.md#getpreorderconfig) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | Get the pre order config for a store, by type -[**GetPreOrderPreview**](StoresApi.md#getpreorderpreview) | **GET** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/preview | Get the Preview times of the pre-order configuration -[**GetProcessingFeeConfigsByStoreId**](StoresApi.md#getprocessingfeeconfigsbystoreid) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs | Get processing fee configs by store identifier -[**GetProcessingFeeConfigsByStoreIdAndPaymentAccountType**](StoresApi.md#getprocessingfeeconfigsbystoreidandpaymentaccounttype) | **GET** /api/v1.0/stores/{storeId}/processingfeeconfigs/{paymentAccountType} | Get processing fee configs by store identifier -[**GetStoreById**](StoresApi.md#getstorebyid) | **GET** /api/v1.0/stores/{storeId} | Get store by identifier -[**GetStoreFeeConfig**](StoresApi.md#getstorefeeconfig) | **GET** /api/v1.0/stores/{storeId}/feeConfig | Retrieve Store feeConfig -[**GetStoreHeadersByAppId**](StoresApi.md#getstoreheadersbyappid) | **GET** /api/v1.0/{appId}/stores/header | Get all stores by app name id -[**GetStoreNetSales**](StoresApi.md#getstorenetsales) | **GET** /api/v1.0/{appId}/stores/stats | Get stores statistics by app name id and storeIds -[**GetStoreServiceCharge**](StoresApi.md#getstoreservicecharge) | **GET** /api/v1.0/stores/{storeId}/servicecharge | Retrieve Store Service Charge -[**GetStores**](StoresApi.md#getstores) | **GET** /api/v1.0/stores | Get all stores, excluding archived ones -[**GetStoresByAppId**](StoresApi.md#getstoresbyappid) | **GET** /api/v1.0/{appId}/stores | Get all stores by app name id -[**GetStoresByStoreIdWithValidations**](StoresApi.md#getstoresbystoreidwithvalidations) | **GET** /api/v1.0/{appId}/storevalidation/kiosk | Get store validation by storeIds -[**PublishStore**](StoresApi.md#publishstore) | **POST** /api/v1.0/stores/{storeId}/publish | Publish store -[**SetBusinessHours**](StoresApi.md#setbusinesshours) | **POST** /api/v1.0/stores/{storeId}/availability/{deliveryType} | Set Business hours -[**SetPreOrdeEnabled**](StoresApi.md#setpreordeenabled) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType}/enabled | UPDATE pre order config for a store, by type -[**UnpublishStore**](StoresApi.md#unpublishstore) | **POST** /api/v1.0/stores/{storeId}/unpublish | Unpublish store -[**UpdatePreOrderConfig**](StoresApi.md#updatepreorderconfig) | **POST** /api/v1.0/stores/{storeId}/preorderconfig/{deliveryType} | UPDATE pre order config for a store, by type -[**UpdateStore**](StoresApi.md#updatestore) | **POST** /api/v1.0/stores/{storeId} | Update store by identifier -[**UpdateStoreAddress**](StoresApi.md#updatestoreaddress) | **POST** /api/v1.0/stores/{storeId}/address | Update store address -[**UpdateStoreAddressCoordinates**](StoresApi.md#updatestoreaddresscoordinates) | **POST** /api/v1.0/stores/{storeId}/address/coordinates | Update store address coordinates -[**UpdateStoreAddressForm**](StoresApi.md#updatestoreaddressform) | **POST** /api/v1.0/stores/{storeId}/addressform | Update store address +[**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) -Archive store + ### Example ```csharp @@ -62,11 +70,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier + var storeId = 56; // int? | try { - // Archive store apiInstance.ArchiveStore(storeId); } catch (Exception e) @@ -82,7 +89,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | + **storeId** | **int?**| | ### Return type @@ -103,7 +110,7 @@ void (empty response body) # **AssignMenu** > RestApiArrayResultRestApiDefaultResponse AssignMenu (int? storeId, int? menuId) -Assign Menu to Store + ### Example ```csharp @@ -123,12 +130,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var menuId = 56; // int? | Id of Menu to assign to store + var storeId = 56; // int? | + var menuId = 56; // int? | try { - // Assign Menu to Store RestApiArrayResultRestApiDefaultResponse result = apiInstance.AssignMenu(storeId, menuId); Debug.WriteLine(result); } @@ -145,8 +151,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **menuId** | **int?**| Id of Menu to assign to store | + **storeId** | **int?**| | + **menuId** | **int?**| | ### Return type @@ -167,7 +173,7 @@ Name | Type | Description | Notes # **CloneStore** > RestApiResultStore CloneStore (int? storeId, StoreCloneSettings settings) -Clone store with store clone settings + ### Example ```csharp @@ -187,12 +193,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var settings = new StoreCloneSettings(); // StoreCloneSettings | Settings for cloning the store + var storeId = 56; // int? | + var settings = new StoreCloneSettings(); // StoreCloneSettings | try { - // Clone store with store clone settings RestApiResultStore result = apiInstance.CloneStore(storeId, settings); Debug.WriteLine(result); } @@ -209,8 +214,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **settings** | [**StoreCloneSettings**](StoreCloneSettings.md)| Settings for cloning the store | + **storeId** | **int?**| | + **settings** | [**StoreCloneSettings**](StoreCloneSettings.md)| | ### Return type @@ -231,7 +236,7 @@ Name | Type | Description | Notes # **ConfigureStoreServiceCharge** > RestApiResultServiceCharge ConfigureStoreServiceCharge (int? storeId, ServiceCharge serviceCharge) -Configure Store Service Charge; Idempotent Operation + ### Example ```csharp @@ -251,12 +256,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var serviceCharge = new ServiceCharge(); // ServiceCharge | Service charge + var storeId = 56; // int? | + var serviceCharge = new ServiceCharge(); // ServiceCharge | try { - // Configure Store Service Charge; Idempotent Operation RestApiResultServiceCharge result = apiInstance.ConfigureStoreServiceCharge(storeId, serviceCharge); Debug.WriteLine(result); } @@ -273,8 +277,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **serviceCharge** | [**ServiceCharge**](ServiceCharge.md)| Service charge | + **storeId** | **int?**| | + **serviceCharge** | [**ServiceCharge**](ServiceCharge.md)| | ### Return type @@ -295,7 +299,7 @@ Name | Type | Description | Notes # **CreateBusinessHoursOverrideByStoreId** > RestApiResultBusinessHoursOverride CreateBusinessHoursOverrideByStoreId (int? storeId, BusinessHoursOverrideBase businessHoursOverride) -Create Business Hours Override for a store + ### Example ```csharp @@ -315,12 +319,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var businessHoursOverride = new BusinessHoursOverrideBase(); // BusinessHoursOverrideBase | Business Hours Override + var storeId = 56; // int? | + var businessHoursOverride = new BusinessHoursOverrideBase(); // BusinessHoursOverrideBase | try { - // Create Business Hours Override for a store RestApiResultBusinessHoursOverride result = apiInstance.CreateBusinessHoursOverrideByStoreId(storeId, businessHoursOverride); Debug.WriteLine(result); } @@ -337,8 +340,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **businessHoursOverride** | [**BusinessHoursOverrideBase**](BusinessHoursOverrideBase.md)| Business Hours Override | + **storeId** | **int?**| | + **businessHoursOverride** | [**BusinessHoursOverrideBase**](BusinessHoursOverrideBase.md)| | ### Return type @@ -359,7 +362,7 @@ Name | Type | Description | Notes # **CreateStore** > RestApiResultStore CreateStore (int? storeGroupId, StoreCreateBase store) -Create store with Store Group identifier + ### Example ```csharp @@ -379,12 +382,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeGroupId = 56; // int? | Store Group identifier - var store = new StoreCreateBase(); // StoreCreateBase | Store + var storeGroupId = 56; // int? | + var store = new StoreCreateBase(); // StoreCreateBase | try { - // Create store with Store Group identifier RestApiResultStore result = apiInstance.CreateStore(storeGroupId, store); Debug.WriteLine(result); } @@ -401,8 +403,75 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeGroupId** | **int?**| Store Group identifier | - **store** | [**StoreCreateBase**](StoreCreateBase.md)| Store | + **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 @@ -423,7 +492,7 @@ Name | Type | Description | Notes # **DeleteBusinessHoursOverride** > RestApiArrayResultRestApiDefaultResponse DeleteBusinessHoursOverride (int? storeId, int? businessHoursOverrideId) -Delete Business Hours Override for a store + ### Example ```csharp @@ -448,7 +517,6 @@ namespace Example try { - // Delete Business Hours Override for a store RestApiArrayResultRestApiDefaultResponse result = apiInstance.DeleteBusinessHoursOverride(storeId, businessHoursOverrideId); Debug.WriteLine(result); } @@ -487,7 +555,7 @@ Name | Type | Description | Notes # **GetBankAccountForStore** > RestApiResultAssignedBankAccount GetBankAccountForStore (int? storeId) -Get Stores Bank Account Id + ### Example ```csharp @@ -507,11 +575,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier + var storeId = 56; // int? | try { - // Get Stores Bank Account Id RestApiResultAssignedBankAccount result = apiInstance.GetBankAccountForStore(storeId); Debug.WriteLine(result); } @@ -528,7 +595,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | + **storeId** | **int?**| | ### Return type @@ -549,7 +616,7 @@ Name | Type | Description | Notes # **GetBusinessHours** > RestApiArrayResultBusinessHoursPeriod GetBusinessHours (int? storeId, string deliveryType) -Get Business hours + ### Example ```csharp @@ -569,12 +636,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var deliveryType = deliveryType_example; // string | Delivery type + var storeId = 56; // int? | + var deliveryType = deliveryType_example; // string | try { - // Get Business hours RestApiArrayResultBusinessHoursPeriod result = apiInstance.GetBusinessHours(storeId, deliveryType); Debug.WriteLine(result); } @@ -591,8 +657,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **deliveryType** | **string**| Delivery type | + **storeId** | **int?**| | + **deliveryType** | **string**| | ### Return type @@ -613,7 +679,7 @@ Name | Type | Description | Notes # **GetBusinessHoursOverrideByStoreId** > RestApiPaginationResultBusinessHoursOverride GetBusinessHoursOverrideByStoreId (int? storeId, DateTime? after = null, int? page = null, int? limit = null) -Get business hours overrides by store identifier + ### Example ```csharp @@ -633,14 +699,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var after = 2013-10-20T19:20:30+01:00; // DateTime? | Return results that ended after this datetime. Default value is the current datetime. (optional) - var page = 56; // int? | Requested page index (optional) - var limit = 56; // int? | Requested page limit (optional) + 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 { - // Get business hours overrides by store identifier RestApiPaginationResultBusinessHoursOverride result = apiInstance.GetBusinessHoursOverrideByStoreId(storeId, after, page, limit); Debug.WriteLine(result); } @@ -657,10 +722,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **after** | **DateTime?**| Return results that ended after this datetime. Default value is the current datetime. | [optional] - **page** | **int?**| Requested page index | [optional] - **limit** | **int?**| Requested page limit | [optional] + **storeId** | **int?**| | + **after** | **DateTime?**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] ### Return type @@ -681,7 +746,7 @@ Name | Type | Description | Notes # **GetEndOfDayReport** > RestApiResultStoreEndOfDayReport GetEndOfDayReport (int? storeId, DateTime? date = null) -Get store end of day report + ### Example ```csharp @@ -701,12 +766,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var date = 2013-10-20T19:20:30+01:00; // DateTime? | Store identifier (optional) + var storeId = 56; // int? | + var date = 2013-10-20T19:20:30+01:00; // DateTime? | (optional) try { - // Get store end of day report RestApiResultStoreEndOfDayReport result = apiInstance.GetEndOfDayReport(storeId, date); Debug.WriteLine(result); } @@ -723,8 +787,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **date** | **DateTime?**| Store identifier | [optional] + **storeId** | **int?**| | + **date** | **DateTime?**| | [optional] ### Return type @@ -745,7 +809,7 @@ Name | Type | Description | Notes # **GetPreOrderConfig** > RestApiResultPreOrderConfig GetPreOrderConfig (int? storeId, string deliveryType) -Get the pre order config for a store, by type + ### Example ```csharp @@ -765,12 +829,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var deliveryType = deliveryType_example; // string | \"delivery\" or \"pickup\" + var storeId = 56; // int? | + var deliveryType = deliveryType_example; // string | try { - // Get the pre order config for a store, by type RestApiResultPreOrderConfig result = apiInstance.GetPreOrderConfig(storeId, deliveryType); Debug.WriteLine(result); } @@ -787,8 +850,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **deliveryType** | **string**| \"delivery\" or \"pickup\" | + **storeId** | **int?**| | + **deliveryType** | **string**| | ### Return type @@ -809,7 +872,7 @@ Name | Type | Description | Notes # **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) -Get the Preview times of the pre-order configuration + ### Example ```csharp @@ -829,8 +892,8 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var deliveryType = deliveryType_example; // string | \"delivery\" or \"pickup\" + 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) @@ -844,7 +907,6 @@ namespace Example try { - // Get the Preview times of the pre-order configuration RestApiArrayResultPreOrderTime result = apiInstance.GetPreOrderPreview(storeId, deliveryType, preOrderConfigLeadTimeMinutes, preOrderConfigIntervalMinutes, preOrderConfigMaxOrderAheadDays, preOrderConfigIncludeAsap, preOrderConfigIncludeMoreGranularInitialTime, preOrderConfigCutOffTimePreviousDayBasic, preOrderConfigCutOffTimeCurrentDayBasic, preOrderConfigPreOrderTimeDisplayType, preOrderConfigAlwaysAppearOpen, preOrderConfigRequireExplicitSelectAlways); Debug.WriteLine(result); } @@ -861,8 +923,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **deliveryType** | **string**| \"delivery\" or \"pickup\" | + **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] @@ -893,7 +955,7 @@ Name | Type | Description | Notes # **GetProcessingFeeConfigsByStoreId** > RestApiArrayResultProcessingFeeConfig GetProcessingFeeConfigsByStoreId (int? storeId, string appNameId = null) -Get processing fee configs by store identifier + ### Example ```csharp @@ -913,12 +975,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var appNameId = appNameId_example; // string | App Name Id(Not used, still here for compatability reasons) (optional) + var storeId = 56; // int? | + var appNameId = appNameId_example; // string | (optional) try { - // Get processing fee configs by store identifier RestApiArrayResultProcessingFeeConfig result = apiInstance.GetProcessingFeeConfigsByStoreId(storeId, appNameId); Debug.WriteLine(result); } @@ -935,8 +996,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **appNameId** | **string**| App Name Id(Not used, still here for compatability reasons) | [optional] + **storeId** | **int?**| | + **appNameId** | **string**| | [optional] ### Return type @@ -957,7 +1018,7 @@ Name | Type | Description | Notes # **GetProcessingFeeConfigsByStoreIdAndPaymentAccountType** > RestApiResultProcessingFeeConfig GetProcessingFeeConfigsByStoreIdAndPaymentAccountType (int? storeId, string paymentAccountType, string appNameId = null) -Get processing fee configs by store identifier + ### Example ```csharp @@ -977,13 +1038,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier + var storeId = 56; // int? | var paymentAccountType = paymentAccountType_example; // string | - var appNameId = appNameId_example; // string | App Name Id(Not used, still here for compatability reasons) (optional) + var appNameId = appNameId_example; // string | (optional) try { - // Get processing fee configs by store identifier RestApiResultProcessingFeeConfig result = apiInstance.GetProcessingFeeConfigsByStoreIdAndPaymentAccountType(storeId, paymentAccountType, appNameId); Debug.WriteLine(result); } @@ -1000,9 +1060,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | + **storeId** | **int?**| | **paymentAccountType** | **string**| | - **appNameId** | **string**| App Name Id(Not used, still here for compatability reasons) | [optional] + **appNameId** | **string**| | [optional] ### Return type @@ -1023,7 +1083,7 @@ Name | Type | Description | Notes # **GetStoreById** > RestApiResultStore GetStoreById (int? storeId) -Get store by identifier + ### Example ```csharp @@ -1043,11 +1103,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier + var storeId = 56; // int? | try { - // Get store by identifier RestApiResultStore result = apiInstance.GetStoreById(storeId); Debug.WriteLine(result); } @@ -1064,7 +1123,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | + **storeId** | **int?**| | ### Return type @@ -1081,11 +1140,72 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) -Retrieve Store feeConfig + ### Example ```csharp @@ -1105,11 +1225,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier + var storeId = 56; // int? | try { - // Retrieve Store feeConfig StoreFeeConfig result = apiInstance.GetStoreFeeConfig(storeId); Debug.WriteLine(result); } @@ -1126,7 +1245,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | + **storeId** | **int?**| | ### Return type @@ -1145,9 +1264,9 @@ Name | Type | Description | Notes # **GetStoreHeadersByAppId** -> RestApiPaginationResultStoreHeader GetStoreHeadersByAppId (string appId, string storeNameQuery = null, int? page = null, int? limit = null) +> RestApiPaginationResultStoreHeader GetStoreHeadersByAppId (string appId, string storeNameQuery = null, string salesChannelType = null, int? page = null, int? limit = null) + -Get all stores by app name id ### Example ```csharp @@ -1167,15 +1286,15 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var appId = appId_example; // string | App Name Id + 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 { - // Get all stores by app name id - RestApiPaginationResultStoreHeader result = apiInstance.GetStoreHeadersByAppId(appId, storeNameQuery, page, limit); + RestApiPaginationResultStoreHeader result = apiInstance.GetStoreHeadersByAppId(appId, storeNameQuery, salesChannelType, page, limit); Debug.WriteLine(result); } catch (Exception e) @@ -1191,8 +1310,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | + **appId** | **string**| | **storeNameQuery** | **string**| | [optional] + **salesChannelType** | **string**| | [optional] **page** | **int?**| | [optional] **limit** | **int?**| | [optional] @@ -1211,11 +1331,72 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) -Get stores statistics by app name id and storeIds + ### Example ```csharp @@ -1235,12 +1416,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var appId = appId_example; // string | App Name Id - var storeId = new List(); // List | Store Ids + var appId = appId_example; // string | + var storeId = new List(); // List | try { - // Get stores statistics by app name id and storeIds RestApiArrayResultStoreStatistics result = apiInstance.GetStoreNetSales(appId, storeId); Debug.WriteLine(result); } @@ -1257,8 +1437,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **storeId** | [**List<int?>**](int?.md)| Store Ids | + **appId** | **string**| | + **storeId** | [**List<int?>**](int?.md)| | ### Return type @@ -1279,7 +1459,7 @@ Name | Type | Description | Notes # **GetStoreServiceCharge** > ServiceCharge GetStoreServiceCharge (int? storeId) -Retrieve Store Service Charge + ### Example ```csharp @@ -1299,11 +1479,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier + var storeId = 56; // int? | try { - // Retrieve Store Service Charge ServiceCharge result = apiInstance.GetStoreServiceCharge(storeId); Debug.WriteLine(result); } @@ -1320,7 +1499,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | + **storeId** | **int?**| | ### Return type @@ -1341,7 +1520,7 @@ Name | Type | Description | Notes # **GetStores** > RestApiPaginationResultStore GetStores (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null) -Get all stores, excluding archived ones + ### Example ```csharp @@ -1361,14 +1540,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var searchQuery = searchQuery_example; // string | Search query (optional) - var page = 56; // int? | Requested page index (optional) - var limit = 56; // int? | Requested page limit (optional) - var storeGroupId = 56; // int? | Store Group Id (optional) + var searchQuery = searchQuery_example; // string | (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) + var storeGroupId = 56; // int? | (optional) try { - // Get all stores, excluding archived ones RestApiPaginationResultStore result = apiInstance.GetStores(searchQuery, page, limit, storeGroupId); Debug.WriteLine(result); } @@ -1385,10 +1563,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **searchQuery** | **string**| Search query | [optional] - **page** | **int?**| Requested page index | [optional] - **limit** | **int?**| Requested page limit | [optional] - **storeGroupId** | **int?**| Store Group Id | [optional] + **searchQuery** | **string**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] + **storeGroupId** | **int?**| | [optional] ### Return type @@ -1407,9 +1585,9 @@ Name | Type | Description | Notes # **GetStoresByAppId** -> RestApiPaginationResultStore GetStoresByAppId (string appId, string searchQuery = null, int? page = null, int? limit = null) +> RestApiPaginationResultStore GetStoresByAppId (string appId, string searchQuery = null, string salesChannelType = null, bool? excludeUnpublished = null, int? page = null, int? limit = null) + -Get all stores by app name id ### Example ```csharp @@ -1429,15 +1607,16 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var appId = appId_example; // string | App Name Id - var searchQuery = searchQuery_example; // string | Search query (optional) - var page = 56; // int? | Requested page index (optional) - var limit = 56; // int? | Requested page limit (optional) + 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 { - // Get all stores by app name id - RestApiPaginationResultStore result = apiInstance.GetStoresByAppId(appId, searchQuery, page, limit); + RestApiPaginationResultStore result = apiInstance.GetStoresByAppId(appId, searchQuery, salesChannelType, excludeUnpublished, page, limit); Debug.WriteLine(result); } catch (Exception e) @@ -1453,10 +1632,12 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **searchQuery** | **string**| Search query | [optional] - **page** | **int?**| Requested page index | [optional] - **limit** | **int?**| Requested page limit | [optional] + **appId** | **string**| | + **searchQuery** | **string**| | [optional] + **salesChannelType** | **string**| | [optional] + **excludeUnpublished** | **bool?**| | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] ### Return type @@ -1477,7 +1658,7 @@ Name | Type | Description | Notes # **GetStoresByStoreIdWithValidations** > RestApiPaginationResultStoreValidationConfig GetStoresByStoreIdWithValidations (List storeId, string appId, int? page = null, int? limit = null) -Get store validation by storeIds + ### Example ```csharp @@ -1497,14 +1678,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = new List(); // List | Store identifier + var storeId = new List(); // List | var appId = appId_example; // string | - var page = 56; // int? | Requested page index (optional) - var limit = 56; // int? | Requested page limit (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) try { - // Get store validation by storeIds RestApiPaginationResultStoreValidationConfig result = apiInstance.GetStoresByStoreIdWithValidations(storeId, appId, page, limit); Debug.WriteLine(result); } @@ -1521,10 +1701,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | [**List<int?>**](int?.md)| Store identifier | + **storeId** | [**List<int?>**](int?.md)| | **appId** | **string**| | - **page** | **int?**| Requested page index | [optional] - **limit** | **int?**| Requested page limit | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] ### Return type @@ -1545,7 +1725,7 @@ Name | Type | Description | Notes # **PublishStore** > void PublishStore (int? storeId) -Publish store + ### Example ```csharp @@ -1565,11 +1745,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier + var storeId = 56; // int? | try { - // Publish store apiInstance.PublishStore(storeId); } catch (Exception e) @@ -1585,7 +1764,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | + **storeId** | **int?**| | ### Return type @@ -1602,11 +1781,11 @@ void (empty response body) [[Back to top]](#) [[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) + +# **PutStoreDeliveryFeeConfig** +> void PutStoreDeliveryFeeConfig (int? storeId, StoreDeliveryZoneFeeConfigUpdateRequest feeConfigUpdateRequest) + -Set Business hours ### Example ```csharp @@ -1618,7 +1797,7 @@ using Flipdish.Model; namespace Example { - public class SetBusinessHoursExample + public class PutStoreDeliveryFeeConfigExample { public void main() { @@ -1626,19 +1805,16 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var deliveryType = deliveryType_example; // string | Delivery type - var businessHoursPeriod = new BusinessHoursPeriodBase(); // BusinessHoursPeriodBase | Business Hours Period + var storeId = 56; // int? | + var feeConfigUpdateRequest = new StoreDeliveryZoneFeeConfigUpdateRequest(); // StoreDeliveryZoneFeeConfigUpdateRequest | try { - // Set Business hours - RestApiResultBusinessHoursPeriod result = apiInstance.SetBusinessHours(storeId, deliveryType, businessHoursPeriod); - Debug.WriteLine(result); + apiInstance.PutStoreDeliveryFeeConfig(storeId, feeConfigUpdateRequest); } catch (Exception e) { - Debug.Print("Exception when calling StoresApi.SetBusinessHours: " + e.Message ); + Debug.Print("Exception when calling StoresApi.PutStoreDeliveryFeeConfig: " + e.Message ); } } } @@ -1649,13 +1825,12 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **deliveryType** | **string**| Delivery type | - **businessHoursPeriod** | [**BusinessHoursPeriodBase**](BusinessHoursPeriodBase.md)| Business Hours Period | + **storeId** | **int?**| | + **feeConfigUpdateRequest** | [**StoreDeliveryZoneFeeConfigUpdateRequest**](StoreDeliveryZoneFeeConfigUpdateRequest.md)| | ### Return type -[**RestApiResultBusinessHoursPeriod**](RestApiResultBusinessHoursPeriod.md) +void (empty response body) ### Authorization @@ -1668,11 +1843,76 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) + +# **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) + -UPDATE pre order config for a store, by type ### Example ```csharp @@ -1692,13 +1932,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var deliveryType = deliveryType_example; // string | \"delivery\" or \"pickup\" - var enabled = true; // bool? | Update pre order config values + var storeId = 56; // int? | + var deliveryType = deliveryType_example; // string | + var enabled = true; // bool? | try { - // UPDATE pre order config for a store, by type RestApiArrayResultRestApiDefaultResponse result = apiInstance.SetPreOrdeEnabled(storeId, deliveryType, enabled); Debug.WriteLine(result); } @@ -1715,9 +1954,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **deliveryType** | **string**| \"delivery\" or \"pickup\" | - **enabled** | **bool?**| Update pre order config values | + **storeId** | **int?**| | + **deliveryType** | **string**| | + **enabled** | **bool?**| | ### Return type @@ -1734,11 +1973,266 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) -Unpublish store + ### Example ```csharp @@ -1758,11 +2252,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier + var storeId = 56; // int? | try { - // Unpublish store apiInstance.UnpublishStore(storeId); } catch (Exception e) @@ -1778,7 +2271,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | + **storeId** | **int?**| | ### Return type @@ -1799,7 +2292,7 @@ void (empty response body) # **UpdatePreOrderConfig** > RestApiArrayResultRestApiDefaultResponse UpdatePreOrderConfig (int? storeId, string deliveryType, PreOrderConfig preOrderConfig) -UPDATE pre order config for a store, by type + ### Example ```csharp @@ -1819,13 +2312,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var deliveryType = deliveryType_example; // string | \"delivery\" or \"pickup\" - var preOrderConfig = new PreOrderConfig(); // PreOrderConfig | Update pre order config values + var storeId = 56; // int? | + var deliveryType = deliveryType_example; // string | + var preOrderConfig = new PreOrderConfig(); // PreOrderConfig | try { - // UPDATE pre order config for a store, by type RestApiArrayResultRestApiDefaultResponse result = apiInstance.UpdatePreOrderConfig(storeId, deliveryType, preOrderConfig); Debug.WriteLine(result); } @@ -1842,9 +2334,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **deliveryType** | **string**| \"delivery\" or \"pickup\" | - **preOrderConfig** | [**PreOrderConfig**](PreOrderConfig.md)| Update pre order config values | + **storeId** | **int?**| | + **deliveryType** | **string**| | + **preOrderConfig** | [**PreOrderConfig**](PreOrderConfig.md)| | ### Return type @@ -1865,7 +2357,7 @@ Name | Type | Description | Notes # **UpdateStore** > RestApiResultStore UpdateStore (int? storeId, StoreBase store) -Update store by identifier + ### Example ```csharp @@ -1885,12 +2377,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store Group identifier - var store = new StoreBase(); // StoreBase | Store + var storeId = 56; // int? | + var store = new StoreBase(); // StoreBase | try { - // Update store by identifier RestApiResultStore result = apiInstance.UpdateStore(storeId, store); Debug.WriteLine(result); } @@ -1907,8 +2398,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store Group identifier | - **store** | [**StoreBase**](StoreBase.md)| Store | + **storeId** | **int?**| | + **store** | [**StoreBase**](StoreBase.md)| | ### Return type @@ -1929,7 +2420,7 @@ Name | Type | Description | Notes # **UpdateStoreAddress** > RestApiResultStoreAddress UpdateStoreAddress (int? storeId, StoreAddressBase storeAddress) -Update store address + ### Example ```csharp @@ -1949,12 +2440,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var storeAddress = new StoreAddressBase(); // StoreAddressBase | Store address + var storeId = 56; // int? | + var storeAddress = new StoreAddressBase(); // StoreAddressBase | try { - // Update store address RestApiResultStoreAddress result = apiInstance.UpdateStoreAddress(storeId, storeAddress); Debug.WriteLine(result); } @@ -1971,8 +2461,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **storeAddress** | [**StoreAddressBase**](StoreAddressBase.md)| Store address | + **storeId** | **int?**| | + **storeAddress** | [**StoreAddressBase**](StoreAddressBase.md)| | ### Return type @@ -1993,7 +2483,7 @@ Name | Type | Description | Notes # **UpdateStoreAddressCoordinates** > RestApiResultCoordinates UpdateStoreAddressCoordinates (int? storeId, Coordinates coordinates, string appNameId = null) -Update store address coordinates + ### Example ```csharp @@ -2013,13 +2503,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var coordinates = new Coordinates(); // Coordinates | Store address coordinates - var appNameId = appNameId_example; // string | App Name Id(Not used, still here for compatability reasons) (optional) + var storeId = 56; // int? | + var coordinates = new Coordinates(); // Coordinates | + var appNameId = appNameId_example; // string | (optional) try { - // Update store address coordinates RestApiResultCoordinates result = apiInstance.UpdateStoreAddressCoordinates(storeId, coordinates, appNameId); Debug.WriteLine(result); } @@ -2036,9 +2525,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **coordinates** | [**Coordinates**](Coordinates.md)| Store address coordinates | - **appNameId** | **string**| App Name Id(Not used, still here for compatability reasons) | [optional] + **storeId** | **int?**| | + **coordinates** | [**Coordinates**](Coordinates.md)| | + **appNameId** | **string**| | [optional] ### Return type @@ -2059,7 +2548,7 @@ Name | Type | Description | Notes # **UpdateStoreAddressForm** > Object UpdateStoreAddressForm (int? storeId, StoreAddressForm address) -Update store address + ### Example ```csharp @@ -2079,12 +2568,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StoresApi(); - var storeId = 56; // int? | Store identifier - var address = new StoreAddressForm(); // StoreAddressForm | Store address + var storeId = 56; // int? | + var address = new StoreAddressForm(); // StoreAddressForm | try { - // Update store address Object result = apiInstance.UpdateStoreAddressForm(storeId, address); Debug.WriteLine(result); } @@ -2101,8 +2589,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store identifier | - **address** | [**StoreAddressForm**](StoreAddressForm.md)| Store address | + **storeId** | **int?**| | + **address** | [**StoreAddressForm**](StoreAddressForm.md)| | ### Return type 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/StripeConnectedAccount.md b/docs/StripeConnectedAccount.md index a7ad04e4..40c5e756 100644 --- a/docs/StripeConnectedAccount.md +++ b/docs/StripeConnectedAccount.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **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 index f12f7760..d58e6c21 100644 --- a/docs/StripeConnectedAccountInfo.md +++ b/docs/StripeConnectedAccountInfo.md @@ -7,6 +7,10 @@ Name | Type | Description | Notes **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/StripeCustomConnectAdminApi.md b/docs/StripeCustomConnectAdminApi.md deleted file mode 100644 index cf2f3d90..00000000 --- a/docs/StripeCustomConnectAdminApi.md +++ /dev/null @@ -1,71 +0,0 @@ -# Flipdish.Api.StripeCustomConnectAdminApi - -All URIs are relative to *https://api.flipdish.co* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**InitializeBankAccountConnectedAccount**](StripeCustomConnectAdminApi.md#initializebankaccountconnectedaccount) | **POST** /api/v1.0/customconnect/initialize-bank-account | Create a new Bank Account and Stripe connected account - - - -# **InitializeBankAccountConnectedAccount** -> RestApiResultBankAccountDetail InitializeBankAccountConnectedAccount (List accounts) - -Create a new Bank Account and Stripe connected account - -### Example -```csharp -using System; -using System.Diagnostics; -using Flipdish.Api; -using Flipdish.Client; -using Flipdish.Model; - -namespace Example -{ - public class InitializeBankAccountConnectedAccountExample - { - public void main() - { - // Configure OAuth2 access token for authorization: oauth2 - Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; - - var apiInstance = new StripeCustomConnectAdminApi(); - var accounts = ; // List | Accounts to be initialized in stripe - - try - { - // Create a new Bank Account and Stripe connected account - RestApiResultBankAccountDetail result = apiInstance.InitializeBankAccountConnectedAccount(accounts); - Debug.WriteLine(result); - } - catch (Exception e) - { - Debug.Print("Exception when calling StripeCustomConnectAdminApi.InitializeBankAccountConnectedAccount: " + e.Message ); - } - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **accounts** | **List<int?>**| Accounts to be initialized in stripe | - -### 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) - diff --git a/docs/StripeCustomConnectApi.md b/docs/StripeCustomConnectApi.md index eeab4313..fe9f44fb 100644 --- a/docs/StripeCustomConnectApi.md +++ b/docs/StripeCustomConnectApi.md @@ -4,21 +4,21 @@ 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 | Create a new Bank Account and Stripe connected account -[**CreateStripeConnectedAccount**](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 -[**CreateStripeConnectedAccountLink**](StripeCustomConnectApi.md#createstripeconnectedaccountlink) | **POST** /api/v1.0/{appId}/customconnect/{stripeConnectedAccountId}/create-account-link | Gets a single-use Stripe URL for the given account -[**GetVerificationStatus**](StripeCustomConnectApi.md#getverificationstatus) | **GET** /api/v1.0/{appId}/customconnect/verification-status | Gets the current verification status of the given connected account -[**SetBankAccountBusinessType**](StripeCustomConnectApi.md#setbankaccountbusinesstype) | **POST** /api/v1.0/{appId}/customconnect/bank-account/{bankAccountId}/businesstype | Update bank account's BusinessType and create a Stripe Connected Account +[**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 | Update bank account details -[**UpdatePayoutSchedule**](StripeCustomConnectApi.md#updatepayoutschedule) | **POST** /api/v1.0/{appId}/customconnect/update-payout-schedule/{stripeConnectedAccountId}/{interval} | Update Stripe Connection Account's payout schedule +[**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) -Create a new Bank Account and Stripe connected account + ### Example ```csharp @@ -38,12 +38,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StripeCustomConnectApi(); - var appId = appId_example; // string | App Name - var account = new BankAccountCreate(); // BankAccountCreate | Account to be created + var appId = appId_example; // string | + var account = new BankAccountCreate(); // BankAccountCreate | try { - // Create a new Bank Account and Stripe connected account RestApiResultBankAccountDetail result = apiInstance.CreateBankAccountAndConnectedAccount(appId, account); Debug.WriteLine(result); } @@ -60,8 +59,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name | - **account** | [**BankAccountCreate**](BankAccountCreate.md)| Account to be created | + **appId** | **string**| | + **account** | [**BankAccountCreate**](BankAccountCreate.md)| | ### Return type @@ -82,7 +81,7 @@ Name | Type | Description | Notes # **CreateStripeConnectedAccount** > RestApiResultStripeConnectedAccount CreateStripeConnectedAccount (string appId, int? bankAccountId) -Create or update a Stripe connected account associated with the bank account of bankAccountId + ### Example ```csharp @@ -102,12 +101,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StripeCustomConnectApi(); - var appId = appId_example; // string | App Name Id - var bankAccountId = 56; // int? | Bank Account Id + var appId = appId_example; // string | + var bankAccountId = 56; // int? | try { - // Create or update a Stripe connected account associated with the bank account of bankAccountId RestApiResultStripeConnectedAccount result = apiInstance.CreateStripeConnectedAccount(appId, bankAccountId); Debug.WriteLine(result); } @@ -124,8 +122,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **bankAccountId** | **int?**| Bank Account Id | + **appId** | **string**| | + **bankAccountId** | **int?**| | ### Return type @@ -146,7 +144,7 @@ Name | Type | Description | Notes # **CreateStripeConnectedAccountLink** > RestApiResultStripeConnectedAccount CreateStripeConnectedAccountLink (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest) -Gets a single-use Stripe URL for the given account + ### Example ```csharp @@ -166,13 +164,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StripeCustomConnectApi(); - var appId = appId_example; // string | App Name - var stripeConnectedAccountId = stripeConnectedAccountId_example; // string | Stripe Connected Account Id + var appId = appId_example; // string | + var stripeConnectedAccountId = stripeConnectedAccountId_example; // string | var stripeAccountLinkRequest = new StripeAccountLinkRequest(); // StripeAccountLinkRequest | try { - // Gets a single-use Stripe URL for the given account RestApiResultStripeConnectedAccount result = apiInstance.CreateStripeConnectedAccountLink(appId, stripeConnectedAccountId, stripeAccountLinkRequest); Debug.WriteLine(result); } @@ -189,8 +186,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name | - **stripeConnectedAccountId** | **string**| Stripe Connected Account Id | + **appId** | **string**| | + **stripeConnectedAccountId** | **string**| | **stripeAccountLinkRequest** | [**StripeAccountLinkRequest**](StripeAccountLinkRequest.md)| | ### Return type @@ -208,11 +205,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **GetVerificationStatus** -> RestApiResultStripeConnectedAccount GetVerificationStatus (string appId, string stripeConnectedAccountId) + +# **GetCustomConnect** +> RestApiArrayResultStripeCustomConnectedAccount GetCustomConnect (int? storeId, string appId) + -Gets the current verification status of the given connected account ### Example ```csharp @@ -224,7 +221,7 @@ using Flipdish.Model; namespace Example { - public class GetVerificationStatusExample + public class GetCustomConnectExample { public void main() { @@ -232,18 +229,17 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StripeCustomConnectApi(); + var storeId = 56; // int? | var appId = appId_example; // string | - var stripeConnectedAccountId = stripeConnectedAccountId_example; // string | try { - // Gets the current verification status of the given connected account - RestApiResultStripeConnectedAccount result = apiInstance.GetVerificationStatus(appId, stripeConnectedAccountId); + RestApiArrayResultStripeCustomConnectedAccount result = apiInstance.GetCustomConnect(storeId, appId); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling StripeCustomConnectApi.GetVerificationStatus: " + e.Message ); + Debug.Print("Exception when calling StripeCustomConnectApi.GetCustomConnect: " + e.Message ); } } } @@ -254,12 +250,12 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **storeId** | **int?**| | **appId** | **string**| | - **stripeConnectedAccountId** | **string**| | ### Return type -[**RestApiResultStripeConnectedAccount**](RestApiResultStripeConnectedAccount.md) +[**RestApiArrayResultStripeCustomConnectedAccount**](RestApiArrayResultStripeCustomConnectedAccount.md) ### Authorization @@ -276,7 +272,7 @@ Name | Type | Description | Notes # **SetBankAccountBusinessType** > RestApiResultBankAccountDetail SetBankAccountBusinessType (string appId, int? bankAccountId, string businessType) -Update bank account's BusinessType and create a Stripe Connected Account + ### Example ```csharp @@ -296,13 +292,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StripeCustomConnectApi(); - var appId = appId_example; // string | App Name - var bankAccountId = 56; // int? | Bank Account Id - var businessType = businessType_example; // string | Bank Account business type + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var businessType = businessType_example; // string | try { - // Update bank account's BusinessType and create a Stripe Connected Account RestApiResultBankAccountDetail result = apiInstance.SetBankAccountBusinessType(appId, bankAccountId, businessType); Debug.WriteLine(result); } @@ -319,9 +314,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name | - **bankAccountId** | **int?**| Bank Account Id | - **businessType** | **string**| Bank Account business type | + **appId** | **string**| | + **bankAccountId** | **int?**| | + **businessType** | **string**| | ### Return type @@ -405,7 +400,7 @@ Name | Type | Description | Notes # **UpdateBankAccountDetails** > RestApiResultStripeConnectedAccount UpdateBankAccountDetails (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest) -Update bank account details + ### Example ```csharp @@ -425,13 +420,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StripeCustomConnectApi(); - var appId = appId_example; // string | App Name Id - var bankAccountId = 56; // int? | Bank Account Id - var updateRequest = new BankAccountDetailsUpdateRequest(); // BankAccountDetailsUpdateRequest | fields to be updated + var appId = appId_example; // string | + var bankAccountId = 56; // int? | + var updateRequest = new BankAccountDetailsUpdateRequest(); // BankAccountDetailsUpdateRequest | try { - // Update bank account details RestApiResultStripeConnectedAccount result = apiInstance.UpdateBankAccountDetails(appId, bankAccountId, updateRequest); Debug.WriteLine(result); } @@ -448,9 +442,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **bankAccountId** | **int?**| Bank Account Id | - **updateRequest** | [**BankAccountDetailsUpdateRequest**](BankAccountDetailsUpdateRequest.md)| fields to be updated | + **appId** | **string**| | + **bankAccountId** | **int?**| | + **updateRequest** | [**BankAccountDetailsUpdateRequest**](BankAccountDetailsUpdateRequest.md)| | ### Return type @@ -471,7 +465,7 @@ Name | Type | Description | Notes # **UpdatePayoutSchedule** > RestApiResultModelBase UpdatePayoutSchedule (string appId, string stripeConnectedAccountId, string interval) -Update Stripe Connection Account's payout schedule + ### Example ```csharp @@ -497,7 +491,6 @@ namespace Example try { - // Update Stripe Connection Account's payout schedule RestApiResultModelBase result = apiInstance.UpdatePayoutSchedule(appId, stripeConnectedAccountId, interval); Debug.WriteLine(result); } 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/StuartApi.md b/docs/StuartApi.md index b1f185d4..5076606f 100644 --- a/docs/StuartApi.md +++ b/docs/StuartApi.md @@ -4,17 +4,17 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**StuartCancelJob**](StuartApi.md#stuartcanceljob) | **DELETE** /api/v1.0/stuart/jobs/{jobId} | Cancel a stuart job -[**StuartGetJob**](StuartApi.md#stuartgetjob) | **GET** /api/v1.0/stuart/jobs/{jobId} | Get start job details -[**StuartGetStuartSettings**](StuartApi.md#stuartgetstuartsettings) | **GET** /api/v1.0/stuart/settings/{storeId} | Get stuart settings for a store -[**StuartPostStuartSettings**](StuartApi.md#stuartpoststuartsettings) | **POST** /api/v1.0/stuart/settings/{storeId} | Set stuart settings for a store +[**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) -Cancel a stuart job + ### Example ```csharp @@ -34,12 +34,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StuartApi(); - var jobId = 56; // int? | Stuart job identifier - var storeId = 56; // int? | Store identifier + var jobId = 56; // int? | + var storeId = 56; // int? | try { - // Cancel a stuart job Object result = apiInstance.StuartCancelJob(jobId, storeId); Debug.WriteLine(result); } @@ -56,8 +55,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **jobId** | **int?**| Stuart job identifier | - **storeId** | **int?**| Store identifier | + **jobId** | **int?**| | + **storeId** | **int?**| | ### Return type @@ -78,7 +77,7 @@ Name | Type | Description | Notes # **StuartGetJob** > RestApiResultJobResponse StuartGetJob (int? jobId, int? storeId) -Get start job details + ### Example ```csharp @@ -98,12 +97,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StuartApi(); - var jobId = 56; // int? | Stuart job identifier - var storeId = 56; // int? | Store identifier + var jobId = 56; // int? | + var storeId = 56; // int? | try { - // Get start job details RestApiResultJobResponse result = apiInstance.StuartGetJob(jobId, storeId); Debug.WriteLine(result); } @@ -120,8 +118,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **jobId** | **int?**| Stuart job identifier | - **storeId** | **int?**| Store identifier | + **jobId** | **int?**| | + **storeId** | **int?**| | ### Return type @@ -142,7 +140,7 @@ Name | Type | Description | Notes # **StuartGetStuartSettings** > RestApiResultStuartSettings StuartGetStuartSettings (int? storeId) -Get stuart settings for a store + ### Example ```csharp @@ -162,11 +160,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StuartApi(); - var storeId = 56; // int? | Store Identifier + var storeId = 56; // int? | try { - // Get stuart settings for a store RestApiResultStuartSettings result = apiInstance.StuartGetStuartSettings(storeId); Debug.WriteLine(result); } @@ -183,7 +180,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store Identifier | + **storeId** | **int?**| | ### Return type @@ -204,7 +201,7 @@ Name | Type | Description | Notes # **StuartPostStuartSettings** > Object StuartPostStuartSettings (int? storeId, StuartSettings stuartSettings) -Set stuart settings for a store + ### Example ```csharp @@ -224,12 +221,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new StuartApi(); - var storeId = 56; // int? | Store Identifier - var stuartSettings = new StuartSettings(); // StuartSettings | Stuart settings model + var storeId = 56; // int? | + var stuartSettings = new StuartSettings(); // StuartSettings | try { - // Set stuart settings for a store Object result = apiInstance.StuartPostStuartSettings(storeId, stuartSettings); Debug.WriteLine(result); } @@ -246,8 +242,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store Identifier | - **stuartSettings** | [**StuartSettings**](StuartSettings.md)| Stuart settings model | + **storeId** | **int?**| | + **stuartSettings** | [**StuartSettings**](StuartSettings.md)| | ### Return type 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/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 index 7e269a91..f8ca0516 100644 --- a/docs/Teammate.md +++ b/docs/Teammate.md @@ -4,6 +4,7 @@ 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] @@ -12,6 +13,7 @@ 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/TeammateBase.md b/docs/TeammateBase.md index 5ac7f388..7fa11ef9 100644 --- a/docs/TeammateBase.md +++ b/docs/TeammateBase.md @@ -6,6 +6,7 @@ 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 index 9e180888..04f6e559 100644 --- a/docs/TeammateDeletedEvent.md +++ b/docs/TeammateDeletedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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 index 8461c529..bde8241f 100644 --- a/docs/TeammateInviteAcceptedEvent.md +++ b/docs/TeammateInviteAcceptedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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 index 966a69cb..340771aa 100644 --- a/docs/TeammateInviteSentEvent.md +++ b/docs/TeammateInviteSentEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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 index 50ffa87c..ba0c3b41 100644 --- a/docs/TeammateUpdatedEvent.md +++ b/docs/TeammateUpdatedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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 index a434924f..9620d385 100644 --- a/docs/TeammatesApi.md +++ b/docs/TeammatesApi.md @@ -4,19 +4,24 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateTeammate**](TeammatesApi.md#createteammate) | **POST** /api/v1.0/{appId}/teammates | Create teammate and send an invite. -[**DeleteTeammate**](TeammatesApi.md#deleteteammate) | **DELETE** /api/v1.0/{appId}/teammates/{id} | Delete teammate -[**GetTeammateByAppIdAndTeammateId**](TeammatesApi.md#getteammatebyappidandteammateid) | **GET** /api/v1.0/{appId}/teammates/{id} | Get a teammates by email address -[**GetTeammatesByAppId**](TeammatesApi.md#getteammatesbyappid) | **GET** /api/v1.0/{appId}/teammates | Get all teammates -[**RedeemInvitation**](TeammatesApi.md#redeeminvitation) | **GET** /api/v1.0/{appId}/teammates/redeem/{otc} | Redeem one-time code from invitation -[**UpdateTeammate**](TeammatesApi.md#updateteammate) | **POST** /api/v1.0/{appId}/teammates/{id} | Update teammates (this method does not support Deltas!) +[**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) -Create teammate and send an invite. + ### Example ```csharp @@ -36,12 +41,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new TeammatesApi(); - var appId = appId_example; // string | Application identifier - var teammate = new CreateTeammate(); // CreateTeammate | teammate model + var appId = appId_example; // string | + var teammate = new CreateTeammate(); // CreateTeammate | try { - // Create teammate and send an invite. RestApiResultTeammate result = apiInstance.CreateTeammate(appId, teammate); Debug.WriteLine(result); } @@ -58,8 +62,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **teammate** | [**CreateTeammate**](CreateTeammate.md)| teammate model | + **appId** | **string**| | + **teammate** | [**CreateTeammate**](CreateTeammate.md)| | ### Return type @@ -80,7 +84,7 @@ Name | Type | Description | Notes # **DeleteTeammate** > void DeleteTeammate (string appId, string id) -Delete teammate + ### Example ```csharp @@ -105,7 +109,6 @@ namespace Example try { - // Delete teammate apiInstance.DeleteTeammate(appId, id); } catch (Exception e) @@ -143,7 +146,7 @@ void (empty response body) # **GetTeammateByAppIdAndTeammateId** > RestApiResultTeammate GetTeammateByAppIdAndTeammateId (string appId, string id) -Get a teammates by email address + ### Example ```csharp @@ -168,7 +171,6 @@ namespace Example try { - // Get a teammates by email address RestApiResultTeammate result = apiInstance.GetTeammateByAppIdAndTeammateId(appId, id); Debug.WriteLine(result); } @@ -207,7 +209,7 @@ Name | Type | Description | Notes # **GetTeammatesByAppId** > RestApiArrayResultTeammate GetTeammatesByAppId (string appId) -Get all teammates + ### Example ```csharp @@ -231,7 +233,6 @@ namespace Example try { - // Get all teammates RestApiArrayResultTeammate result = apiInstance.GetTeammatesByAppId(appId); Debug.WriteLine(result); } @@ -265,11 +266,74 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) -Redeem one-time code from invitation + ### Example ```csharp @@ -294,7 +358,6 @@ namespace Example try { - // Redeem one-time code from invitation RestApiResultRedeemInvitationResult result = apiInstance.RedeemInvitation(otc, appId); Debug.WriteLine(result); } @@ -329,11 +392,249 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) -Update teammates (this method does not support Deltas!) + ### Example ```csharp @@ -353,13 +654,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new TeammatesApi(); - var appId = appId_example; // string | Application identifier - var id = id_example; // string | teammate identifier - var teammate = new TeammateBase(); // TeammateBase | teammate model + var appId = appId_example; // string | + var id = id_example; // string | + var teammate = new TeammateBase(); // TeammateBase | try { - // Update teammates (this method does not support Deltas!) RestApiResultTeammate result = apiInstance.UpdateTeammate(appId, id, teammate); Debug.WriteLine(result); } @@ -376,9 +676,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **id** | **string**| teammate identifier | - **teammate** | [**TeammateBase**](TeammateBase.md)| teammate model | + **appId** | **string**| | + **id** | **string**| | + **teammate** | [**TeammateBase**](TeammateBase.md)| | ### Return type diff --git a/docs/TelemetrySeriesProperty.md b/docs/TelemetrySeriesProperty.md index dde2af26..6c6c9dd3 100644 --- a/docs/TelemetrySeriesProperty.md +++ b/docs/TelemetrySeriesProperty.md @@ -3,11 +3,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] -**Type** | **string** | | [optional] -**IntValues** | **List<int?>** | | [optional] -**StringValues** | **List<string>** | | [optional] -**DoubleValues** | **List<double?>** | | [optional] +**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 index df974589..356dee07 100644 --- a/docs/TelemetrySeriesQueryParameters.md +++ b/docs/TelemetrySeriesQueryParameters.md @@ -3,10 +3,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**KioskId** | **string** | | [optional] -**Variables** | **List<string>** | | [optional] -**StartDate** | **DateTime?** | | [optional] -**EndDate** | **DateTime?** | | [optional] +**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 index 5e6a3fa4..2cd1ac24 100644 --- a/docs/TelemetrySeriesResult.md +++ b/docs/TelemetrySeriesResult.md @@ -3,8 +3,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Timestamps** | **List<DateTime?>** | | [optional] -**Properties** | [**List<TelemetrySeriesProperty>**](TelemetrySeriesProperty.md) | | [optional] +**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 index 9fe2335c..f2c45000 100644 --- a/docs/TerminalIotApi.md +++ b/docs/TerminalIotApi.md @@ -4,16 +4,14 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetTerminalIotConnection**](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 +[**GetTerminalIotConnection**](TerminalIotApi.md#getterminaliotconnection) | **POST** /api/v1.0/terminaliot/connect | # **GetTerminalIotConnection** > RestApiResultKioskIotConnectionParameters GetTerminalIotConnection () -Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context -[BETA - this endpoint is under development, do not use it in your production system] ### Example ```csharp @@ -36,7 +34,6 @@ namespace Example try { - // Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context RestApiResultKioskIotConnectionParameters result = apiInstance.GetTerminalIotConnection(); Debug.WriteLine(result); } 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/TipsApi.md b/docs/TipsApi.md index 60488131..0bcfacd4 100644 --- a/docs/TipsApi.md +++ b/docs/TipsApi.md @@ -4,15 +4,15 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**TipConfigGet**](TipsApi.md#tipconfigget) | **GET** /api/v1.0/stores/{storeId}/tipconfig | Returns current tip configuration for a store -[**TipConfigUpsert**](TipsApi.md#tipconfigupsert) | **POST** /api/v1.0/stores/{storeId}/tipconfig | Update or insert current tip configuration for a store +[**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) -Returns current tip configuration for a store + ### Example ```csharp @@ -32,11 +32,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new TipsApi(); - var storeId = 56; // int? | Store Id + var storeId = 56; // int? | try { - // Returns current tip configuration for a store RestApiResultTipConfiguration result = apiInstance.TipConfigGet(storeId); Debug.WriteLine(result); } @@ -53,7 +52,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store Id | + **storeId** | **int?**| | ### Return type @@ -74,7 +73,7 @@ Name | Type | Description | Notes # **TipConfigUpsert** > RestApiResultTipConfiguration TipConfigUpsert (int? storeId, UpdateTipConfiguration updateConfig) -Update or insert current tip configuration for a store + ### Example ```csharp @@ -94,12 +93,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new TipsApi(); - var storeId = 56; // int? | Store Id - var updateConfig = new UpdateTipConfiguration(); // UpdateTipConfiguration | Update Configuration + var storeId = 56; // int? | + var updateConfig = new UpdateTipConfiguration(); // UpdateTipConfiguration | try { - // Update or insert current tip configuration for a store RestApiResultTipConfiguration result = apiInstance.TipConfigUpsert(storeId, updateConfig); Debug.WriteLine(result); } @@ -116,8 +114,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **storeId** | **int?**| Store Id | - **updateConfig** | [**UpdateTipConfiguration**](UpdateTipConfiguration.md)| Update Configuration | + **storeId** | **int?**| | + **updateConfig** | [**UpdateTipConfiguration**](UpdateTipConfiguration.md)| | ### Return type 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 index 2357a7a5..ded11e5c 100644 --- a/docs/UpdateAppStoreApp.md +++ b/docs/UpdateAppStoreApp.md @@ -3,21 +3,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Details** | **string** | Details | -**ConfigurationType** | **string** | Configuration type <example>External link</example><example>Flipdish hosted</example> | -**StoreSelectorType** | **string** | Store selector type | -**FieldGroups** | [**List<FieldGroup>**](FieldGroup.md) | Field groups | [optional] -**SetupInstructions** | **string** | Setup instructions | [optional] -**ExternalSetupLink** | **string** | External setup link | [optional] -**TeammateAppAccessLevel** | **string** | Teammate app access level | [optional] -**PermissionsType** | **string** | Permissions type | -**Support** | [**AppStoreAppSupportInfo**](AppStoreAppSupportInfo.md) | Support information | [optional] -**Name** | **string** | Name | -**Description** | **string** | Description | -**IsEnabled** | **bool?** | Is application enabled | [optional] -**Categories** | **List<string>** | Categories | -**Countries** | **List<string>** | Countries | -**DeveloperName** | **string** | Developer Name | [optional] +**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 index 43189b30..870645bb 100644 --- a/docs/UpdateAppStoreAppConfiguration.md +++ b/docs/UpdateAppStoreAppConfiguration.md @@ -3,9 +3,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**IsEnabled** | **bool?** | Is enabled | -**StoreIds** | **List<int?>** | Stores id's | [optional] -**Settings** | [**List<Setting>**](Setting.md) | Settings | [optional] +**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/RequestLoginPinResposne.md b/docs/UpdateAppStoreAppConfigurationValuesBatch.md similarity index 67% rename from docs/RequestLoginPinResposne.md rename to docs/UpdateAppStoreAppConfigurationValuesBatch.md index 72355056..f94aa2de 100644 --- a/docs/RequestLoginPinResposne.md +++ b/docs/UpdateAppStoreAppConfigurationValuesBatch.md @@ -1,9 +1,9 @@ -# Flipdish.Model.RequestLoginPinResposne +# Flipdish.Model.UpdateAppStoreAppConfigurationValuesBatch ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LoginPinSentViaEmail** | **bool?** | Login PIN sent via email to user | [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/UpdateAppStoreAppConfigurationWebhookDTO.md b/docs/UpdateAppStoreAppConfigurationWebhookDTO.md index 2b96aaf7..7d72a549 100644 --- a/docs/UpdateAppStoreAppConfigurationWebhookDTO.md +++ b/docs/UpdateAppStoreAppConfigurationWebhookDTO.md @@ -3,10 +3,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | Unique App store app configuration id | -**IsEnabled** | **bool?** | Is enabled | -**StoreIds** | **List<int?>** | Store id's | [optional] -**Settings** | [**List<Setting>**](Setting.md) | Settings | [optional] +**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/UpdateFulfillmentStatesConfiguration.md b/docs/UpdateFulfillmentStatesConfiguration.md index 5d75c753..55e44848 100644 --- a/docs/UpdateFulfillmentStatesConfiguration.md +++ b/docs/UpdateFulfillmentStatesConfiguration.md @@ -3,9 +3,11 @@ 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/UpdatePayGreenConfigurationRequest.md b/docs/UpdatePayGreenConfigurationRequest.md index 9fc883a4..f2cfb0a1 100644 --- a/docs/UpdatePayGreenConfigurationRequest.md +++ b/docs/UpdatePayGreenConfigurationRequest.md @@ -3,8 +3,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] -**AssignedStores** | **List<int?>** | | [optional] +**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/UpdateStorePayGreenConfigurationRequest.md b/docs/UpdateStorePayGreenConfigurationRequest.md index aa8e501f..55aaada6 100644 --- a/docs/UpdateStorePayGreenConfigurationRequest.md +++ b/docs/UpdateStorePayGreenConfigurationRequest.md @@ -3,8 +3,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Active** | **bool?** | | [optional] -**PayGreenConfigurationId** | **int?** | | [optional] +**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/VoucherBase.md b/docs/UpdateVoucher.md similarity index 54% rename from docs/VoucherBase.md rename to docs/UpdateVoucher.md index 4d598306..08a26a10 100644 --- a/docs/VoucherBase.md +++ b/docs/UpdateVoucher.md @@ -1,10 +1,14 @@ -# Flipdish.Model.VoucherBase +# 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] @@ -17,8 +21,16 @@ Name | Type | Description | Notes **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 index c53a1f20..8d5c6389 100644 --- a/docs/UserAnsweredSignupQuestionsEvent.md +++ b/docs/UserAnsweredSignupQuestionsEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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 index 16f72887..0ad10736 100644 --- a/docs/UserCreatedEvent.md +++ b/docs/UserCreatedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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 index 5171727d..af09e8c7 100644 --- a/docs/UserDeletedEvent.md +++ b/docs/UserDeletedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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/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 index dbb88e5a..de2dee6e 100644 --- a/docs/UserLoginEvent.md +++ b/docs/UserLoginEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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 index b179334a..3f651663 100644 --- a/docs/UserPasswordCreatedEvent.md +++ b/docs/UserPasswordCreatedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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/StripeTerminalPrivateKey.md b/docs/UserRole.md similarity index 59% rename from docs/StripeTerminalPrivateKey.md rename to docs/UserRole.md index 895b3e01..fb6d87e5 100644 --- a/docs/StripeTerminalPrivateKey.md +++ b/docs/UserRole.md @@ -1,10 +1,10 @@ -# Flipdish.Model.StripeTerminalPrivateKey +# Flipdish.Model.UserRole ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Location** | **string** | Registered location of the terminal | [optional] -**Secret** | **string** | Secret used to pass to stripe to attach terminal | [optional] +**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/StoreChannelStoreMapping.md b/docs/UserStoreInfo.md similarity index 66% rename from docs/StoreChannelStoreMapping.md rename to docs/UserStoreInfo.md index 8be13c15..1a84f727 100644 --- a/docs/StoreChannelStoreMapping.md +++ b/docs/UserStoreInfo.md @@ -1,11 +1,11 @@ -# Flipdish.Model.StoreChannelStoreMapping +# Flipdish.Model.UserStoreInfo ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ChannelId** | **int?** | Channel Id | [optional] +**PropertyId** | **string** | Property Id | [optional] **StoreId** | **int?** | Store Id | [optional] -**ChannelStoreId** | **string** | Channel 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 index 6d7a825e..98b9b218 100644 --- a/docs/UserUpdatedEvent.md +++ b/docs/UserUpdatedEvent.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes **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 index 9385dad9..57745a8d 100644 --- a/docs/UsersApi.md +++ b/docs/UsersApi.md @@ -4,10 +4,351 @@ 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} | -[**GetRoles**](UsersApi.md#getroles) | **GET** /api/v1.0/users/roles | Get role names +[**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) @@ -24,7 +365,1318 @@ using Flipdish.Model; namespace Example { - public class GetPreviousOrderCountForStoreExample + 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() { @@ -33,16 +1685,16 @@ namespace Example var apiInstance = new UsersApi(); var userId = 56; // int? | - var storeId = 56; // int? | + var customerName = customerName_example; // string | try { - RestApiStringResult result = apiInstance.GetPreviousOrderCountForStore(userId, storeId); + RestApiDefaultResponse result = apiInstance.SetCustomerName(userId, customerName); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling UsersApi.GetPreviousOrderCountForStore: " + e.Message ); + Debug.Print("Exception when calling UsersApi.SetCustomerName: " + e.Message ); } } } @@ -54,11 +1706,74 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **userId** | **int?**| | - **storeId** | **int?**| | + **customerName** | **string**| | ### Return type -[**RestApiStringResult**](RestApiStringResult.md) +[**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 @@ -71,11 +1786,11 @@ Name | Type | Description | Notes [[Back to top]](#) [[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 () + +# **SetUserDeliveryLocationCoordinates** +> RestApiDefaultResponse SetUserDeliveryLocationCoordinates (int? userId, int? deliveryLocationId, SetUserDeliveryLocationCoordinatesRequest request) + -Get role names ### Example ```csharp @@ -87,7 +1802,7 @@ using Flipdish.Model; namespace Example { - public class GetRolesExample + public class SetUserDeliveryLocationCoordinatesExample { public void main() { @@ -95,16 +1810,18 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new UsersApi(); + var userId = 56; // int? | + var deliveryLocationId = 56; // int? | + var request = new SetUserDeliveryLocationCoordinatesRequest(); // SetUserDeliveryLocationCoordinatesRequest | try { - // Get role names - RestApiStringArrayResult result = apiInstance.GetRoles(); + RestApiDefaultResponse result = apiInstance.SetUserDeliveryLocationCoordinates(userId, deliveryLocationId, request); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling UsersApi.GetRoles: " + e.Message ); + Debug.Print("Exception when calling UsersApi.SetUserDeliveryLocationCoordinates: " + e.Message ); } } } @@ -112,11 +1829,205 @@ namespace Example ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **int?**| | + **deliveryLocationId** | **int?**| | + **request** | [**SetUserDeliveryLocationCoordinatesRequest**](SetUserDeliveryLocationCoordinatesRequest.md)| | ### Return type -[**RestApiStringArrayResult**](RestApiStringArrayResult.md) +[**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 diff --git a/docs/ValidValue.md b/docs/ValidValue.md index 3aedab11..bb770351 100644 --- a/docs/ValidValue.md +++ b/docs/ValidValue.md @@ -3,8 +3,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **string** | Code | -**Name** | **string** | Name | +**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/DriverStore.md b/docs/ValidityPeriod.md similarity index 59% rename from docs/DriverStore.md rename to docs/ValidityPeriod.md index 79fde2f9..43fc9cbd 100644 --- a/docs/DriverStore.md +++ b/docs/ValidityPeriod.md @@ -1,11 +1,11 @@ -# Flipdish.Model.DriverStore +# Flipdish.Model.ValidityPeriod ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**StoreId** | **int?** | Store identifier | [optional] -**StoreName** | **string** | Store name | [optional] -**Presence** | **string** | Presence | [optional] +**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 index 40ad9793..90fd082a 100644 --- a/docs/Voucher.md +++ b/docs/Voucher.md @@ -6,16 +6,15 @@ Name | Type | Description | Notes **VoucherId** | **int?** | Voucher Id | [optional] **Status** | **string** | Voucher Status | [optional] **VoucherType** | **string** | Voucher Type | [optional] -**VoucherSubType** | **string** | Voucher Sub Type | [optional] **Currency** | **string** | Currency of the voucher | [optional] -**Stores** | **List<int?>** | Stores that this voucher applies to | [optional] **StoreNames** | **List<string>** | Stores that this voucher applies to | [optional] -**AddItemDetails** | [**AddItemDetails**](AddItemDetails.md) | Add item details | [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] @@ -28,8 +27,16 @@ Name | Type | Description | Notes **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 index 427b8ae2..f2ca1081 100644 --- a/docs/VoucherCreatedEvent.md +++ b/docs/VoucherCreatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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/VoucherDeletedEvent.md b/docs/VoucherDeletedEvent.md index c6c98fe6..10c86004 100644 --- a/docs/VoucherDeletedEvent.md +++ b/docs/VoucherDeletedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index fe87e6e6..d597a41f 100644 --- a/docs/VoucherSummary.md +++ b/docs/VoucherSummary.md @@ -10,6 +10,10 @@ Name | Type | Description | Notes **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 index 44d97a28..4324a388 100644 --- a/docs/VoucherUpdatedEvent.md +++ b/docs/VoucherUpdatedEvent.md @@ -12,7 +12,10 @@ Name | Type | Description | Notes **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 index 3eb21a4e..c8e0d26e 100644 --- a/docs/VoucherWithStats.md +++ b/docs/VoucherWithStats.md @@ -11,16 +11,15 @@ Name | Type | Description | Notes **VoucherId** | **int?** | Voucher Id | [optional] **Status** | **string** | Voucher Status | [optional] **VoucherType** | **string** | Voucher Type | [optional] -**VoucherSubType** | **string** | Voucher Sub Type | [optional] **Currency** | **string** | Currency of the voucher | [optional] -**Stores** | **List<int?>** | Stores that this voucher applies to | [optional] **StoreNames** | **List<string>** | Stores that this voucher applies to | [optional] -**AddItemDetails** | [**AddItemDetails**](AddItemDetails.md) | Add item details | [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] @@ -33,8 +32,16 @@ Name | Type | Description | Notes **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 index 3d02077c..887749a2 100644 --- a/docs/VouchersApi.md +++ b/docs/VouchersApi.md @@ -4,18 +4,23 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateVoucher**](VouchersApi.md#createvoucher) | **POST** /api/v1.0/vouchers/{appId} | [PRIVATE API] Create voucher -[**GetVoucherById**](VouchersApi.md#getvoucherbyid) | **GET** /api/v1.0/vouchers/{voucherId} | [PRIVATE API] Get voucher by identifier -[**GetVoucherStatsById**](VouchersApi.md#getvoucherstatsbyid) | **GET** /api/v1.0/vouchers/stats/{voucherId} | [PRIVATE API] Get voucher stats by identifier -[**GetVouchers**](VouchersApi.md#getvouchers) | **GET** /api/v1.0/{appId}/vouchers/summaries | [PRIVATE API] Get vouchers summaries for App Id -[**UpdateVoucher**](VouchersApi.md#updatevoucher) | **POST** /api/v1.0/vouchers/{voucherId} | [PRIVATE API] Updates voucher +[**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) -[PRIVATE API] Create voucher + ### Example ```csharp @@ -35,12 +40,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new VouchersApi(); - var appId = appId_example; // string | App Name Id - var voucher = new CreateVoucher(); // CreateVoucher | Voucher Details + var appId = appId_example; // string | + var voucher = new CreateVoucher(); // CreateVoucher | try { - // [PRIVATE API] Create voucher RestApiResultVoucherWithStats result = apiInstance.CreateVoucher(appId, voucher); Debug.WriteLine(result); } @@ -57,8 +61,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| App Name Id | - **voucher** | [**CreateVoucher**](CreateVoucher.md)| Voucher Details | + **appId** | **string**| | + **voucher** | [**CreateVoucher**](CreateVoucher.md)| | ### Return type @@ -75,11 +79,74 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) -[PRIVATE API] Get voucher by identifier + ### Example ```csharp @@ -99,11 +166,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new VouchersApi(); - var voucherId = 56; // int? | Id of the voucher + var voucherId = 56; // int? | try { - // [PRIVATE API] Get voucher by identifier RestApiResultVoucherWithStats result = apiInstance.GetVoucherById(voucherId); Debug.WriteLine(result); } @@ -120,7 +186,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **voucherId** | **int?**| Id of the voucher | + **voucherId** | **int?**| | ### Return type @@ -141,7 +207,7 @@ Name | Type | Description | Notes # **GetVoucherStatsById** > RestApiArrayResultVoucherDataPoint GetVoucherStatsById (int? voucherId, string aggregateDataBy, int? dataPointLimit = null) -[PRIVATE API] Get voucher stats by identifier + ### Example ```csharp @@ -161,13 +227,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new VouchersApi(); - var voucherId = 56; // int? | Id of the voucher - var aggregateDataBy = aggregateDataBy_example; // string | Aggregate data by day \\ week \\ month - var dataPointLimit = 56; // int? | Amount of data points per request (optional) + var voucherId = 56; // int? | + var aggregateDataBy = aggregateDataBy_example; // string | + var dataPointLimit = 56; // int? | (optional) try { - // [PRIVATE API] Get voucher stats by identifier RestApiArrayResultVoucherDataPoint result = apiInstance.GetVoucherStatsById(voucherId, aggregateDataBy, dataPointLimit); Debug.WriteLine(result); } @@ -184,9 +249,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **voucherId** | **int?**| Id of the voucher | - **aggregateDataBy** | **string**| Aggregate data by day \\ week \\ month | - **dataPointLimit** | **int?**| Amount of data points per request | [optional] + **voucherId** | **int?**| | + **aggregateDataBy** | **string**| | + **dataPointLimit** | **int?**| | [optional] ### Return type @@ -203,11 +268,73 @@ Name | Type | Description | Notes [[Back to top]](#) [[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) +> 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) + -[PRIVATE API] Get vouchers summaries for App Id ### Example ```csharp @@ -227,19 +354,19 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new VouchersApi(); - var appId = appId_example; // string | Application Id - var pageIndex = 56; // int? | Page Number (optional) - var pageSize = 56; // int? | Page Size (optional) - var searchCodes = new List(); // List | Search by Voucher Code\\s (optional) - var statusSearch = statusSearch_example; // List | Search by Status (optional) - var typeSearch = typeSearch_example; // List | Search by Type (optional) - var subTypeSearch = subTypeSearch_example; // List | Search by Sub Type (optional) - var storeIds = new List(); // List | Search by Store Ids (optional) + 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 { - // [PRIVATE API] Get vouchers summaries for App Id - RestApiPaginationResultVoucherSummary result = apiInstance.GetVouchers(appId, pageIndex, pageSize, searchCodes, statusSearch, typeSearch, subTypeSearch, storeIds); + RestApiPaginationResultVoucherSummary result = apiInstance.GetVouchers(appId, pageIndex, pageSize, searchCodes, statusSearch, typeSearch, subTypeSearch, storeIds, channelRestrictions); Debug.WriteLine(result); } catch (Exception e) @@ -255,14 +382,15 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application Id | - **pageIndex** | **int?**| Page Number | [optional] - **pageSize** | **int?**| Page Size | [optional] - **searchCodes** | [**List<string>**](string.md)| Search by Voucher Code\\s | [optional] - **statusSearch** | **List<string>**| Search by Status | [optional] - **typeSearch** | **List<string>**| Search by Type | [optional] - **subTypeSearch** | **List<string>**| Search by Sub Type | [optional] - **storeIds** | [**List<int?>**](int?.md)| Search by Store Ids | [optional] + **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 @@ -279,11 +407,138 @@ Name | Type | Description | Notes [[Back to top]](#) [[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, VoucherBase voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, int? freeItemId = null) +> RestApiResultVoucherWithStats UpdateVoucher (int? voucherId, UpdateVoucher voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, double? maxDiscountAmount = null) + -[PRIVATE API] Updates voucher ### Example ```csharp @@ -303,17 +558,16 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new VouchersApi(); - var voucherId = 56; // int? | Id of the voucher - var voucher = new VoucherBase(); // VoucherBase | Updated details for the voucher + var voucherId = 56; // int? | + var voucher = new UpdateVoucher(); // UpdateVoucher | var storeId = new List(); // List | (optional) - var percentValue = 56; // int? | Percent voucher value (can have 1 of 3) (optional) - var lumpValue = 1.2; // double? | Lump voucher value (can have 1 of 3) (optional) - var freeItemId = 56; // int? | Free Item Id (can have 1 of 3) (optional) + var percentValue = 56; // int? | (optional) + var lumpValue = 1.2; // double? | (optional) + var maxDiscountAmount = 1.2; // double? | (optional) try { - // [PRIVATE API] Updates voucher - RestApiResultVoucherWithStats result = apiInstance.UpdateVoucher(voucherId, voucher, storeId, percentValue, lumpValue, freeItemId); + RestApiResultVoucherWithStats result = apiInstance.UpdateVoucher(voucherId, voucher, storeId, percentValue, lumpValue, maxDiscountAmount); Debug.WriteLine(result); } catch (Exception e) @@ -329,12 +583,12 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **voucherId** | **int?**| Id of the voucher | - **voucher** | [**VoucherBase**](VoucherBase.md)| Updated details for the voucher | + **voucherId** | **int?**| | + **voucher** | [**UpdateVoucher**](UpdateVoucher.md)| | **storeId** | [**List<int?>**](int?.md)| | [optional] - **percentValue** | **int?**| Percent voucher value (can have 1 of 3) | [optional] - **lumpValue** | **double?**| Lump voucher value (can have 1 of 3) | [optional] - **freeItemId** | **int?**| Free Item Id (can have 1 of 3) | [optional] + **percentValue** | **int?**| | [optional] + **lumpValue** | **double?**| | [optional] + **maxDiscountAmount** | **double?**| | [optional] ### Return type @@ -351,3 +605,67 @@ Name | Type | Description | Notes [[Back to top]](#) [[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/WebhookSubscriptionCreatedEvent.md b/docs/WebhookSubscriptionCreatedEvent.md index 2d37be74..86369e91 100644 --- a/docs/WebhookSubscriptionCreatedEvent.md +++ b/docs/WebhookSubscriptionCreatedEvent.md @@ -9,7 +9,10 @@ Name | Type | Description | Notes **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 index 764b72ec..8743f89c 100644 --- a/docs/WebhookSubscriptionDeletedEvent.md +++ b/docs/WebhookSubscriptionDeletedEvent.md @@ -9,7 +9,10 @@ Name | Type | Description | Notes **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/WebhookSubscriptionUpdatedEvent.md b/docs/WebhookSubscriptionUpdatedEvent.md index 44dab5ba..f818f2dc 100644 --- a/docs/WebhookSubscriptionUpdatedEvent.md +++ b/docs/WebhookSubscriptionUpdatedEvent.md @@ -9,7 +9,10 @@ Name | Type | Description | Notes **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 index b76619ea..5f1deede 100644 --- a/docs/WebhooksApi.md +++ b/docs/WebhooksApi.md @@ -4,23 +4,23 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CraeteWebhookSubscription**](WebhooksApi.md#craetewebhooksubscription) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | Create a webhook subscription for you Oauth App -[**CreateWebhookSubscriptionEventNames**](WebhooksApi.md#createwebhooksubscriptioneventnames) | **POST** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | Add event name to your webhook subscription -[**DeleteWebhookSubscription**](WebhooksApi.md#deletewebhooksubscription) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | Delete you webhook subscription -[**DeleteWebhookSubscriptionEventName**](WebhooksApi.md#deletewebhooksubscriptioneventname) | **DELETE** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName} | Remove event name to your webhook subscription -[**GetWebhookEventNames**](WebhooksApi.md#getwebhookeventnames) | **GET** /api/v1.0/{appId}/webhooks/events | Get all webhook subscription event names -[**GetWebhookEventNamesBySubscriptionId**](WebhooksApi.md#getwebhookeventnamesbysubscriptionid) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events | Get your webhook subscriptions selected event names -[**GetWebhookEventSample**](WebhooksApi.md#getwebhookeventsample) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/events/{eventName}/test | Get a sample event from a webhook subscription -[**GetWebhookLogs**](WebhooksApi.md#getwebhooklogs) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId}/logs | Get logs for your webhook subscription -[**GetWebhookSubscriptions**](WebhooksApi.md#getwebhooksubscriptions) | **GET** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions | Get all webhook subscriptions by your Oauth App id -[**UpdateWebhookSubscription**](WebhooksApi.md#updatewebhooksubscription) | **PUT** /api/v1.0/{appId}/webhooks/{oauthAppId}/subscriptions/{webhookSubscriptionId} | Update a webhook subscription object +[**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} | - -# **CraeteWebhookSubscription** -> RestApiIntegerResult CraeteWebhookSubscription (string oauthAppId, WebhookSubscription webhookSubscription, string appId) + +# **CreateWebhookSubscription** +> RestApiIntegerResult CreateWebhookSubscription (string oauthAppId, WebhookSubscription webhookSubscription, string appId) + -Create a webhook subscription for you Oauth App ### Example ```csharp @@ -32,7 +32,7 @@ using Flipdish.Model; namespace Example { - public class CraeteWebhookSubscriptionExample + public class CreateWebhookSubscriptionExample { public void main() { @@ -40,19 +40,18 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebhooksApi(); - var oauthAppId = oauthAppId_example; // string | Oauth App identifier - var webhookSubscription = new WebhookSubscription(); // WebhookSubscription | Webhook subscription object + var oauthAppId = oauthAppId_example; // string | + var webhookSubscription = new WebhookSubscription(); // WebhookSubscription | var appId = appId_example; // string | try { - // Create a webhook subscription for you Oauth App - RestApiIntegerResult result = apiInstance.CraeteWebhookSubscription(oauthAppId, webhookSubscription, appId); + RestApiIntegerResult result = apiInstance.CreateWebhookSubscription(oauthAppId, webhookSubscription, appId); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling WebhooksApi.CraeteWebhookSubscription: " + e.Message ); + Debug.Print("Exception when calling WebhooksApi.CreateWebhookSubscription: " + e.Message ); } } } @@ -63,8 +62,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| Oauth App identifier | - **webhookSubscription** | [**WebhookSubscription**](WebhookSubscription.md)| Webhook subscription object | + **oauthAppId** | **string**| | + **webhookSubscription** | [**WebhookSubscription**](WebhookSubscription.md)| | **appId** | **string**| | ### Return type @@ -86,7 +85,7 @@ Name | Type | Description | Notes # **CreateWebhookSubscriptionEventNames** > void CreateWebhookSubscriptionEventNames (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) -Add event name to your webhook subscription + ### Example ```csharp @@ -106,14 +105,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebhooksApi(); - var oauthAppId = oauthAppId_example; // string | Oauth App identifier - var webhookSubscriptionId = 56; // int? | Webhook subscription identifier - var eventName = eventName_example; // string | Webhook subscription event name + var oauthAppId = oauthAppId_example; // string | + var webhookSubscriptionId = 56; // int? | + var eventName = eventName_example; // string | var appId = appId_example; // string | try { - // Add event name to your webhook subscription apiInstance.CreateWebhookSubscriptionEventNames(oauthAppId, webhookSubscriptionId, eventName, appId); } catch (Exception e) @@ -129,9 +127,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| Oauth App identifier | - **webhookSubscriptionId** | **int?**| Webhook subscription identifier | - **eventName** | **string**| Webhook subscription event name | + **oauthAppId** | **string**| | + **webhookSubscriptionId** | **int?**| | + **eventName** | **string**| | **appId** | **string**| | ### Return type @@ -153,7 +151,7 @@ void (empty response body) # **DeleteWebhookSubscription** > void DeleteWebhookSubscription (string oauthAppId, int? webhookSubscriptionId, string appId) -Delete you webhook subscription + ### Example ```csharp @@ -173,13 +171,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebhooksApi(); - var oauthAppId = oauthAppId_example; // string | Oauth App identifier - var webhookSubscriptionId = 56; // int? | Webhook subscription identifier + var oauthAppId = oauthAppId_example; // string | + var webhookSubscriptionId = 56; // int? | var appId = appId_example; // string | try { - // Delete you webhook subscription apiInstance.DeleteWebhookSubscription(oauthAppId, webhookSubscriptionId, appId); } catch (Exception e) @@ -195,8 +192,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| Oauth App identifier | - **webhookSubscriptionId** | **int?**| Webhook subscription identifier | + **oauthAppId** | **string**| | + **webhookSubscriptionId** | **int?**| | **appId** | **string**| | ### Return type @@ -218,7 +215,7 @@ void (empty response body) # **DeleteWebhookSubscriptionEventName** > void DeleteWebhookSubscriptionEventName (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) -Remove event name to your webhook subscription + ### Example ```csharp @@ -238,14 +235,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebhooksApi(); - var oauthAppId = oauthAppId_example; // string | Oauth App identifier - var webhookSubscriptionId = 56; // int? | Webhook subscription identifier - var eventName = eventName_example; // string | Webhook subscription event name + var oauthAppId = oauthAppId_example; // string | + var webhookSubscriptionId = 56; // int? | + var eventName = eventName_example; // string | var appId = appId_example; // string | try { - // Remove event name to your webhook subscription apiInstance.DeleteWebhookSubscriptionEventName(oauthAppId, webhookSubscriptionId, eventName, appId); } catch (Exception e) @@ -261,9 +257,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| Oauth App identifier | - **webhookSubscriptionId** | **int?**| Webhook subscription identifier | - **eventName** | **string**| Webhook subscription event name | + **oauthAppId** | **string**| | + **webhookSubscriptionId** | **int?**| | + **eventName** | **string**| | **appId** | **string**| | ### Return type @@ -285,7 +281,7 @@ void (empty response body) # **GetWebhookEventNames** > RestApiStringArrayResult GetWebhookEventNames (string appId) -Get all webhook subscription event names + ### Example ```csharp @@ -309,7 +305,6 @@ namespace Example try { - // Get all webhook subscription event names RestApiStringArrayResult result = apiInstance.GetWebhookEventNames(appId); Debug.WriteLine(result); } @@ -347,7 +342,7 @@ Name | Type | Description | Notes # **GetWebhookEventNamesBySubscriptionId** > RestApiStringArrayResult GetWebhookEventNamesBySubscriptionId (string oauthAppId, int? webhookSubscriptionId, string appId) -Get your webhook subscriptions selected event names + ### Example ```csharp @@ -367,13 +362,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebhooksApi(); - var oauthAppId = oauthAppId_example; // string | Oauth App identifier - var webhookSubscriptionId = 56; // int? | Webhook subscription identifier + var oauthAppId = oauthAppId_example; // string | + var webhookSubscriptionId = 56; // int? | var appId = appId_example; // string | try { - // Get your webhook subscriptions selected event names RestApiStringArrayResult result = apiInstance.GetWebhookEventNamesBySubscriptionId(oauthAppId, webhookSubscriptionId, appId); Debug.WriteLine(result); } @@ -390,8 +384,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| Oauth App identifier | - **webhookSubscriptionId** | **int?**| Webhook subscription identifier | + **oauthAppId** | **string**| | + **webhookSubscriptionId** | **int?**| | **appId** | **string**| | ### Return type @@ -413,7 +407,7 @@ Name | Type | Description | Notes # **GetWebhookEventSample** > WebhookEventSample GetWebhookEventSample (string eventName, string appId, string oauthAppId, string webhookSubscriptionId, string version = null) -Get a sample event from a webhook subscription + ### Example ```csharp @@ -441,7 +435,6 @@ namespace Example try { - // Get a sample event from a webhook subscription WebhookEventSample result = apiInstance.GetWebhookEventSample(eventName, appId, oauthAppId, webhookSubscriptionId, version); Debug.WriteLine(result); } @@ -483,7 +476,7 @@ Name | Type | Description | Notes # **GetWebhookLogs** > RestApiPaginationResultWebhookLog GetWebhookLogs (string oauthAppId, int? webhookSubscriptionId, DateTime? start, DateTime? end, string appId, int? page = null, int? limit = null) -Get logs for your webhook subscription + ### Example ```csharp @@ -503,17 +496,16 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebhooksApi(); - var oauthAppId = oauthAppId_example; // string | Oauth App identifier - var webhookSubscriptionId = 56; // int? | Webhook subscription identifier - var start = 2013-10-20T19:20:30+01:00; // DateTime? | Start time - var end = 2013-10-20T19:20:30+01:00; // DateTime? | End time + 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? | Page number (optional) - var limit = 56; // int? | Page size (optional) + var page = 56; // int? | (optional) + var limit = 56; // int? | (optional) try { - // Get logs for your webhook subscription RestApiPaginationResultWebhookLog result = apiInstance.GetWebhookLogs(oauthAppId, webhookSubscriptionId, start, end, appId, page, limit); Debug.WriteLine(result); } @@ -530,13 +522,13 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| Oauth App identifier | - **webhookSubscriptionId** | **int?**| Webhook subscription identifier | - **start** | **DateTime?**| Start time | - **end** | **DateTime?**| End time | + **oauthAppId** | **string**| | + **webhookSubscriptionId** | **int?**| | + **start** | **DateTime?**| | + **end** | **DateTime?**| | **appId** | **string**| | - **page** | **int?**| Page number | [optional] - **limit** | **int?**| Page size | [optional] + **page** | **int?**| | [optional] + **limit** | **int?**| | [optional] ### Return type @@ -557,7 +549,7 @@ Name | Type | Description | Notes # **GetWebhookSubscriptions** > RestApiPaginationResultWebhookSubscription GetWebhookSubscriptions (string oauthAppId, string appId, int? page = null, int? limit = null) -Get all webhook subscriptions by your Oauth App id + ### Example ```csharp @@ -577,14 +569,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebhooksApi(); - var oauthAppId = oauthAppId_example; // string | Oauth App identifier + var oauthAppId = oauthAppId_example; // string | var appId = appId_example; // string | var page = 56; // int? | (optional) var limit = 56; // int? | (optional) try { - // Get all webhook subscriptions by your Oauth App id RestApiPaginationResultWebhookSubscription result = apiInstance.GetWebhookSubscriptions(oauthAppId, appId, page, limit); Debug.WriteLine(result); } @@ -601,7 +592,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| Oauth App identifier | + **oauthAppId** | **string**| | **appId** | **string**| | **page** | **int?**| | [optional] **limit** | **int?**| | [optional] @@ -625,7 +616,7 @@ Name | Type | Description | Notes # **UpdateWebhookSubscription** > void UpdateWebhookSubscription (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId) -Update a webhook subscription object + ### Example ```csharp @@ -645,14 +636,13 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebhooksApi(); - var oauthAppId = oauthAppId_example; // string | Oauth App identifier - var webhookSubscriptionId = 56; // int? | Webhook subscription identifier - var webhookSubscription = new WebhookSubscription(); // WebhookSubscription | Webhook subscription object + var oauthAppId = oauthAppId_example; // string | + var webhookSubscriptionId = 56; // int? | + var webhookSubscription = new WebhookSubscription(); // WebhookSubscription | var appId = appId_example; // string | try { - // Update a webhook subscription object apiInstance.UpdateWebhookSubscription(oauthAppId, webhookSubscriptionId, webhookSubscription, appId); } catch (Exception e) @@ -668,9 +658,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oauthAppId** | **string**| Oauth App identifier | - **webhookSubscriptionId** | **int?**| Webhook subscription identifier | - **webhookSubscription** | [**WebhookSubscription**](WebhookSubscription.md)| Webhook subscription object | + **oauthAppId** | **string**| | + **webhookSubscriptionId** | **int?**| | + **webhookSubscription** | [**WebhookSubscription**](WebhookSubscription.md)| | **appId** | **string**| | ### Return type diff --git a/docs/WebsiteApi.md b/docs/WebsiteApi.md index 78ec3b67..ff31378d 100644 --- a/docs/WebsiteApi.md +++ b/docs/WebsiteApi.md @@ -4,21 +4,21 @@ All URIs are relative to *https://api.flipdish.co* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AddTestimonial**](WebsiteApi.md#addtestimonial) | **POST** /api/v1.0/{appId}/website/testimonial | Add a testimonial -[**DeleteTestimonial**](WebsiteApi.md#deletetestimonial) | **DELETE** /api/v1.0/{appId}/website/testimonial/{testimonialId} | Delete a testimonial -[**DeleteWebsiteImage**](WebsiteApi.md#deletewebsiteimage) | **DELETE** /api/v1.0/{appId}/website/image/{imageId} | Delete Website Image -[**EditTestimonial**](WebsiteApi.md#edittestimonial) | **POST** /api/v1.0/{appId}/website/testimonial/{testimonialId} | Edit a testimonial -[**GetIndexConfiguration**](WebsiteApi.md#getindexconfiguration) | **GET** /api/v1.0/{appId}/website/index | Get Index Configuration -[**SetIndexConfiguration**](WebsiteApi.md#setindexconfiguration) | **POST** /api/v1.0/{appId}/website/index | Set Index Configuration -[**UploadWebsiteImage**](WebsiteApi.md#uploadwebsiteimage) | **POST** /api/v1.0/{appId}/website/image/{imageLocation} | Upload Website Image -[**WebsiteCheckNow**](WebsiteApi.md#websitechecknow) | **GET** /api/v1.0/{appId}/website/dnscheck | Triggers a Check DNS Process +[**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) -Add a testimonial + ### Example ```csharp @@ -38,12 +38,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebsiteApi(); - var appId = appId_example; // string | Application identifier - var testimonial = new WebsiteTestimonialBase(); // WebsiteTestimonialBase | Testimonial to be added + var appId = appId_example; // string | + var testimonial = new WebsiteTestimonialBase(); // WebsiteTestimonialBase | try { - // Add a testimonial RestApiResultWebsiteTestimonial result = apiInstance.AddTestimonial(appId, testimonial); Debug.WriteLine(result); } @@ -60,8 +59,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **testimonial** | [**WebsiteTestimonialBase**](WebsiteTestimonialBase.md)| Testimonial to be added | + **appId** | **string**| | + **testimonial** | [**WebsiteTestimonialBase**](WebsiteTestimonialBase.md)| | ### Return type @@ -82,7 +81,7 @@ Name | Type | Description | Notes # **DeleteTestimonial** > void DeleteTestimonial (string appId, int? testimonialId) -Delete a testimonial + ### Example ```csharp @@ -102,12 +101,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebsiteApi(); - var appId = appId_example; // string | Application identifier - var testimonialId = 56; // int? | Id of the testimonial to delete + var appId = appId_example; // string | + var testimonialId = 56; // int? | try { - // Delete a testimonial apiInstance.DeleteTestimonial(appId, testimonialId); } catch (Exception e) @@ -123,8 +121,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **testimonialId** | **int?**| Id of the testimonial to delete | + **appId** | **string**| | + **testimonialId** | **int?**| | ### Return type @@ -145,7 +143,7 @@ void (empty response body) # **DeleteWebsiteImage** > void DeleteWebsiteImage (string appId, int? imageId) -Delete Website Image + ### Example ```csharp @@ -165,12 +163,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebsiteApi(); - var appId = appId_example; // string | Application identifier - var imageId = 56; // int? | Id of the image + var appId = appId_example; // string | + var imageId = 56; // int? | try { - // Delete Website Image apiInstance.DeleteWebsiteImage(appId, imageId); } catch (Exception e) @@ -186,8 +183,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **imageId** | **int?**| Id of the image | + **appId** | **string**| | + **imageId** | **int?**| | ### Return type @@ -208,7 +205,7 @@ void (empty response body) # **EditTestimonial** > RestApiResultWebsiteTestimonial EditTestimonial (string appId, int? testimonialId, WebsiteTestimonialBase testimonial) -Edit a testimonial + ### Example ```csharp @@ -228,13 +225,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebsiteApi(); - var appId = appId_example; // string | Application identifier - var testimonialId = 56; // int? | Id of the testimonial to edit - var testimonial = new WebsiteTestimonialBase(); // WebsiteTestimonialBase | New values of the testimonial + var appId = appId_example; // string | + var testimonialId = 56; // int? | + var testimonial = new WebsiteTestimonialBase(); // WebsiteTestimonialBase | try { - // Edit a testimonial RestApiResultWebsiteTestimonial result = apiInstance.EditTestimonial(appId, testimonialId, testimonial); Debug.WriteLine(result); } @@ -251,9 +247,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **testimonialId** | **int?**| Id of the testimonial to edit | - **testimonial** | [**WebsiteTestimonialBase**](WebsiteTestimonialBase.md)| New values of the testimonial | + **appId** | **string**| | + **testimonialId** | **int?**| | + **testimonial** | [**WebsiteTestimonialBase**](WebsiteTestimonialBase.md)| | ### Return type @@ -274,7 +270,7 @@ Name | Type | Description | Notes # **GetIndexConfiguration** > RestApiResultIndexPage GetIndexConfiguration (string appId) -Get Index Configuration + ### Example ```csharp @@ -294,11 +290,10 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebsiteApi(); - var appId = appId_example; // string | Application identifier + var appId = appId_example; // string | try { - // Get Index Configuration RestApiResultIndexPage result = apiInstance.GetIndexConfiguration(appId); Debug.WriteLine(result); } @@ -315,7 +310,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | + **appId** | **string**| | ### Return type @@ -336,7 +331,7 @@ Name | Type | Description | Notes # **SetIndexConfiguration** > RestApiResultIndexPageBase SetIndexConfiguration (string appId, IndexPageBase indexPage) -Set Index Configuration + ### Example ```csharp @@ -356,12 +351,11 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebsiteApi(); - var appId = appId_example; // string | Application identifier - var indexPage = new IndexPageBase(); // IndexPageBase | New index page definition + var appId = appId_example; // string | + var indexPage = new IndexPageBase(); // IndexPageBase | try { - // Set Index Configuration RestApiResultIndexPageBase result = apiInstance.SetIndexConfiguration(appId, indexPage); Debug.WriteLine(result); } @@ -378,8 +372,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **indexPage** | [**IndexPageBase**](IndexPageBase.md)| New index page definition | + **appId** | **string**| | + **indexPage** | [**IndexPageBase**](IndexPageBase.md)| | ### Return type @@ -400,7 +394,7 @@ Name | Type | Description | Notes # **UploadWebsiteImage** > RestApiResultWebsiteImage UploadWebsiteImage (string appId, string imageLocation, System.IO.Stream image) -Upload Website Image + ### Example ```csharp @@ -420,13 +414,12 @@ namespace Example Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new WebsiteApi(); - var appId = appId_example; // string | Application identifier - var imageLocation = imageLocation_example; // string | Section for which to upload the image + var appId = appId_example; // string | + var imageLocation = imageLocation_example; // string | var image = new System.IO.Stream(); // System.IO.Stream | App Logo try { - // Upload Website Image RestApiResultWebsiteImage result = apiInstance.UploadWebsiteImage(appId, imageLocation, image); Debug.WriteLine(result); } @@ -443,8 +436,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appId** | **string**| Application identifier | - **imageLocation** | **string**| Section for which to upload the image | + **appId** | **string**| | + **imageLocation** | **string**| | **image** | **System.IO.Stream**| App Logo | ### Return type @@ -466,7 +459,7 @@ Name | Type | Description | Notes # **WebsiteCheckNow** > void WebsiteCheckNow (string appId) -Triggers a Check DNS Process + ### Example ```csharp @@ -490,7 +483,6 @@ namespace Example try { - // Triggers a Check DNS Process apiInstance.WebsiteCheckNow(appId); } catch (Exception e) diff --git a/docs/WebsiteUpdatedEvent.md b/docs/WebsiteUpdatedEvent.md index 5a96411c..792f0766 100644 --- a/docs/WebsiteUpdatedEvent.md +++ b/docs/WebsiteUpdatedEvent.md @@ -11,7 +11,10 @@ Name | Type | Description | Notes **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 index 06f6b473..cf08c4d7 100644 --- a/docs/WebsiteVanityUrlUpdatedEvent.md +++ b/docs/WebsiteVanityUrlUpdatedEvent.md @@ -3,15 +3,18 @@ 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] -**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/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 index f1ef6fb0..4b1d97d0 100644 --- a/src/Flipdish/Api/AccountsApi.cs +++ b/src/Flipdish/Api/AccountsApi.cs @@ -25,93 +25,93 @@ public interface IAccountsApi : IApiAccessor { #region Synchronous Operations /// - /// Answer a signup question + /// /// /// /// /// /// Thrown when fails to make API call - /// Signup step action - /// Identifier of the answer + /// + /// /// void AnswerSignUpQuestion (string signupStepAction, int? answerId); /// - /// Answer a signup question + /// /// /// /// /// /// Thrown when fails to make API call - /// Signup step action - /// Identifier of the answer + /// + /// /// ApiResponse of Object(void) ApiResponse AnswerSignUpQuestionWithHttpInfo (string signupStepAction, int? answerId); /// - /// Change password + /// /// /// /// /// /// Thrown when fails to make API call - /// Change password model + /// /// void ChangePassword (ChangePasswordModel changePasswordModel); /// - /// Change password + /// /// /// /// /// /// Thrown when fails to make API call - /// Change password model + /// /// ApiResponse of Object(void) ApiResponse ChangePasswordWithHttpInfo (ChangePasswordModel changePasswordModel); /// - /// Change password + /// /// /// /// /// /// Thrown when fails to make API call - /// Change password model + /// /// - void ChangePasswordWithPin (SetPasswordWithPinModel changePasswordModel); + void CreateAccount (CreateAccountModel createAccountModel); /// - /// Change password + /// /// /// /// /// /// Thrown when fails to make API call - /// Change password model + /// /// ApiResponse of Object(void) - ApiResponse ChangePasswordWithPinWithHttpInfo (SetPasswordWithPinModel changePasswordModel); + ApiResponse CreateAccountWithHttpInfo (CreateAccountModel createAccountModel); /// - /// Create account with email address and store name + /// /// /// /// /// /// Thrown when fails to make API call - /// Create account model - /// - void CreateAccount (CreateAccountModel createAccountModel); + /// + /// string + string CreateBasicAccount (CreateBasicAccountModel basicAccountModel); /// - /// Create account with email address and store name + /// /// /// /// /// /// Thrown when fails to make API call - /// Create account model - /// ApiResponse of Object(void) - ApiResponse CreateAccountWithHttpInfo (CreateAccountModel createAccountModel); + /// + /// ApiResponse of string + ApiResponse CreateBasicAccountWithHttpInfo (CreateBasicAccountModel basicAccountModel); /// - /// Gets the current account detail + /// /// /// /// @@ -121,7 +121,7 @@ public interface IAccountsApi : IApiAccessor RestApiResultAccountDetail GetAccountDetails (); /// - /// Gets the current account detail + /// /// /// /// @@ -130,7 +130,7 @@ public interface IAccountsApi : IApiAccessor /// ApiResponse of RestApiResultAccountDetail ApiResponse GetAccountDetailsWithHttpInfo (); /// - /// [PRIVATE API] Get timezones localised to users language + /// /// /// /// @@ -140,7 +140,7 @@ public interface IAccountsApi : IApiAccessor RestApiArrayResultLocalisedTimeZone GetLocalisedTimeZones (); /// - /// [PRIVATE API] Get timezones localised to users language + /// /// /// /// @@ -149,49 +149,47 @@ public interface IAccountsApi : IApiAccessor /// ApiResponse of RestApiArrayResultLocalisedTimeZone ApiResponse GetLocalisedTimeZonesWithHttpInfo (); /// - /// Login with username and password + /// /// /// /// /// /// Thrown when fails to make API call - /// Login model + /// /// void Login (LoginModel loginModel); /// - /// Login with username and password + /// /// /// /// /// /// Thrown when fails to make API call - /// Login model + /// /// ApiResponse of Object(void) ApiResponse LoginWithHttpInfo (LoginModel loginModel); /// - /// Login with username and password + /// /// /// /// /// /// Thrown when fails to make API call - /// Login model /// - void LoginWithPin (LoginWithPinModel loginModel); + void LoginSso (); /// - /// Login with username and password + /// /// /// /// /// /// Thrown when fails to make API call - /// Login model /// ApiResponse of Object(void) - ApiResponse LoginWithPinWithHttpInfo (LoginWithPinModel loginModel); + ApiResponse LoginSsoWithHttpInfo (); /// - /// Log out. It removes Flipdish authorization Cookie. + /// /// /// /// @@ -201,7 +199,7 @@ public interface IAccountsApi : IApiAccessor void Logout (); /// - /// Log out. It removes Flipdish authorization Cookie. + /// /// /// /// @@ -210,221 +208,200 @@ public interface IAccountsApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse LogoutWithHttpInfo (); /// - /// Reset password with token. + /// /// /// /// /// /// Thrown when fails to make API call - /// Password reset model + /// /// void PasswordResetWithToken (PasswordResetModel passwordResetModel); /// - /// Reset password with token. + /// /// /// /// /// /// Thrown when fails to make API call - /// Password reset model + /// /// ApiResponse of Object(void) ApiResponse PasswordResetWithTokenWithHttpInfo (PasswordResetModel passwordResetModel); /// - /// Request login PIN. The server sends the PIN to the email address. + /// /// /// /// /// /// Thrown when fails to make API call - /// Request login PIN request - /// RequestLoginPinResposne - RequestLoginPinResposne RequestLoginPin (RequestLoginPinModel requestLoginPinRequest); + /// + /// + void RecaptchaValidate (string token); /// - /// Request login PIN. The server sends the PIN to the email address. + /// /// /// /// /// /// Thrown when fails to make API call - /// Request login PIN request - /// ApiResponse of RequestLoginPinResposne - ApiResponse RequestLoginPinWithHttpInfo (RequestLoginPinModel requestLoginPinRequest); + /// + /// ApiResponse of Object(void) + ApiResponse RecaptchaValidateWithHttpInfo (string token); /// - /// Request password reset. Flipdish system will send a token via email. + /// /// /// /// /// /// Thrown when fails to make API call - /// Request password reset model + /// /// void RequestPasswordReset (RequestPasswordResetModel requestPasswordResetModel); /// - /// Request password reset. Flipdish system will send a token via email. + /// /// /// /// /// /// Thrown when fails to make API call - /// Request password reset model + /// /// ApiResponse of Object(void) ApiResponse RequestPasswordResetWithHttpInfo (RequestPasswordResetModel requestPasswordResetModel); /// - /// Request Password Reset PIN. The server sends the PIN to the email address. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// RequestPasswordResetPinResponse - RequestPasswordResetPinResponse SendPinForPasswordReset (RequestPasswordResetModel requestPasswordResetRequest); - - /// - /// Request Password Reset PIN. The server sends the PIN to the email address. - /// - /// /// - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of RequestPasswordResetPinResponse - ApiResponse SendPinForPasswordResetWithHttpInfo (RequestPasswordResetModel requestPasswordResetRequest); - /// - /// Skip a signup question /// /// /// /// /// Thrown when fails to make API call - /// Signup step action + /// /// void SkipSignupStep (string signupStepAction); /// - /// Skip a signup question + /// /// /// /// /// /// Thrown when fails to make API call - /// Signup step action + /// /// ApiResponse of Object(void) ApiResponse SkipSignupStepWithHttpInfo (string signupStepAction); /// - /// Update account with name and language + /// /// /// /// /// /// Thrown when fails to make API call - /// Update account model + /// /// void UpdateAccount (AccountDetailBase updateAccountModel); /// - /// Update account with name and language + /// /// /// /// /// /// Thrown when fails to make API call - /// Update account model + /// /// ApiResponse of Object(void) ApiResponse UpdateAccountWithHttpInfo (AccountDetailBase updateAccountModel); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Answer a signup question + /// /// /// /// /// /// Thrown when fails to make API call - /// Signup step action - /// Identifier of the answer + /// + /// /// Task of void System.Threading.Tasks.Task AnswerSignUpQuestionAsync (string signupStepAction, int? answerId); /// - /// Answer a signup question + /// /// /// /// /// /// Thrown when fails to make API call - /// Signup step action - /// Identifier of the answer + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> AnswerSignUpQuestionAsyncWithHttpInfo (string signupStepAction, int? answerId); /// - /// Change password + /// /// /// /// /// /// Thrown when fails to make API call - /// Change password model + /// /// Task of void System.Threading.Tasks.Task ChangePasswordAsync (ChangePasswordModel changePasswordModel); /// - /// Change password + /// /// /// /// /// /// Thrown when fails to make API call - /// Change password model + /// /// Task of ApiResponse System.Threading.Tasks.Task> ChangePasswordAsyncWithHttpInfo (ChangePasswordModel changePasswordModel); /// - /// Change password + /// /// /// /// /// /// Thrown when fails to make API call - /// Change password model + /// /// Task of void - System.Threading.Tasks.Task ChangePasswordWithPinAsync (SetPasswordWithPinModel changePasswordModel); + System.Threading.Tasks.Task CreateAccountAsync (CreateAccountModel createAccountModel); /// - /// Change password + /// /// /// /// /// /// Thrown when fails to make API call - /// Change password model + /// /// Task of ApiResponse - System.Threading.Tasks.Task> ChangePasswordWithPinAsyncWithHttpInfo (SetPasswordWithPinModel changePasswordModel); + System.Threading.Tasks.Task> CreateAccountAsyncWithHttpInfo (CreateAccountModel createAccountModel); /// - /// Create account with email address and store name + /// /// /// /// /// /// Thrown when fails to make API call - /// Create account model - /// Task of void - System.Threading.Tasks.Task CreateAccountAsync (CreateAccountModel createAccountModel); + /// + /// Task of string + System.Threading.Tasks.Task CreateBasicAccountAsync (CreateBasicAccountModel basicAccountModel); /// - /// Create account with email address and store name + /// /// /// /// /// /// Thrown when fails to make API call - /// Create account model - /// Task of ApiResponse - System.Threading.Tasks.Task> CreateAccountAsyncWithHttpInfo (CreateAccountModel createAccountModel); + /// + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> CreateBasicAccountAsyncWithHttpInfo (CreateBasicAccountModel basicAccountModel); /// - /// Gets the current account detail + /// /// /// /// @@ -434,7 +411,7 @@ public interface IAccountsApi : IApiAccessor System.Threading.Tasks.Task GetAccountDetailsAsync (); /// - /// Gets the current account detail + /// /// /// /// @@ -443,7 +420,7 @@ public interface IAccountsApi : IApiAccessor /// Task of ApiResponse (RestApiResultAccountDetail) System.Threading.Tasks.Task> GetAccountDetailsAsyncWithHttpInfo (); /// - /// [PRIVATE API] Get timezones localised to users language + /// /// /// /// @@ -453,7 +430,7 @@ public interface IAccountsApi : IApiAccessor System.Threading.Tasks.Task GetLocalisedTimeZonesAsync (); /// - /// [PRIVATE API] Get timezones localised to users language + /// /// /// /// @@ -462,49 +439,47 @@ public interface IAccountsApi : IApiAccessor /// Task of ApiResponse (RestApiArrayResultLocalisedTimeZone) System.Threading.Tasks.Task> GetLocalisedTimeZonesAsyncWithHttpInfo (); /// - /// Login with username and password + /// /// /// /// /// /// Thrown when fails to make API call - /// Login model + /// /// Task of void System.Threading.Tasks.Task LoginAsync (LoginModel loginModel); /// - /// Login with username and password + /// /// /// /// /// /// Thrown when fails to make API call - /// Login model + /// /// Task of ApiResponse System.Threading.Tasks.Task> LoginAsyncWithHttpInfo (LoginModel loginModel); /// - /// Login with username and password + /// /// /// /// /// /// Thrown when fails to make API call - /// Login model /// Task of void - System.Threading.Tasks.Task LoginWithPinAsync (LoginWithPinModel loginModel); + System.Threading.Tasks.Task LoginSsoAsync (); /// - /// Login with username and password + /// /// /// /// /// /// Thrown when fails to make API call - /// Login model /// Task of ApiResponse - System.Threading.Tasks.Task> LoginWithPinAsyncWithHttpInfo (LoginWithPinModel loginModel); + System.Threading.Tasks.Task> LoginSsoAsyncWithHttpInfo (); /// - /// Log out. It removes Flipdish authorization Cookie. + /// /// /// /// @@ -514,7 +489,7 @@ public interface IAccountsApi : IApiAccessor System.Threading.Tasks.Task LogoutAsync (); /// - /// Log out. It removes Flipdish authorization Cookie. + /// /// /// /// @@ -523,129 +498,108 @@ public interface IAccountsApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> LogoutAsyncWithHttpInfo (); /// - /// Reset password with token. + /// /// /// /// /// /// Thrown when fails to make API call - /// Password reset model + /// /// Task of void System.Threading.Tasks.Task PasswordResetWithTokenAsync (PasswordResetModel passwordResetModel); /// - /// Reset password with token. + /// /// /// /// /// /// Thrown when fails to make API call - /// Password reset model + /// /// Task of ApiResponse System.Threading.Tasks.Task> PasswordResetWithTokenAsyncWithHttpInfo (PasswordResetModel passwordResetModel); /// - /// Request login PIN. The server sends the PIN to the email address. + /// /// /// /// /// /// Thrown when fails to make API call - /// Request login PIN request - /// Task of RequestLoginPinResposne - System.Threading.Tasks.Task RequestLoginPinAsync (RequestLoginPinModel requestLoginPinRequest); + /// + /// Task of void + System.Threading.Tasks.Task RecaptchaValidateAsync (string token); /// - /// Request login PIN. The server sends the PIN to the email address. + /// /// /// /// /// /// Thrown when fails to make API call - /// Request login PIN request - /// Task of ApiResponse (RequestLoginPinResposne) - System.Threading.Tasks.Task> RequestLoginPinAsyncWithHttpInfo (RequestLoginPinModel requestLoginPinRequest); + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> RecaptchaValidateAsyncWithHttpInfo (string token); /// - /// Request password reset. Flipdish system will send a token via email. + /// /// /// /// /// /// Thrown when fails to make API call - /// Request password reset model + /// /// Task of void System.Threading.Tasks.Task RequestPasswordResetAsync (RequestPasswordResetModel requestPasswordResetModel); /// - /// Request password reset. Flipdish system will send a token via email. + /// /// /// /// /// /// Thrown when fails to make API call - /// Request password reset model + /// /// Task of ApiResponse System.Threading.Tasks.Task> RequestPasswordResetAsyncWithHttpInfo (RequestPasswordResetModel requestPasswordResetModel); /// - /// Request Password Reset PIN. The server sends the PIN to the email address. - /// - /// /// - /// - /// Thrown when fails to make API call - /// - /// Task of RequestPasswordResetPinResponse - System.Threading.Tasks.Task SendPinForPasswordResetAsync (RequestPasswordResetModel requestPasswordResetRequest); - - /// - /// Request Password Reset PIN. The server sends the PIN to the email address. - /// - /// - /// - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (RequestPasswordResetPinResponse) - System.Threading.Tasks.Task> SendPinForPasswordResetAsyncWithHttpInfo (RequestPasswordResetModel requestPasswordResetRequest); - /// - /// Skip a signup question /// /// /// /// /// Thrown when fails to make API call - /// Signup step action + /// /// Task of void System.Threading.Tasks.Task SkipSignupStepAsync (string signupStepAction); /// - /// Skip a signup question + /// /// /// /// /// /// Thrown when fails to make API call - /// Signup step action + /// /// Task of ApiResponse System.Threading.Tasks.Task> SkipSignupStepAsyncWithHttpInfo (string signupStepAction); /// - /// Update account with name and language + /// /// /// /// /// /// Thrown when fails to make API call - /// Update account model + /// /// Task of void System.Threading.Tasks.Task UpdateAccountAsync (AccountDetailBase updateAccountModel); /// - /// Update account with name and language + /// /// /// /// /// /// Thrown when fails to make API call - /// Update account model + /// /// Task of ApiResponse System.Threading.Tasks.Task> UpdateAccountAsyncWithHttpInfo (AccountDetailBase updateAccountModel); #endregion Asynchronous Operations @@ -749,11 +703,11 @@ public void AddDefaultHeader(string key, string value) } /// - /// Answer a signup question + /// /// /// Thrown when fails to make API call - /// Signup step action - /// Identifier of the answer + /// + /// /// public void AnswerSignUpQuestion (string signupStepAction, int? answerId) { @@ -761,11 +715,11 @@ public void AnswerSignUpQuestion (string signupStepAction, int? answerId) } /// - /// Answer a signup question + /// /// /// Thrown when fails to make API call - /// Signup step action - /// Identifier of the answer + /// + /// /// ApiResponse of Object(void) public ApiResponse AnswerSignUpQuestionWithHttpInfo (string signupStepAction, int? answerId) { @@ -841,11 +795,11 @@ public ApiResponse AnswerSignUpQuestionWithHttpInfo (string signupStepAc } /// - /// Answer a signup question + /// /// /// Thrown when fails to make API call - /// Signup step action - /// Identifier of the answer + /// + /// /// Task of void public async System.Threading.Tasks.Task AnswerSignUpQuestionAsync (string signupStepAction, int? answerId) { @@ -854,11 +808,11 @@ public async System.Threading.Tasks.Task AnswerSignUpQuestionAsync (string signu } /// - /// Answer a signup question + /// /// /// Thrown when fails to make API call - /// Signup step action - /// Identifier of the answer + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> AnswerSignUpQuestionAsyncWithHttpInfo (string signupStepAction, int? answerId) { @@ -934,10 +888,10 @@ public async System.Threading.Tasks.Task> AnswerSignUpQuesti } /// - /// Change password + /// /// /// Thrown when fails to make API call - /// Change password model + /// /// public void ChangePassword (ChangePasswordModel changePasswordModel) { @@ -945,10 +899,10 @@ public void ChangePassword (ChangePasswordModel changePasswordModel) } /// - /// Change password + /// /// /// Thrown when fails to make API call - /// Change password model + /// /// ApiResponse of Object(void) public ApiResponse ChangePasswordWithHttpInfo (ChangePasswordModel changePasswordModel) { @@ -1020,10 +974,10 @@ public ApiResponse ChangePasswordWithHttpInfo (ChangePasswordModel chang } /// - /// Change password + /// /// /// Thrown when fails to make API call - /// Change password model + /// /// Task of void public async System.Threading.Tasks.Task ChangePasswordAsync (ChangePasswordModel changePasswordModel) { @@ -1032,10 +986,10 @@ public async System.Threading.Tasks.Task ChangePasswordAsync (ChangePasswordMode } /// - /// Change password + /// /// /// Thrown when fails to make API call - /// Change password model + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> ChangePasswordAsyncWithHttpInfo (ChangePasswordModel changePasswordModel) { @@ -1107,29 +1061,29 @@ public async System.Threading.Tasks.Task> ChangePasswordAsyn } /// - /// Change password + /// /// /// Thrown when fails to make API call - /// Change password model + /// /// - public void ChangePasswordWithPin (SetPasswordWithPinModel changePasswordModel) + public void CreateAccount (CreateAccountModel createAccountModel) { - ChangePasswordWithPinWithHttpInfo(changePasswordModel); + CreateAccountWithHttpInfo(createAccountModel); } /// - /// Change password + /// /// /// Thrown when fails to make API call - /// Change password model + /// /// ApiResponse of Object(void) - public ApiResponse ChangePasswordWithPinWithHttpInfo (SetPasswordWithPinModel changePasswordModel) + public ApiResponse CreateAccountWithHttpInfo (CreateAccountModel createAccountModel) { - // verify the required parameter 'changePasswordModel' is set - if (changePasswordModel == null) - throw new ApiException(400, "Missing required parameter 'changePasswordModel' when calling AccountsApi->ChangePasswordWithPin"); + // 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/password/pin"; + var localVarPath = "./api/v1.0/accounts"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1158,13 +1112,13 @@ public ApiResponse ChangePasswordWithPinWithHttpInfo (SetPasswordWithPin if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (changePasswordModel != null && changePasswordModel.GetType() != typeof(byte[])) + if (createAccountModel != null && createAccountModel.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(changePasswordModel); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(createAccountModel); // http body (model) parameter } else { - localVarPostBody = changePasswordModel; // byte array + localVarPostBody = createAccountModel; // byte array } // authentication (oauth2) required @@ -1176,14 +1130,14 @@ public ApiResponse ChangePasswordWithPinWithHttpInfo (SetPasswordWithPin // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("ChangePasswordWithPin", localVarResponse); + Exception exception = ExceptionFactory("CreateAccount", localVarResponse); if (exception != null) throw exception; } @@ -1193,30 +1147,30 @@ public ApiResponse ChangePasswordWithPinWithHttpInfo (SetPasswordWithPin } /// - /// Change password + /// /// /// Thrown when fails to make API call - /// Change password model + /// /// Task of void - public async System.Threading.Tasks.Task ChangePasswordWithPinAsync (SetPasswordWithPinModel changePasswordModel) + public async System.Threading.Tasks.Task CreateAccountAsync (CreateAccountModel createAccountModel) { - await ChangePasswordWithPinAsyncWithHttpInfo(changePasswordModel); + await CreateAccountAsyncWithHttpInfo(createAccountModel); } /// - /// Change password + /// /// /// Thrown when fails to make API call - /// Change password model + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> ChangePasswordWithPinAsyncWithHttpInfo (SetPasswordWithPinModel changePasswordModel) + public async System.Threading.Tasks.Task> CreateAccountAsyncWithHttpInfo (CreateAccountModel createAccountModel) { - // verify the required parameter 'changePasswordModel' is set - if (changePasswordModel == null) - throw new ApiException(400, "Missing required parameter 'changePasswordModel' when calling AccountsApi->ChangePasswordWithPin"); + // 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/password/pin"; + var localVarPath = "./api/v1.0/accounts"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1245,13 +1199,13 @@ public async System.Threading.Tasks.Task> ChangePasswordWith if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (changePasswordModel != null && changePasswordModel.GetType() != typeof(byte[])) + if (createAccountModel != null && createAccountModel.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(changePasswordModel); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(createAccountModel); // http body (model) parameter } else { - localVarPostBody = changePasswordModel; // byte array + localVarPostBody = createAccountModel; // byte array } // authentication (oauth2) required @@ -1263,14 +1217,14 @@ public async System.Threading.Tasks.Task> ChangePasswordWith // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("ChangePasswordWithPin", localVarResponse); + Exception exception = ExceptionFactory("CreateAccount", localVarResponse); if (exception != null) throw exception; } @@ -1280,29 +1234,30 @@ public async System.Threading.Tasks.Task> ChangePasswordWith } /// - /// Create account with email address and store name + /// /// /// Thrown when fails to make API call - /// Create account model - /// - public void CreateAccount (CreateAccountModel createAccountModel) + /// + /// string + public string CreateBasicAccount (CreateBasicAccountModel basicAccountModel) { - CreateAccountWithHttpInfo(createAccountModel); + ApiResponse localVarResponse = CreateBasicAccountWithHttpInfo(basicAccountModel); + return localVarResponse.Data; } /// - /// Create account with email address and store name + /// /// /// Thrown when fails to make API call - /// Create account model - /// ApiResponse of Object(void) - public ApiResponse CreateAccountWithHttpInfo (CreateAccountModel createAccountModel) + /// + /// ApiResponse of string + public ApiResponse< string > CreateBasicAccountWithHttpInfo (CreateBasicAccountModel basicAccountModel) { - // verify the required parameter 'createAccountModel' is set - if (createAccountModel == null) - throw new ApiException(400, "Missing required parameter 'createAccountModel' when calling AccountsApi->CreateAccount"); + // 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"; + var localVarPath = "./api/v1.0/accounts/basic-account"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1331,13 +1286,13 @@ public ApiResponse CreateAccountWithHttpInfo (CreateAccountModel createA if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (createAccountModel != null && createAccountModel.GetType() != typeof(byte[])) + if (basicAccountModel != null && basicAccountModel.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(createAccountModel); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(basicAccountModel); // http body (model) parameter } else { - localVarPostBody = createAccountModel; // byte array + localVarPostBody = basicAccountModel; // byte array } // authentication (oauth2) required @@ -1356,40 +1311,41 @@ public ApiResponse CreateAccountWithHttpInfo (CreateAccountModel createA if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("CreateAccount", localVarResponse); + Exception exception = ExceptionFactory("CreateBasicAccount", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } /// - /// Create account with email address and store name + /// /// /// Thrown when fails to make API call - /// Create account model - /// Task of void - public async System.Threading.Tasks.Task CreateAccountAsync (CreateAccountModel createAccountModel) + /// + /// Task of string + public async System.Threading.Tasks.Task CreateBasicAccountAsync (CreateBasicAccountModel basicAccountModel) { - await CreateAccountAsyncWithHttpInfo(createAccountModel); + ApiResponse localVarResponse = await CreateBasicAccountAsyncWithHttpInfo(basicAccountModel); + return localVarResponse.Data; } /// - /// Create account with email address and store name + /// /// /// Thrown when fails to make API call - /// Create account model - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateAccountAsyncWithHttpInfo (CreateAccountModel createAccountModel) + /// + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> CreateBasicAccountAsyncWithHttpInfo (CreateBasicAccountModel basicAccountModel) { - // verify the required parameter 'createAccountModel' is set - if (createAccountModel == null) - throw new ApiException(400, "Missing required parameter 'createAccountModel' when calling AccountsApi->CreateAccount"); + // 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"; + var localVarPath = "./api/v1.0/accounts/basic-account"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1418,13 +1374,13 @@ public async System.Threading.Tasks.Task> CreateAccountAsync if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (createAccountModel != null && createAccountModel.GetType() != typeof(byte[])) + if (basicAccountModel != null && basicAccountModel.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(createAccountModel); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(basicAccountModel); // http body (model) parameter } else { - localVarPostBody = createAccountModel; // byte array + localVarPostBody = basicAccountModel; // byte array } // authentication (oauth2) required @@ -1443,17 +1399,17 @@ public async System.Threading.Tasks.Task> CreateAccountAsync if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("CreateAccount", localVarResponse); + Exception exception = ExceptionFactory("CreateBasicAccount", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } /// - /// Gets the current account detail + /// /// /// Thrown when fails to make API call /// RestApiResultAccountDetail @@ -1464,7 +1420,7 @@ public RestApiResultAccountDetail GetAccountDetails () } /// - /// Gets the current account detail + /// /// /// Thrown when fails to make API call /// ApiResponse of RestApiResultAccountDetail @@ -1522,7 +1478,7 @@ public ApiResponse< RestApiResultAccountDetail > GetAccountDetailsWithHttpInfo ( } /// - /// Gets the current account detail + /// /// /// Thrown when fails to make API call /// Task of RestApiResultAccountDetail @@ -1534,7 +1490,7 @@ public async System.Threading.Tasks.Task GetAccountD } /// - /// Gets the current account detail + /// /// /// Thrown when fails to make API call /// Task of ApiResponse (RestApiResultAccountDetail) @@ -1592,7 +1548,7 @@ public async System.Threading.Tasks.Task } /// - /// [PRIVATE API] Get timezones localised to users language + /// /// /// Thrown when fails to make API call /// RestApiArrayResultLocalisedTimeZone @@ -1603,7 +1559,7 @@ public RestApiArrayResultLocalisedTimeZone GetLocalisedTimeZones () } /// - /// [PRIVATE API] Get timezones localised to users language + /// /// /// Thrown when fails to make API call /// ApiResponse of RestApiArrayResultLocalisedTimeZone @@ -1661,7 +1617,7 @@ public ApiResponse< RestApiArrayResultLocalisedTimeZone > GetLocalisedTimeZonesW } /// - /// [PRIVATE API] Get timezones localised to users language + /// /// /// Thrown when fails to make API call /// Task of RestApiArrayResultLocalisedTimeZone @@ -1673,7 +1629,7 @@ public async System.Threading.Tasks.Task Ge } /// - /// [PRIVATE API] Get timezones localised to users language + /// /// /// Thrown when fails to make API call /// Task of ApiResponse (RestApiArrayResultLocalisedTimeZone) @@ -1731,10 +1687,10 @@ public async System.Threading.Tasks.Task - /// Login with username and password + /// /// /// Thrown when fails to make API call - /// Login model + /// /// public void Login (LoginModel loginModel) { @@ -1742,10 +1698,10 @@ public void Login (LoginModel loginModel) } /// - /// Login with username and password + /// /// /// Thrown when fails to make API call - /// Login model + /// /// ApiResponse of Object(void) public ApiResponse LoginWithHttpInfo (LoginModel loginModel) { @@ -1817,10 +1773,10 @@ public ApiResponse LoginWithHttpInfo (LoginModel loginModel) } /// - /// Login with username and password + /// /// /// Thrown when fails to make API call - /// Login model + /// /// Task of void public async System.Threading.Tasks.Task LoginAsync (LoginModel loginModel) { @@ -1829,10 +1785,10 @@ public async System.Threading.Tasks.Task LoginAsync (LoginModel loginModel) } /// - /// Login with username and password + /// /// /// Thrown when fails to make API call - /// Login model + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> LoginAsyncWithHttpInfo (LoginModel loginModel) { @@ -1904,29 +1860,24 @@ public async System.Threading.Tasks.Task> LoginAsyncWithHttp } /// - /// Login with username and password + /// /// /// Thrown when fails to make API call - /// Login model /// - public void LoginWithPin (LoginWithPinModel loginModel) + public void LoginSso () { - LoginWithPinWithHttpInfo(loginModel); + LoginSsoWithHttpInfo(); } /// - /// Login with username and password + /// /// /// Thrown when fails to make API call - /// Login model /// ApiResponse of Object(void) - public ApiResponse LoginWithPinWithHttpInfo (LoginWithPinModel loginModel) + public ApiResponse LoginSsoWithHttpInfo () { - // verify the required parameter 'loginModel' is set - if (loginModel == null) - throw new ApiException(400, "Missing required parameter 'loginModel' when calling AccountsApi->LoginWithPin"); - var localVarPath = "./api/v1.0/accounts/login/pin"; + var localVarPath = "./api/v1.0/accounts/login/sso"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1936,11 +1887,6 @@ public ApiResponse LoginWithPinWithHttpInfo (LoginWithPinModel loginMode // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -1955,14 +1901,6 @@ public ApiResponse LoginWithPinWithHttpInfo (LoginWithPinModel loginMode 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 @@ -1980,7 +1918,7 @@ public ApiResponse LoginWithPinWithHttpInfo (LoginWithPinModel loginMode if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("LoginWithPin", localVarResponse); + Exception exception = ExceptionFactory("LoginSso", localVarResponse); if (exception != null) throw exception; } @@ -1990,30 +1928,25 @@ public ApiResponse LoginWithPinWithHttpInfo (LoginWithPinModel loginMode } /// - /// Login with username and password + /// /// /// Thrown when fails to make API call - /// Login model /// Task of void - public async System.Threading.Tasks.Task LoginWithPinAsync (LoginWithPinModel loginModel) + public async System.Threading.Tasks.Task LoginSsoAsync () { - await LoginWithPinAsyncWithHttpInfo(loginModel); + await LoginSsoAsyncWithHttpInfo(); } /// - /// Login with username and password + /// /// /// Thrown when fails to make API call - /// Login model /// Task of ApiResponse - public async System.Threading.Tasks.Task> LoginWithPinAsyncWithHttpInfo (LoginWithPinModel loginModel) + public async System.Threading.Tasks.Task> LoginSsoAsyncWithHttpInfo () { - // verify the required parameter 'loginModel' is set - if (loginModel == null) - throw new ApiException(400, "Missing required parameter 'loginModel' when calling AccountsApi->LoginWithPin"); - var localVarPath = "./api/v1.0/accounts/login/pin"; + var localVarPath = "./api/v1.0/accounts/login/sso"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2023,11 +1956,6 @@ public async System.Threading.Tasks.Task> LoginWithPinAsyncW // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -2042,14 +1970,6 @@ public async System.Threading.Tasks.Task> LoginWithPinAsyncW 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 @@ -2067,7 +1987,7 @@ public async System.Threading.Tasks.Task> LoginWithPinAsyncW if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("LoginWithPin", localVarResponse); + Exception exception = ExceptionFactory("LoginSso", localVarResponse); if (exception != null) throw exception; } @@ -2077,7 +1997,7 @@ public async System.Threading.Tasks.Task> LoginWithPinAsyncW } /// - /// Log out. It removes Flipdish authorization Cookie. + /// /// /// Thrown when fails to make API call /// @@ -2087,7 +2007,7 @@ public void Logout () } /// - /// Log out. It removes Flipdish authorization Cookie. + /// /// /// Thrown when fails to make API call /// ApiResponse of Object(void) @@ -2145,7 +2065,7 @@ public ApiResponse LogoutWithHttpInfo () } /// - /// Log out. It removes Flipdish authorization Cookie. + /// /// /// Thrown when fails to make API call /// Task of void @@ -2156,7 +2076,7 @@ public async System.Threading.Tasks.Task LogoutAsync () } /// - /// Log out. It removes Flipdish authorization Cookie. + /// /// /// Thrown when fails to make API call /// Task of ApiResponse @@ -2214,10 +2134,10 @@ public async System.Threading.Tasks.Task> LogoutAsyncWithHtt } /// - /// Reset password with token. + /// /// /// Thrown when fails to make API call - /// Password reset model + /// /// public void PasswordResetWithToken (PasswordResetModel passwordResetModel) { @@ -2225,10 +2145,10 @@ public void PasswordResetWithToken (PasswordResetModel passwordResetModel) } /// - /// Reset password with token. + /// /// /// Thrown when fails to make API call - /// Password reset model + /// /// ApiResponse of Object(void) public ApiResponse PasswordResetWithTokenWithHttpInfo (PasswordResetModel passwordResetModel) { @@ -2300,10 +2220,10 @@ public ApiResponse PasswordResetWithTokenWithHttpInfo (PasswordResetMode } /// - /// Reset password with token. + /// /// /// Thrown when fails to make API call - /// Password reset model + /// /// Task of void public async System.Threading.Tasks.Task PasswordResetWithTokenAsync (PasswordResetModel passwordResetModel) { @@ -2312,10 +2232,10 @@ public async System.Threading.Tasks.Task PasswordResetWithTokenAsync (PasswordRe } /// - /// Reset password with token. + /// /// /// Thrown when fails to make API call - /// Password reset model + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> PasswordResetWithTokenAsyncWithHttpInfo (PasswordResetModel passwordResetModel) { @@ -2387,30 +2307,29 @@ public async System.Threading.Tasks.Task> PasswordResetWithT } /// - /// Request login PIN. The server sends the PIN to the email address. + /// /// /// Thrown when fails to make API call - /// Request login PIN request - /// RequestLoginPinResposne - public RequestLoginPinResposne RequestLoginPin (RequestLoginPinModel requestLoginPinRequest) + /// + /// + public void RecaptchaValidate (string token) { - ApiResponse localVarResponse = RequestLoginPinWithHttpInfo(requestLoginPinRequest); - return localVarResponse.Data; + RecaptchaValidateWithHttpInfo(token); } /// - /// Request login PIN. The server sends the PIN to the email address. + /// /// /// Thrown when fails to make API call - /// Request login PIN request - /// ApiResponse of RequestLoginPinResposne - public ApiResponse< RequestLoginPinResposne > RequestLoginPinWithHttpInfo (RequestLoginPinModel requestLoginPinRequest) + /// + /// ApiResponse of Object(void) + public ApiResponse RecaptchaValidateWithHttpInfo (string token) { - // verify the required parameter 'requestLoginPinRequest' is set - if (requestLoginPinRequest == null) - throw new ApiException(400, "Missing required parameter 'requestLoginPinRequest' when calling AccountsApi->RequestLoginPin"); + // 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/pin"; + var localVarPath = "./api/v1.0/accounts/recaptcha"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2420,11 +2339,6 @@ public ApiResponse< RequestLoginPinResposne > RequestLoginPinWithHttpInfo (Reque // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -2439,14 +2353,7 @@ public ApiResponse< RequestLoginPinResposne > RequestLoginPinWithHttpInfo (Reque if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (requestLoginPinRequest != null && requestLoginPinRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestLoginPinRequest); // http body (model) parameter - } - else - { - localVarPostBody = requestLoginPinRequest; // byte array - } + if (token != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", token)); // query parameter // authentication (oauth2) required // oauth required @@ -2464,41 +2371,40 @@ public ApiResponse< RequestLoginPinResposne > RequestLoginPinWithHttpInfo (Reque if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("RequestLoginPin", localVarResponse); + Exception exception = ExceptionFactory("RecaptchaValidate", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RequestLoginPinResposne) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RequestLoginPinResposne))); + null); } /// - /// Request login PIN. The server sends the PIN to the email address. + /// /// /// Thrown when fails to make API call - /// Request login PIN request - /// Task of RequestLoginPinResposne - public async System.Threading.Tasks.Task RequestLoginPinAsync (RequestLoginPinModel requestLoginPinRequest) + /// + /// Task of void + public async System.Threading.Tasks.Task RecaptchaValidateAsync (string token) { - ApiResponse localVarResponse = await RequestLoginPinAsyncWithHttpInfo(requestLoginPinRequest); - return localVarResponse.Data; + await RecaptchaValidateAsyncWithHttpInfo(token); } /// - /// Request login PIN. The server sends the PIN to the email address. + /// /// /// Thrown when fails to make API call - /// Request login PIN request - /// Task of ApiResponse (RequestLoginPinResposne) - public async System.Threading.Tasks.Task> RequestLoginPinAsyncWithHttpInfo (RequestLoginPinModel requestLoginPinRequest) + /// + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RecaptchaValidateAsyncWithHttpInfo (string token) { - // verify the required parameter 'requestLoginPinRequest' is set - if (requestLoginPinRequest == null) - throw new ApiException(400, "Missing required parameter 'requestLoginPinRequest' when calling AccountsApi->RequestLoginPin"); + // 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/pin"; + var localVarPath = "./api/v1.0/accounts/recaptcha"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2508,11 +2414,6 @@ public async System.Threading.Tasks.Task> R // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -2527,14 +2428,7 @@ public async System.Threading.Tasks.Task> R if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (requestLoginPinRequest != null && requestLoginPinRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestLoginPinRequest); // http body (model) parameter - } - else - { - localVarPostBody = requestLoginPinRequest; // byte array - } + if (token != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", token)); // query parameter // authentication (oauth2) required // oauth required @@ -2552,20 +2446,20 @@ public async System.Threading.Tasks.Task> R if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("RequestLoginPin", localVarResponse); + Exception exception = ExceptionFactory("RecaptchaValidate", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RequestLoginPinResposne) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RequestLoginPinResposne))); + null); } /// - /// Request password reset. Flipdish system will send a token via email. + /// /// /// Thrown when fails to make API call - /// Request password reset model + /// /// public void RequestPasswordReset (RequestPasswordResetModel requestPasswordResetModel) { @@ -2573,10 +2467,10 @@ public void RequestPasswordReset (RequestPasswordResetModel requestPasswordReset } /// - /// Request password reset. Flipdish system will send a token via email. + /// /// /// Thrown when fails to make API call - /// Request password reset model + /// /// ApiResponse of Object(void) public ApiResponse RequestPasswordResetWithHttpInfo (RequestPasswordResetModel requestPasswordResetModel) { @@ -2648,10 +2542,10 @@ public ApiResponse RequestPasswordResetWithHttpInfo (RequestPasswordRese } /// - /// Request password reset. Flipdish system will send a token via email. + /// /// /// Thrown when fails to make API call - /// Request password reset model + /// /// Task of void public async System.Threading.Tasks.Task RequestPasswordResetAsync (RequestPasswordResetModel requestPasswordResetModel) { @@ -2660,10 +2554,10 @@ public async System.Threading.Tasks.Task RequestPasswordResetAsync (RequestPassw } /// - /// Request password reset. Flipdish system will send a token via email. + /// /// /// Thrown when fails to make API call - /// Request password reset model + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> RequestPasswordResetAsyncWithHttpInfo (RequestPasswordResetModel requestPasswordResetModel) { @@ -2735,185 +2629,10 @@ public async System.Threading.Tasks.Task> RequestPasswordRes } /// - /// Request Password Reset PIN. The server sends the PIN to the email address. - /// - /// Thrown when fails to make API call - /// - /// RequestPasswordResetPinResponse - public RequestPasswordResetPinResponse SendPinForPasswordReset (RequestPasswordResetModel requestPasswordResetRequest) - { - ApiResponse localVarResponse = SendPinForPasswordResetWithHttpInfo(requestPasswordResetRequest); - return localVarResponse.Data; - } - - /// - /// Request Password Reset PIN. The server sends the PIN to the email address. - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of RequestPasswordResetPinResponse - public ApiResponse< RequestPasswordResetPinResponse > SendPinForPasswordResetWithHttpInfo (RequestPasswordResetModel requestPasswordResetRequest) - { - // verify the required parameter 'requestPasswordResetRequest' is set - if (requestPasswordResetRequest == null) - throw new ApiException(400, "Missing required parameter 'requestPasswordResetRequest' when calling AccountsApi->SendPinForPasswordReset"); - - var localVarPath = "./api/v1.0/accounts/password/resetpin"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestPasswordResetRequest != null && requestPasswordResetRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestPasswordResetRequest); // http body (model) parameter - } - else - { - localVarPostBody = requestPasswordResetRequest; // byte array - } - - // authentication (oauth2) required - // oauth required - if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) - { - localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SendPinForPasswordReset", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RequestPasswordResetPinResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RequestPasswordResetPinResponse))); - } - - /// - /// Request Password Reset PIN. The server sends the PIN to the email address. - /// - /// Thrown when fails to make API call - /// - /// Task of RequestPasswordResetPinResponse - public async System.Threading.Tasks.Task SendPinForPasswordResetAsync (RequestPasswordResetModel requestPasswordResetRequest) - { - ApiResponse localVarResponse = await SendPinForPasswordResetAsyncWithHttpInfo(requestPasswordResetRequest); - return localVarResponse.Data; - - } - - /// - /// Request Password Reset PIN. The server sends the PIN to the email address. - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (RequestPasswordResetPinResponse) - public async System.Threading.Tasks.Task> SendPinForPasswordResetAsyncWithHttpInfo (RequestPasswordResetModel requestPasswordResetRequest) - { - // verify the required parameter 'requestPasswordResetRequest' is set - if (requestPasswordResetRequest == null) - throw new ApiException(400, "Missing required parameter 'requestPasswordResetRequest' when calling AccountsApi->SendPinForPasswordReset"); - - var localVarPath = "./api/v1.0/accounts/password/resetpin"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - - if (requestPasswordResetRequest != null && requestPasswordResetRequest.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(requestPasswordResetRequest); // http body (model) parameter - } - else - { - localVarPostBody = requestPasswordResetRequest; // byte array - } - - // authentication (oauth2) required - // oauth required - if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) - { - localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; - } - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("SendPinForPasswordReset", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RequestPasswordResetPinResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RequestPasswordResetPinResponse))); - } - - /// - /// Skip a signup question + /// /// /// Thrown when fails to make API call - /// Signup step action + /// /// public void SkipSignupStep (string signupStepAction) { @@ -2921,10 +2640,10 @@ public void SkipSignupStep (string signupStepAction) } /// - /// Skip a signup question + /// /// /// Thrown when fails to make API call - /// Signup step action + /// /// ApiResponse of Object(void) public ApiResponse SkipSignupStepWithHttpInfo (string signupStepAction) { @@ -2984,10 +2703,10 @@ public ApiResponse SkipSignupStepWithHttpInfo (string signupStepAction) } /// - /// Skip a signup question + /// /// /// Thrown when fails to make API call - /// Signup step action + /// /// Task of void public async System.Threading.Tasks.Task SkipSignupStepAsync (string signupStepAction) { @@ -2996,10 +2715,10 @@ public async System.Threading.Tasks.Task SkipSignupStepAsync (string signupStepA } /// - /// Skip a signup question + /// /// /// Thrown when fails to make API call - /// Signup step action + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> SkipSignupStepAsyncWithHttpInfo (string signupStepAction) { @@ -3059,10 +2778,10 @@ public async System.Threading.Tasks.Task> SkipSignupStepAsyn } /// - /// Update account with name and language + /// /// /// Thrown when fails to make API call - /// Update account model + /// /// public void UpdateAccount (AccountDetailBase updateAccountModel) { @@ -3070,10 +2789,10 @@ public void UpdateAccount (AccountDetailBase updateAccountModel) } /// - /// Update account with name and language + /// /// /// Thrown when fails to make API call - /// Update account model + /// /// ApiResponse of Object(void) public ApiResponse UpdateAccountWithHttpInfo (AccountDetailBase updateAccountModel) { @@ -3145,10 +2864,10 @@ public ApiResponse UpdateAccountWithHttpInfo (AccountDetailBase updateAc } /// - /// Update account with name and language + /// /// /// Thrown when fails to make API call - /// Update account model + /// /// Task of void public async System.Threading.Tasks.Task UpdateAccountAsync (AccountDetailBase updateAccountModel) { @@ -3157,10 +2876,10 @@ public async System.Threading.Tasks.Task UpdateAccountAsync (AccountDetailBase u } /// - /// Update account with name and language + /// /// /// Thrown when fails to make API call - /// Update account model + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateAccountAsyncWithHttpInfo (AccountDetailBase updateAccountModel) { diff --git a/src/Flipdish/Api/AddressApi.cs b/src/Flipdish/Api/AddressApi.cs index af1d3381..eb3d7bd2 100644 --- a/src/Flipdish/Api/AddressApi.cs +++ b/src/Flipdish/Api/AddressApi.cs @@ -25,76 +25,97 @@ public interface IAddressApi : IApiAccessor { #region Synchronous Operations /// - /// Provides a dyamic form definition based for the country of the given appId, with labels localized using the provided language. + /// + /// + /// + /// + /// + /// 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 - /// Application (WhiteLabel) Id (WhiteLabelId or AppNameId). - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// RestApiResultAddressFormResponse RestApiResultAddressFormResponse FormByApp (string appId, string language = null); /// - /// Provides a dyamic form definition based for the country of the given appId, with labels localized using the provided language. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application (WhiteLabel) Id (WhiteLabelId or AppNameId). - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// ApiResponse of RestApiResultAddressFormResponse ApiResponse FormByAppWithHttpInfo (string appId, string language = null); /// - /// Provides a dyamic form definition for the given country code, with labels localized using the provided language. + /// /// /// /// /// /// Thrown when fails to make API call - /// The 2 letter ISO country code, e.g.: IE. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// RestApiResultAddressFormResponse RestApiResultAddressFormResponse FormByCountry (string countryCode, string language = null); /// - /// Provides a dyamic form definition for the given country code, with labels localized using the provided language. + /// /// /// /// /// /// Thrown when fails to make API call - /// The 2 letter ISO country code, e.g.: IE. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// ApiResponse of RestApiResultAddressFormResponse ApiResponse FormByCountryWithHttpInfo (string countryCode, string language = null); /// - /// Maps a Google Address Object to the values of the dynamic form associated with the address country and returns the dynamic form. + /// /// /// /// /// /// Thrown when fails to make API call - /// A Google address object, as it is retuned from the maps API. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// RestApiResultAddressFormResponse RestApiResultAddressFormResponse FormatGoogleAddress (GoogleAddress googleAddress, string language = null); /// - /// Maps a Google Address Object to the values of the dynamic form associated with the address country and returns the dynamic form. + /// /// /// /// /// /// Thrown when fails to make API call - /// A Google address object, as it is retuned from the maps API. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// ApiResponse of RestApiResultAddressFormResponse ApiResponse FormatGoogleAddressWithHttpInfo (GoogleAddress googleAddress, string language = null); /// - /// Retuns a list of localised countries + /// /// /// /// @@ -105,7 +126,7 @@ public interface IAddressApi : IApiAccessor RestApiResultCountryFormResponse GetCountries (string language = null); /// - /// Retuns a list of localised countries + /// /// /// /// @@ -117,76 +138,97 @@ public interface IAddressApi : IApiAccessor #endregion Synchronous Operations #region Asynchronous Operations /// - /// Provides a dyamic form definition based for the country of the given appId, with labels localized using the provided language. + /// + /// + /// + /// + /// + /// 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 - /// Application (WhiteLabel) Id (WhiteLabelId or AppNameId). - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// Task of RestApiResultAddressFormResponse System.Threading.Tasks.Task FormByAppAsync (string appId, string language = null); /// - /// Provides a dyamic form definition based for the country of the given appId, with labels localized using the provided language. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application (WhiteLabel) Id (WhiteLabelId or AppNameId). - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// Task of ApiResponse (RestApiResultAddressFormResponse) System.Threading.Tasks.Task> FormByAppAsyncWithHttpInfo (string appId, string language = null); /// - /// Provides a dyamic form definition for the given country code, with labels localized using the provided language. + /// /// /// /// /// /// Thrown when fails to make API call - /// The 2 letter ISO country code, e.g.: IE. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// Task of RestApiResultAddressFormResponse System.Threading.Tasks.Task FormByCountryAsync (string countryCode, string language = null); /// - /// Provides a dyamic form definition for the given country code, with labels localized using the provided language. + /// /// /// /// /// /// Thrown when fails to make API call - /// The 2 letter ISO country code, e.g.: IE. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// Task of ApiResponse (RestApiResultAddressFormResponse) System.Threading.Tasks.Task> FormByCountryAsyncWithHttpInfo (string countryCode, string language = null); /// - /// Maps a Google Address Object to the values of the dynamic form associated with the address country and returns the dynamic form. + /// /// /// /// /// /// Thrown when fails to make API call - /// A Google address object, as it is retuned from the maps API. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// Task of RestApiResultAddressFormResponse System.Threading.Tasks.Task FormatGoogleAddressAsync (GoogleAddress googleAddress, string language = null); /// - /// Maps a Google Address Object to the values of the dynamic form associated with the address country and returns the dynamic form. + /// /// /// /// /// /// Thrown when fails to make API call - /// A Google address object, as it is retuned from the maps API. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// Task of ApiResponse (RestApiResultAddressFormResponse) System.Threading.Tasks.Task> FormatGoogleAddressAsyncWithHttpInfo (GoogleAddress googleAddress, string language = null); /// - /// Retuns a list of localised countries + /// /// /// /// @@ -197,7 +239,7 @@ public interface IAddressApi : IApiAccessor System.Threading.Tasks.Task GetCountriesAsync (string language = null); /// - /// Retuns a list of localised countries + /// /// /// /// @@ -307,11 +349,186 @@ public void AddDefaultHeader(string key, string value) } /// - /// Provides a dyamic form definition based for the country of the given appId, with labels localized using the provided language. + /// + /// + /// 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 - /// Application (WhiteLabel) Id (WhiteLabelId or AppNameId). - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// 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) { @@ -320,11 +537,11 @@ public RestApiResultAddressFormResponse FormByApp (string appId, string language } /// - /// Provides a dyamic form definition based for the country of the given appId, with labels localized using the provided language. + /// /// /// Thrown when fails to make API call - /// Application (WhiteLabel) Id (WhiteLabelId or AppNameId). - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// ApiResponse of RestApiResultAddressFormResponse public ApiResponse< RestApiResultAddressFormResponse > FormByAppWithHttpInfo (string appId, string language = null) { @@ -385,11 +602,11 @@ public ApiResponse< RestApiResultAddressFormResponse > FormByAppWithHttpInfo (st } /// - /// Provides a dyamic form definition based for the country of the given appId, with labels localized using the provided language. + /// /// /// Thrown when fails to make API call - /// Application (WhiteLabel) Id (WhiteLabelId or AppNameId). - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// Task of RestApiResultAddressFormResponse public async System.Threading.Tasks.Task FormByAppAsync (string appId, string language = null) { @@ -399,11 +616,11 @@ public async System.Threading.Tasks.Task FormB } /// - /// Provides a dyamic form definition based for the country of the given appId, with labels localized using the provided language. + /// /// /// Thrown when fails to make API call - /// Application (WhiteLabel) Id (WhiteLabelId or AppNameId). - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// Task of ApiResponse (RestApiResultAddressFormResponse) public async System.Threading.Tasks.Task> FormByAppAsyncWithHttpInfo (string appId, string language = null) { @@ -464,11 +681,11 @@ public async System.Threading.Tasks.Task - /// Provides a dyamic form definition for the given country code, with labels localized using the provided language. + /// /// /// Thrown when fails to make API call - /// The 2 letter ISO country code, e.g.: IE. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// RestApiResultAddressFormResponse public RestApiResultAddressFormResponse FormByCountry (string countryCode, string language = null) { @@ -477,11 +694,11 @@ public RestApiResultAddressFormResponse FormByCountry (string countryCode, strin } /// - /// Provides a dyamic form definition for the given country code, with labels localized using the provided language. + /// /// /// Thrown when fails to make API call - /// The 2 letter ISO country code, e.g.: IE. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// ApiResponse of RestApiResultAddressFormResponse public ApiResponse< RestApiResultAddressFormResponse > FormByCountryWithHttpInfo (string countryCode, string language = null) { @@ -542,11 +759,11 @@ public ApiResponse< RestApiResultAddressFormResponse > FormByCountryWithHttpInfo } /// - /// Provides a dyamic form definition for the given country code, with labels localized using the provided language. + /// /// /// Thrown when fails to make API call - /// The 2 letter ISO country code, e.g.: IE. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// Task of RestApiResultAddressFormResponse public async System.Threading.Tasks.Task FormByCountryAsync (string countryCode, string language = null) { @@ -556,11 +773,11 @@ public async System.Threading.Tasks.Task FormB } /// - /// Provides a dyamic form definition for the given country code, with labels localized using the provided language. + /// /// /// Thrown when fails to make API call - /// The 2 letter ISO country code, e.g.: IE. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// Task of ApiResponse (RestApiResultAddressFormResponse) public async System.Threading.Tasks.Task> FormByCountryAsyncWithHttpInfo (string countryCode, string language = null) { @@ -621,11 +838,11 @@ public async System.Threading.Tasks.Task - /// Maps a Google Address Object to the values of the dynamic form associated with the address country and returns the dynamic form. + /// /// /// Thrown when fails to make API call - /// A Google address object, as it is retuned from the maps API. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// RestApiResultAddressFormResponse public RestApiResultAddressFormResponse FormatGoogleAddress (GoogleAddress googleAddress, string language = null) { @@ -634,11 +851,11 @@ public RestApiResultAddressFormResponse FormatGoogleAddress (GoogleAddress googl } /// - /// Maps a Google Address Object to the values of the dynamic form associated with the address country and returns the dynamic form. + /// /// /// Thrown when fails to make API call - /// A Google address object, as it is retuned from the maps API. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// ApiResponse of RestApiResultAddressFormResponse public ApiResponse< RestApiResultAddressFormResponse > FormatGoogleAddressWithHttpInfo (GoogleAddress googleAddress, string language = null) { @@ -711,11 +928,11 @@ public ApiResponse< RestApiResultAddressFormResponse > FormatGoogleAddressWithHt } /// - /// Maps a Google Address Object to the values of the dynamic form associated with the address country and returns the dynamic form. + /// /// /// Thrown when fails to make API call - /// A Google address object, as it is retuned from the maps API. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// Task of RestApiResultAddressFormResponse public async System.Threading.Tasks.Task FormatGoogleAddressAsync (GoogleAddress googleAddress, string language = null) { @@ -725,11 +942,11 @@ public async System.Threading.Tasks.Task Forma } /// - /// Maps a Google Address Object to the values of the dynamic form associated with the address country and returns the dynamic form. + /// /// /// Thrown when fails to make API call - /// A Google address object, as it is retuned from the maps API. - /// (Optional) ISO culture info code, e.g.: en-IE, the default is en-US. (optional) + /// + /// (optional) /// Task of ApiResponse (RestApiResultAddressFormResponse) public async System.Threading.Tasks.Task> FormatGoogleAddressAsyncWithHttpInfo (GoogleAddress googleAddress, string language = null) { @@ -802,7 +1019,7 @@ public async System.Threading.Tasks.Task - /// Retuns a list of localised countries + /// /// /// Thrown when fails to make API call /// (optional) @@ -814,7 +1031,7 @@ public RestApiResultCountryFormResponse GetCountries (string language = null) } /// - /// Retuns a list of localised countries + /// /// /// Thrown when fails to make API call /// (optional) @@ -874,7 +1091,7 @@ public ApiResponse< RestApiResultCountryFormResponse > GetCountriesWithHttpInfo } /// - /// Retuns a list of localised countries + /// /// /// Thrown when fails to make API call /// (optional) @@ -887,7 +1104,7 @@ public async System.Threading.Tasks.Task GetCo } /// - /// Retuns a list of localised countries + /// /// /// Thrown when fails to make API call /// (optional) diff --git a/src/Flipdish/Api/ApmApi.cs b/src/Flipdish/Api/ApmApi.cs index 24249f35..2404dd20 100644 --- a/src/Flipdish/Api/ApmApi.cs +++ b/src/Flipdish/Api/ApmApi.cs @@ -25,301 +25,301 @@ public interface IApmApi : IApiAccessor { #region Synchronous Operations /// - /// [PRIVATE API] Returns true if APM is enabled on at least one store in an application + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id + /// /// RestApiResultApmStatus RestApiResultApmStatus GetApmStatus (string appId); /// - /// [PRIVATE API] Returns true if APM is enabled on at least one store in an application + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id + /// /// ApiResponse of RestApiResultApmStatus ApiResponse GetApmStatusWithHttpInfo (string appId); /// - /// [PRIVATE API] Get Basic Statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// RestApiResultApmStatistics RestApiResultApmStatistics GetBasicStatistics (string appId, List storeId = null); /// - /// [PRIVATE API] Get Basic Statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// ApiResponse of RestApiResultApmStatistics ApiResponse GetBasicStatisticsWithHttpInfo (string appId, List storeId = null); /// - /// [PRIVATE API] Get Calendar statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// RestApiArrayResultApmHourlyDataPoint RestApiArrayResultApmHourlyDataPoint GetCalendarWeekStatistics (string appId, List storeId = null); /// - /// [PRIVATE API] Get Calendar statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// ApiResponse of RestApiArrayResultApmHourlyDataPoint ApiResponse GetCalendarWeekStatisticsWithHttpInfo (string appId, List storeId = null); /// - /// [PRIVATE API] Get Calls Statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// RestApiArrayResultApmDataPoint RestApiArrayResultApmDataPoint GetCallsStatistics (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); /// - /// [PRIVATE API] Get Calls Statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// ApiResponse of RestApiArrayResultApmDataPoint ApiResponse GetCallsStatisticsWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); /// - /// [PRIVATE API] Get Order Statistics (Value of Orders) + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// RestApiArrayResultApmCurrencyDataPoint RestApiArrayResultApmCurrencyDataPoint GetOrderStatistics (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); /// - /// [PRIVATE API] Get Order Statistics (Value of Orders) + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// ApiResponse of RestApiArrayResultApmCurrencyDataPoint ApiResponse GetOrderStatisticsWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); /// - /// [PRIVATE API] Get paginated APM call list + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Requested page index (optional) - /// Requested page limit (optional) - /// List of stores to search by (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultPhoneCall RestApiPaginationResultPhoneCall GetPaginatedCallList (string appId, int? page = null, int? limit = null, List storeId = null); /// - /// [PRIVATE API] Get paginated APM call list + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Requested page index (optional) - /// Requested page limit (optional) - /// List of stores to search by (optional) + /// + /// (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 /// - /// [PRIVATE API] Returns true if APM is enabled on at least one store in an application + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id + /// /// Task of RestApiResultApmStatus System.Threading.Tasks.Task GetApmStatusAsync (string appId); /// - /// [PRIVATE API] Returns true if APM is enabled on at least one store in an application + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id + /// /// Task of ApiResponse (RestApiResultApmStatus) System.Threading.Tasks.Task> GetApmStatusAsyncWithHttpInfo (string appId); /// - /// [PRIVATE API] Get Basic Statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// Task of RestApiResultApmStatistics System.Threading.Tasks.Task GetBasicStatisticsAsync (string appId, List storeId = null); /// - /// [PRIVATE API] Get Basic Statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// Task of ApiResponse (RestApiResultApmStatistics) System.Threading.Tasks.Task> GetBasicStatisticsAsyncWithHttpInfo (string appId, List storeId = null); /// - /// [PRIVATE API] Get Calendar statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// Task of RestApiArrayResultApmHourlyDataPoint System.Threading.Tasks.Task GetCalendarWeekStatisticsAsync (string appId, List storeId = null); /// - /// [PRIVATE API] Get Calendar statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// Task of ApiResponse (RestApiArrayResultApmHourlyDataPoint) System.Threading.Tasks.Task> GetCalendarWeekStatisticsAsyncWithHttpInfo (string appId, List storeId = null); /// - /// [PRIVATE API] Get Calls Statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// Task of RestApiArrayResultApmDataPoint System.Threading.Tasks.Task GetCallsStatisticsAsync (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); /// - /// [PRIVATE API] Get Calls Statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// Task of ApiResponse (RestApiArrayResultApmDataPoint) System.Threading.Tasks.Task> GetCallsStatisticsAsyncWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); /// - /// [PRIVATE API] Get Order Statistics (Value of Orders) + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// Task of RestApiArrayResultApmCurrencyDataPoint System.Threading.Tasks.Task GetOrderStatisticsAsync (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); /// - /// [PRIVATE API] Get Order Statistics (Value of Orders) + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// Task of ApiResponse (RestApiArrayResultApmCurrencyDataPoint) System.Threading.Tasks.Task> GetOrderStatisticsAsyncWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null); /// - /// [PRIVATE API] Get paginated APM call list + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Requested page index (optional) - /// Requested page limit (optional) - /// List of stores to search by (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// Task of RestApiPaginationResultPhoneCall System.Threading.Tasks.Task GetPaginatedCallListAsync (string appId, int? page = null, int? limit = null, List storeId = null); /// - /// [PRIVATE API] Get paginated APM call list + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Requested page index (optional) - /// Requested page limit (optional) - /// List of stores to search by (optional) + /// + /// (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 @@ -423,10 +423,10 @@ public void AddDefaultHeader(string key, string value) } /// - /// [PRIVATE API] Returns true if APM is enabled on at least one store in an application + /// /// /// Thrown when fails to make API call - /// App Id + /// /// RestApiResultApmStatus public RestApiResultApmStatus GetApmStatus (string appId) { @@ -435,10 +435,10 @@ public RestApiResultApmStatus GetApmStatus (string appId) } /// - /// [PRIVATE API] Returns true if APM is enabled on at least one store in an application + /// /// /// Thrown when fails to make API call - /// App Id + /// /// ApiResponse of RestApiResultApmStatus public ApiResponse< RestApiResultApmStatus > GetApmStatusWithHttpInfo (string appId) { @@ -498,10 +498,10 @@ public ApiResponse< RestApiResultApmStatus > GetApmStatusWithHttpInfo (string ap } /// - /// [PRIVATE API] Returns true if APM is enabled on at least one store in an application + /// /// /// Thrown when fails to make API call - /// App Id + /// /// Task of RestApiResultApmStatus public async System.Threading.Tasks.Task GetApmStatusAsync (string appId) { @@ -511,10 +511,10 @@ public async System.Threading.Tasks.Task GetApmStatusAsy } /// - /// [PRIVATE API] Returns true if APM is enabled on at least one store in an application + /// /// /// Thrown when fails to make API call - /// App Id + /// /// Task of ApiResponse (RestApiResultApmStatus) public async System.Threading.Tasks.Task> GetApmStatusAsyncWithHttpInfo (string appId) { @@ -574,11 +574,11 @@ public async System.Threading.Tasks.Task> Ge } /// - /// [PRIVATE API] Get Basic Statistics + /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// RestApiResultApmStatistics public RestApiResultApmStatistics GetBasicStatistics (string appId, List storeId = null) { @@ -587,11 +587,11 @@ public RestApiResultApmStatistics GetBasicStatistics (string appId, List s } /// - /// [PRIVATE API] Get Basic Statistics + /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// ApiResponse of RestApiResultApmStatistics public ApiResponse< RestApiResultApmStatistics > GetBasicStatisticsWithHttpInfo (string appId, List storeId = null) { @@ -652,11 +652,11 @@ public ApiResponse< RestApiResultApmStatistics > GetBasicStatisticsWithHttpInfo } /// - /// [PRIVATE API] Get Basic Statistics + /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// Task of RestApiResultApmStatistics public async System.Threading.Tasks.Task GetBasicStatisticsAsync (string appId, List storeId = null) { @@ -666,11 +666,11 @@ public async System.Threading.Tasks.Task GetBasicSta } /// - /// [PRIVATE API] Get Basic Statistics + /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// Task of ApiResponse (RestApiResultApmStatistics) public async System.Threading.Tasks.Task> GetBasicStatisticsAsyncWithHttpInfo (string appId, List storeId = null) { @@ -731,11 +731,11 @@ public async System.Threading.Tasks.Task } /// - /// [PRIVATE API] Get Calendar statistics + /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// RestApiArrayResultApmHourlyDataPoint public RestApiArrayResultApmHourlyDataPoint GetCalendarWeekStatistics (string appId, List storeId = null) { @@ -744,11 +744,11 @@ public RestApiArrayResultApmHourlyDataPoint GetCalendarWeekStatistics (string ap } /// - /// [PRIVATE API] Get Calendar statistics + /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// ApiResponse of RestApiArrayResultApmHourlyDataPoint public ApiResponse< RestApiArrayResultApmHourlyDataPoint > GetCalendarWeekStatisticsWithHttpInfo (string appId, List storeId = null) { @@ -809,11 +809,11 @@ public ApiResponse< RestApiArrayResultApmHourlyDataPoint > GetCalendarWeekStatis } /// - /// [PRIVATE API] Get Calendar statistics + /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// Task of RestApiArrayResultApmHourlyDataPoint public async System.Threading.Tasks.Task GetCalendarWeekStatisticsAsync (string appId, List storeId = null) { @@ -823,11 +823,11 @@ public async System.Threading.Tasks.Task G } /// - /// [PRIVATE API] Get Calendar statistics + /// /// /// Thrown when fails to make API call - /// App Id - /// List of stores to search by (optional) + /// + /// (optional) /// Task of ApiResponse (RestApiArrayResultApmHourlyDataPoint) public async System.Threading.Tasks.Task> GetCalendarWeekStatisticsAsyncWithHttpInfo (string appId, List storeId = null) { @@ -888,13 +888,13 @@ public async System.Threading.Tasks.Task - /// [PRIVATE API] Get Calls Statistics + /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// RestApiArrayResultApmDataPoint public RestApiArrayResultApmDataPoint GetCallsStatistics (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) { @@ -903,13 +903,13 @@ public RestApiArrayResultApmDataPoint GetCallsStatistics (string appId, string a } /// - /// [PRIVATE API] Get Calls Statistics + /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// ApiResponse of RestApiArrayResultApmDataPoint public ApiResponse< RestApiArrayResultApmDataPoint > GetCallsStatisticsWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) { @@ -975,13 +975,13 @@ public ApiResponse< RestApiArrayResultApmDataPoint > GetCallsStatisticsWithHttpI } /// - /// [PRIVATE API] Get Calls Statistics + /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// Task of RestApiArrayResultApmDataPoint public async System.Threading.Tasks.Task GetCallsStatisticsAsync (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) { @@ -991,13 +991,13 @@ public async System.Threading.Tasks.Task GetCall } /// - /// [PRIVATE API] Get Calls Statistics + /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// Task of ApiResponse (RestApiArrayResultApmDataPoint) public async System.Threading.Tasks.Task> GetCallsStatisticsAsyncWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) { @@ -1063,13 +1063,13 @@ public async System.Threading.Tasks.Task - /// [PRIVATE API] Get Order Statistics (Value of Orders) + /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// RestApiArrayResultApmCurrencyDataPoint public RestApiArrayResultApmCurrencyDataPoint GetOrderStatistics (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) { @@ -1078,13 +1078,13 @@ public RestApiArrayResultApmCurrencyDataPoint GetOrderStatistics (string appId, } /// - /// [PRIVATE API] Get Order Statistics (Value of Orders) + /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// ApiResponse of RestApiArrayResultApmCurrencyDataPoint public ApiResponse< RestApiArrayResultApmCurrencyDataPoint > GetOrderStatisticsWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) { @@ -1150,13 +1150,13 @@ public ApiResponse< RestApiArrayResultApmCurrencyDataPoint > GetOrderStatisticsW } /// - /// [PRIVATE API] Get Order Statistics (Value of Orders) + /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// Task of RestApiArrayResultApmCurrencyDataPoint public async System.Threading.Tasks.Task GetOrderStatisticsAsync (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) { @@ -1166,13 +1166,13 @@ public async System.Threading.Tasks.Task } /// - /// [PRIVATE API] Get Order Statistics (Value of Orders) + /// /// /// Thrown when fails to make API call - /// App Id - /// Aggregate data by day \\ week - /// Amount of data points per request (optional) - /// List of stores to search by (optional) + /// + /// + /// (optional) + /// (optional) /// Task of ApiResponse (RestApiArrayResultApmCurrencyDataPoint) public async System.Threading.Tasks.Task> GetOrderStatisticsAsyncWithHttpInfo (string appId, string aggregateDataBy, int? dataPointLimit = null, List storeId = null) { @@ -1238,13 +1238,13 @@ public async System.Threading.Tasks.Task - /// [PRIVATE API] Get paginated APM call list + /// /// /// Thrown when fails to make API call - /// App Id - /// Requested page index (optional) - /// Requested page limit (optional) - /// List of stores to search by (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultPhoneCall public RestApiPaginationResultPhoneCall GetPaginatedCallList (string appId, int? page = null, int? limit = null, List storeId = null) { @@ -1253,13 +1253,13 @@ public RestApiPaginationResultPhoneCall GetPaginatedCallList (string appId, int? } /// - /// [PRIVATE API] Get paginated APM call list + /// /// /// Thrown when fails to make API call - /// App Id - /// Requested page index (optional) - /// Requested page limit (optional) - /// List of stores to search by (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiPaginationResultPhoneCall public ApiResponse< RestApiPaginationResultPhoneCall > GetPaginatedCallListWithHttpInfo (string appId, int? page = null, int? limit = null, List storeId = null) { @@ -1322,13 +1322,13 @@ public ApiResponse< RestApiPaginationResultPhoneCall > GetPaginatedCallListWithH } /// - /// [PRIVATE API] Get paginated APM call list + /// /// /// Thrown when fails to make API call - /// App Id - /// Requested page index (optional) - /// Requested page limit (optional) - /// List of stores to search by (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// Task of RestApiPaginationResultPhoneCall public async System.Threading.Tasks.Task GetPaginatedCallListAsync (string appId, int? page = null, int? limit = null, List storeId = null) { @@ -1338,13 +1338,13 @@ public async System.Threading.Tasks.Task GetPa } /// - /// [PRIVATE API] Get paginated APM call list + /// /// /// Thrown when fails to make API call - /// App Id - /// Requested page index (optional) - /// Requested page limit (optional) - /// List of stores to search by (optional) + /// + /// (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) { diff --git a/src/Flipdish/Api/AppStoreApi.cs b/src/Flipdish/Api/AppStoreApi.cs index 489763cd..04866403 100644 --- a/src/Flipdish/Api/AppStoreApi.cs +++ b/src/Flipdish/Api/AppStoreApi.cs @@ -25,103 +25,111 @@ public interface IAppStoreApi : IApiAccessor { #region Synchronous Operations /// - /// Get App store app + /// /// /// - /// App store app must be verified or you are the owner [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App store app id - /// AppStoreApp - AppStoreApp GetAppStoreApp (string appStoreAppId); + /// + /// (optional) + /// RestApiResultAppStoreApp + RestApiResultAppStoreApp GetAppStoreApp (string appStoreAppId, string appId = null); /// - /// Get App store app + /// /// /// - /// App store app must be verified or you are the owner [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App store app id - /// ApiResponse of AppStoreApp - ApiResponse GetAppStoreAppWithHttpInfo (string appStoreAppId); + /// + /// (optional) + /// ApiResponse of RestApiResultAppStoreApp + ApiResponse GetAppStoreAppWithHttpInfo (string appStoreAppId, string appId = null); /// - /// Get list of App store app summaries + /// /// /// - /// Only returns verified applications [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// Query App store app name - /// Requested page index (optional) - /// Requested page limit (optional) - /// Exclude App store apps that user is not the owner off (optional) + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultAppStoreAppSummary - RestApiPaginationResultAppStoreAppSummary GetAppStoreApps (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null); + RestApiPaginationResultAppStoreAppSummary GetAppStoreApps (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null); /// - /// Get list of App store app summaries + /// /// /// - /// Only returns verified applications [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// Query App store app name - /// Requested page index (optional) - /// Requested page limit (optional) - /// Exclude App store apps that user is not the owner off (optional) + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiPaginationResultAppStoreAppSummary - ApiResponse GetAppStoreAppsWithHttpInfo (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null); + ApiResponse GetAppStoreAppsWithHttpInfo (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get App store app + /// /// /// - /// App store app must be verified or you are the owner [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App store app id - /// Task of AppStoreApp - System.Threading.Tasks.Task GetAppStoreAppAsync (string appStoreAppId); + /// + /// (optional) + /// Task of RestApiResultAppStoreApp + System.Threading.Tasks.Task GetAppStoreAppAsync (string appStoreAppId, string appId = null); /// - /// Get App store app + /// /// /// - /// App store app must be verified or you are the owner [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App store app id - /// Task of ApiResponse (AppStoreApp) - System.Threading.Tasks.Task> GetAppStoreAppAsyncWithHttpInfo (string appStoreAppId); + /// + /// (optional) + /// Task of ApiResponse (RestApiResultAppStoreApp) + System.Threading.Tasks.Task> GetAppStoreAppAsyncWithHttpInfo (string appStoreAppId, string appId = null); /// - /// Get list of App store app summaries + /// /// /// - /// Only returns verified applications [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// Query App store app name - /// Requested page index (optional) - /// Requested page limit (optional) - /// Exclude App store apps that user is not the owner off (optional) + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) /// Task of RestApiPaginationResultAppStoreAppSummary - System.Threading.Tasks.Task GetAppStoreAppsAsync (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null); + System.Threading.Tasks.Task GetAppStoreAppsAsync (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null); /// - /// Get list of App store app summaries + /// /// /// - /// Only returns verified applications [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// Query App store app name - /// Requested page index (optional) - /// Requested page limit (optional) - /// Exclude App store apps that user is not the owner off (optional) + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) /// Task of ApiResponse (RestApiPaginationResultAppStoreAppSummary) - System.Threading.Tasks.Task> GetAppStoreAppsAsyncWithHttpInfo (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null); + System.Threading.Tasks.Task> GetAppStoreAppsAsyncWithHttpInfo (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null); #endregion Asynchronous Operations } @@ -223,24 +231,26 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get App store app App store app must be verified or you are the owner [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App store app id - /// AppStoreApp - public AppStoreApp GetAppStoreApp (string appStoreAppId) + /// + /// (optional) + /// RestApiResultAppStoreApp + public RestApiResultAppStoreApp GetAppStoreApp (string appStoreAppId, string appId = null) { - ApiResponse localVarResponse = GetAppStoreAppWithHttpInfo(appStoreAppId); + ApiResponse localVarResponse = GetAppStoreAppWithHttpInfo(appStoreAppId, appId); return localVarResponse.Data; } /// - /// Get App store app App store app must be verified or you are the owner [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App store app id - /// ApiResponse of AppStoreApp - public ApiResponse< AppStoreApp > GetAppStoreAppWithHttpInfo (string appStoreAppId) + /// + /// (optional) + /// ApiResponse of RestApiResultAppStoreApp + public ApiResponse< RestApiResultAppStoreApp > GetAppStoreAppWithHttpInfo (string appStoreAppId, string appId = null) { // verify the required parameter 'appStoreAppId' is set if (appStoreAppId == null) @@ -271,6 +281,7 @@ public ApiResponse< AppStoreApp > GetAppStoreAppWithHttpInfo (string appStoreApp 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 @@ -292,31 +303,33 @@ public ApiResponse< AppStoreApp > GetAppStoreAppWithHttpInfo (string appStoreApp if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (AppStoreApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AppStoreApp))); + (RestApiResultAppStoreApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreApp))); } /// - /// Get App store app App store app must be verified or you are the owner [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App store app id - /// Task of AppStoreApp - public async System.Threading.Tasks.Task GetAppStoreAppAsync (string appStoreAppId) + /// + /// (optional) + /// Task of RestApiResultAppStoreApp + public async System.Threading.Tasks.Task GetAppStoreAppAsync (string appStoreAppId, string appId = null) { - ApiResponse localVarResponse = await GetAppStoreAppAsyncWithHttpInfo(appStoreAppId); + ApiResponse localVarResponse = await GetAppStoreAppAsyncWithHttpInfo(appStoreAppId, appId); return localVarResponse.Data; } /// - /// Get App store app App store app must be verified or you are the owner [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App store app id - /// Task of ApiResponse (AppStoreApp) - public async System.Threading.Tasks.Task> GetAppStoreAppAsyncWithHttpInfo (string appStoreAppId) + /// + /// (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) @@ -347,6 +360,7 @@ public async System.Threading.Tasks.Task> GetAppStoreAp 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 @@ -368,36 +382,38 @@ public async System.Threading.Tasks.Task> GetAppStoreAp if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (AppStoreApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AppStoreApp))); + (RestApiResultAppStoreApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreApp))); } /// - /// Get list of App store app summaries Only returns verified applications [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// Query App store app name - /// Requested page index (optional) - /// Requested page limit (optional) - /// Exclude App store apps that user is not the owner off (optional) + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultAppStoreAppSummary - public RestApiPaginationResultAppStoreAppSummary GetAppStoreApps (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null) + public RestApiPaginationResultAppStoreAppSummary GetAppStoreApps (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null, bool? showOnlyVerified = null) { - ApiResponse localVarResponse = GetAppStoreAppsWithHttpInfo(search, page, limit, excludeNotOwned); + ApiResponse localVarResponse = GetAppStoreAppsWithHttpInfo(search, page, limit, excludeNotOwned, showOnlyVerified); return localVarResponse.Data; } /// - /// Get list of App store app summaries Only returns verified applications [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// Query App store app name - /// Requested page index (optional) - /// Requested page limit (optional) - /// Exclude App store apps that user is not the owner off (optional) + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiPaginationResultAppStoreAppSummary - public ApiResponse< RestApiPaginationResultAppStoreAppSummary > GetAppStoreAppsWithHttpInfo (string search, int? page = null, int? limit = null, bool? excludeNotOwned = null) + 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) @@ -431,6 +447,7 @@ public ApiResponse< RestApiPaginationResultAppStoreAppSummary > GetAppStoreAppsW 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 @@ -458,31 +475,33 @@ public ApiResponse< RestApiPaginationResultAppStoreAppSummary > GetAppStoreAppsW } /// - /// Get list of App store app summaries Only returns verified applications [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// Query App store app name - /// Requested page index (optional) - /// Requested page limit (optional) - /// Exclude App store apps that user is not the owner off (optional) + /// + /// (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) + 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); + ApiResponse localVarResponse = await GetAppStoreAppsAsyncWithHttpInfo(search, page, limit, excludeNotOwned, showOnlyVerified); return localVarResponse.Data; } /// - /// Get list of App store app summaries Only returns verified applications [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// Query App store app name - /// Requested page index (optional) - /// Requested page limit (optional) - /// Exclude App store apps that user is not the owner off (optional) + /// + /// (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) + 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) @@ -516,6 +535,7 @@ public async System.Threading.Tasks.Task - /// Create App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] This adds an Application to a Whitelabel that can later be configured to specific stores + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id + /// + /// 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); /// - /// Create App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] This adds an Application to a Whitelabel that can later be configured to specific stores + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id + /// + /// /// ApiResponse of RestApiResultAppStoreAppConfiguration ApiResponse CreateAppStoreConfigWithHttpInfo (string appId, string appStoreAppId); /// - /// Delete App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id + /// + /// + /// /// RestApiStringResult RestApiStringResult DeleteAppStoreConfig (string appId, string appStoreAppId, string configId); /// - /// Delete App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id + /// + /// + /// /// ApiResponse of RestApiStringResult ApiResponse DeleteAppStoreConfigWithHttpInfo (string appId, string appStoreAppId, string configId); /// - /// Get App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// AppStoreAppConfiguration - AppStoreAppConfiguration GetAppStoreConfig (string appId, string appStoreAppId, string configId); + /// + /// + /// + /// + /// RestApiResultExecuteConfigurationActionResult + RestApiResultExecuteConfigurationActionResult ExecuteConfigurationAction (string appId, string appStoreAppId, string configId, ExecuteConfigurationActionRequest executeConfigurationActionRequest); /// - /// Get App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// ApiResponse of AppStoreAppConfiguration - ApiResponse GetAppStoreConfigWithHttpInfo (string appId, string appStoreAppId, string configId); + /// + /// + /// + /// + /// ApiResponse of RestApiResultExecuteConfigurationActionResult + ApiResponse ExecuteConfigurationActionWithHttpInfo (string appId, string appStoreAppId, string configId, ExecuteConfigurationActionRequest executeConfigurationActionRequest); /// - /// Get list of App store app configurations for one App store app + /// /// /// - /// [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id + /// + /// + /// + /// 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); /// - /// Get list of App store app configurations for one App store app + /// /// /// - /// [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id + /// + /// /// ApiResponse of RestApiArrayResultAppStoreAppConfigurationSummary ApiResponse GetConfiguredAppSingleAppWithHttpInfo (string appId, string appStoreAppId); /// - /// Get list of App store apps which have been configured + /// /// /// - /// [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// RestApiArrayResultAppStoreAppConfigurationHeader - RestApiArrayResultAppStoreAppConfigurationHeader GetConfiguredApps (string appId); + /// + /// RestApiArrayResultAppStoreAppSummary + RestApiArrayResultAppStoreAppSummary GetConfiguredApps (string appId); /// - /// Get list of App store apps which have been configured + /// /// /// - /// [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// ApiResponse of RestApiArrayResultAppStoreAppConfigurationHeader - ApiResponse GetConfiguredAppsWithHttpInfo (string appId); + /// + /// ApiResponse of RestApiArrayResultAppStoreAppSummary + ApiResponse GetConfiguredAppsWithHttpInfo (string appId); /// - /// Update App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// Update App store app configuration + /// + /// + /// + /// /// void UpdateAppStoreConfig (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration); /// - /// Update App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// Update App store app configuration + /// + /// + /// + /// /// 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 /// - /// Create App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] This adds an Application to a Whitelabel that can later be configured to specific stores + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id + /// + /// 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); /// - /// Create App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] This adds an Application to a Whitelabel that can later be configured to specific stores + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id + /// + /// /// Task of ApiResponse (RestApiResultAppStoreAppConfiguration) System.Threading.Tasks.Task> CreateAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId); /// - /// Delete App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id + /// + /// + /// /// Task of RestApiStringResult System.Threading.Tasks.Task DeleteAppStoreConfigAsync (string appId, string appStoreAppId, string configId); /// - /// Delete App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id + /// + /// + /// /// Task of ApiResponse (RestApiStringResult) System.Threading.Tasks.Task> DeleteAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId, string configId); /// - /// Get App store app configuration + /// + /// + /// + /// + /// + /// 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); + /// + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// Task of AppStoreAppConfiguration - System.Threading.Tasks.Task GetAppStoreConfigAsync (string appId, string appStoreAppId, string configId); + /// + /// + /// + /// Task of RestApiResultAppStoreAppConfiguration + System.Threading.Tasks.Task GetAppStoreConfigAsync (string appId, string appStoreAppId, string configId); /// - /// Get App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// Task of ApiResponse (AppStoreAppConfiguration) - System.Threading.Tasks.Task> GetAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId, string configId); + /// + /// + /// + /// Task of ApiResponse (RestApiResultAppStoreAppConfiguration) + System.Threading.Tasks.Task> GetAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId, string configId); /// - /// Get list of App store app configurations for one App store app + /// /// /// - /// [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id + /// + /// /// Task of RestApiArrayResultAppStoreAppConfigurationSummary System.Threading.Tasks.Task GetConfiguredAppSingleAppAsync (string appId, string appStoreAppId); /// - /// Get list of App store app configurations for one App store app + /// /// /// - /// [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id + /// + /// /// Task of ApiResponse (RestApiArrayResultAppStoreAppConfigurationSummary) System.Threading.Tasks.Task> GetConfiguredAppSingleAppAsyncWithHttpInfo (string appId, string appStoreAppId); /// - /// Get list of App store apps which have been configured + /// /// /// - /// [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// Task of RestApiArrayResultAppStoreAppConfigurationHeader - System.Threading.Tasks.Task GetConfiguredAppsAsync (string appId); + /// + /// Task of RestApiArrayResultAppStoreAppSummary + System.Threading.Tasks.Task GetConfiguredAppsAsync (string appId); /// - /// Get list of App store apps which have been configured + /// /// /// - /// [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// Task of ApiResponse (RestApiArrayResultAppStoreAppConfigurationHeader) - System.Threading.Tasks.Task> GetConfiguredAppsAsyncWithHttpInfo (string appId); + /// + /// Task of ApiResponse (RestApiArrayResultAppStoreAppSummary) + System.Threading.Tasks.Task> GetConfiguredAppsAsyncWithHttpInfo (string appId); /// - /// Update App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// Update App store app configuration + /// + /// + /// + /// /// Task of void System.Threading.Tasks.Task UpdateAppStoreConfigAsync (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration); /// - /// Update App store app configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// Update App store app configuration + /// + /// + /// + /// /// 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 } @@ -415,11 +565,162 @@ public void AddDefaultHeader(string key, string value) } /// - /// Create App store app configuration [BETA - this endpoint is under development, do not use it in your production system] This adds an Application to a Whitelabel that can later be configured to specific stores + /// + /// + /// 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 - /// App id - /// App store app id + /// + /// 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) { @@ -428,11 +729,11 @@ public RestApiResultAppStoreAppConfiguration CreateAppStoreConfig (string appId, } /// - /// Create App store app configuration [BETA - this endpoint is under development, do not use it in your production system] This adds an Application to a Whitelabel that can later be configured to specific stores + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id + /// + /// /// ApiResponse of RestApiResultAppStoreAppConfiguration public ApiResponse< RestApiResultAppStoreAppConfiguration > CreateAppStoreConfigWithHttpInfo (string appId, string appStoreAppId) { @@ -443,7 +744,175 @@ public ApiResponse< RestApiResultAppStoreAppConfiguration > CreateAppStoreConfig 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 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); @@ -469,6 +938,7 @@ public ApiResponse< RestApiResultAppStoreAppConfiguration > CreateAppStoreConfig 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 @@ -479,53 +949,58 @@ public ApiResponse< RestApiResultAppStoreAppConfiguration > CreateAppStoreConfig // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("CreateAppStoreConfig", localVarResponse); + Exception exception = ExceptionFactory("DeleteAppStoreConfig", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultAppStoreAppConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreAppConfiguration))); + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); } /// - /// Create App store app configuration [BETA - this endpoint is under development, do not use it in your production system] This adds an Application to a Whitelabel that can later be configured to specific stores + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// Task of RestApiResultAppStoreAppConfiguration - public async System.Threading.Tasks.Task CreateAppStoreConfigAsync (string appId, string appStoreAppId) + /// + /// + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task DeleteAppStoreConfigAsync (string appId, string appStoreAppId, string configId) { - ApiResponse localVarResponse = await CreateAppStoreConfigAsyncWithHttpInfo(appId, appStoreAppId); + ApiResponse localVarResponse = await DeleteAppStoreConfigAsyncWithHttpInfo(appId, appStoreAppId, configId); return localVarResponse.Data; } /// - /// Create App store app configuration [BETA - this endpoint is under development, do not use it in your production system] This adds an Application to a Whitelabel that can later be configured to specific stores + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// Task of ApiResponse (RestApiResultAppStoreAppConfiguration) - public async System.Threading.Tasks.Task> CreateAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId) + /// + /// + /// + /// 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->CreateAppStoreConfig"); + 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->CreateAppStoreConfig"); + 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"; + 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); @@ -551,6 +1026,7 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultAppStoreAppConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreAppConfiguration))); + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); } /// - /// Delete App store app configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// RestApiStringResult - public RestApiStringResult DeleteAppStoreConfig (string appId, string appStoreAppId, string configId) + /// + /// + /// + /// + /// RestApiResultExecuteConfigurationActionResult + public RestApiResultExecuteConfigurationActionResult ExecuteConfigurationAction (string appId, string appStoreAppId, string configId, ExecuteConfigurationActionRequest executeConfigurationActionRequest) { - ApiResponse localVarResponse = DeleteAppStoreConfigWithHttpInfo(appId, appStoreAppId, configId); + ApiResponse localVarResponse = ExecuteConfigurationActionWithHttpInfo(appId, appStoreAppId, configId, executeConfigurationActionRequest); return localVarResponse.Data; } /// - /// Delete App store app configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// ApiResponse of RestApiStringResult - public ApiResponse< RestApiStringResult > DeleteAppStoreConfigWithHttpInfo (string appId, string appStoreAppId, string configId) + /// + /// + /// + /// + /// 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->DeleteAppStoreConfig"); + 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->DeleteAppStoreConfig"); + 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->DeleteAppStoreConfig"); + 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}"; + 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); @@ -621,6 +1102,11 @@ public ApiResponse< RestApiStringResult > DeleteAppStoreConfigWithHttpInfo (stri // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -638,6 +1124,14 @@ public ApiResponse< RestApiStringResult > DeleteAppStoreConfigWithHttpInfo (stri 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 @@ -648,58 +1142,63 @@ public ApiResponse< RestApiStringResult > DeleteAppStoreConfigWithHttpInfo (stri // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("DeleteAppStoreConfig", localVarResponse); + Exception exception = ExceptionFactory("ExecuteConfigurationAction", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + (RestApiResultExecuteConfigurationActionResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultExecuteConfigurationActionResult))); } /// - /// Delete App store app configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// Task of RestApiStringResult - public async System.Threading.Tasks.Task DeleteAppStoreConfigAsync (string appId, string appStoreAppId, string configId) + /// + /// + /// + /// + /// Task of RestApiResultExecuteConfigurationActionResult + public async System.Threading.Tasks.Task ExecuteConfigurationActionAsync (string appId, string appStoreAppId, string configId, ExecuteConfigurationActionRequest executeConfigurationActionRequest) { - ApiResponse localVarResponse = await DeleteAppStoreConfigAsyncWithHttpInfo(appId, appStoreAppId, configId); + ApiResponse localVarResponse = await ExecuteConfigurationActionAsyncWithHttpInfo(appId, appStoreAppId, configId, executeConfigurationActionRequest); return localVarResponse.Data; } /// - /// Delete App store app configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// Task of ApiResponse (RestApiStringResult) - public async System.Threading.Tasks.Task> DeleteAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId, string configId) + /// + /// + /// + /// + /// 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->DeleteAppStoreConfig"); + 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->DeleteAppStoreConfig"); + 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->DeleteAppStoreConfig"); + 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}"; + 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); @@ -709,6 +1208,11 @@ public async System.Threading.Tasks.Task> Delet // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -726,6 +1230,14 @@ public async System.Threading.Tasks.Task> Delet 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 @@ -736,45 +1248,45 @@ public async System.Threading.Tasks.Task> Delet // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("DeleteAppStoreConfig", localVarResponse); + Exception exception = ExceptionFactory("ExecuteConfigurationAction", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + (RestApiResultExecuteConfigurationActionResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultExecuteConfigurationActionResult))); } /// - /// Get App store app configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// AppStoreAppConfiguration - public AppStoreAppConfiguration GetAppStoreConfig (string appId, string appStoreAppId, string configId) + /// + /// + /// + /// RestApiResultAppStoreAppConfiguration + public RestApiResultAppStoreAppConfiguration GetAppStoreConfig (string appId, string appStoreAppId, string configId) { - ApiResponse localVarResponse = GetAppStoreConfigWithHttpInfo(appId, appStoreAppId, configId); + ApiResponse localVarResponse = GetAppStoreConfigWithHttpInfo(appId, appStoreAppId, configId); return localVarResponse.Data; } /// - /// Get App store app configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// ApiResponse of AppStoreAppConfiguration - public ApiResponse< AppStoreAppConfiguration > GetAppStoreConfigWithHttpInfo (string appId, string appStoreAppId, string configId) + /// + /// + /// + /// ApiResponse of RestApiResultAppStoreAppConfiguration + public ApiResponse< RestApiResultAppStoreAppConfiguration > GetAppStoreConfigWithHttpInfo (string appId, string appStoreAppId, string configId) { // verify the required parameter 'appId' is set if (appId == null) @@ -834,35 +1346,35 @@ public ApiResponse< AppStoreAppConfiguration > GetAppStoreConfigWithHttpInfo (st if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (AppStoreAppConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AppStoreAppConfiguration))); + (RestApiResultAppStoreAppConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreAppConfiguration))); } /// - /// Get App store app configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// Task of AppStoreAppConfiguration - public async System.Threading.Tasks.Task GetAppStoreConfigAsync (string appId, string appStoreAppId, string configId) + /// + /// + /// + /// Task of RestApiResultAppStoreAppConfiguration + public async System.Threading.Tasks.Task GetAppStoreConfigAsync (string appId, string appStoreAppId, string configId) { - ApiResponse localVarResponse = await GetAppStoreConfigAsyncWithHttpInfo(appId, appStoreAppId, configId); + ApiResponse localVarResponse = await GetAppStoreConfigAsyncWithHttpInfo(appId, appStoreAppId, configId); return localVarResponse.Data; } /// - /// Get App store app configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// Task of ApiResponse (AppStoreAppConfiguration) - public async System.Threading.Tasks.Task> GetAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId, string configId) + /// + /// + /// + /// 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) @@ -922,17 +1434,17 @@ public async System.Threading.Tasks.Task> if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (AppStoreAppConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AppStoreAppConfiguration))); + (RestApiResultAppStoreAppConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreAppConfiguration))); } /// - /// Get list of App store app configurations for one App store app [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id + /// + /// /// RestApiArrayResultAppStoreAppConfigurationSummary public RestApiArrayResultAppStoreAppConfigurationSummary GetConfiguredAppSingleApp (string appId, string appStoreAppId) { @@ -941,11 +1453,11 @@ public RestApiArrayResultAppStoreAppConfigurationSummary GetConfiguredAppSingleA } /// - /// Get list of App store app configurations for one App store app [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id + /// + /// /// ApiResponse of RestApiArrayResultAppStoreAppConfigurationSummary public ApiResponse< RestApiArrayResultAppStoreAppConfigurationSummary > GetConfiguredAppSingleAppWithHttpInfo (string appId, string appStoreAppId) { @@ -1009,11 +1521,11 @@ public ApiResponse< RestApiArrayResultAppStoreAppConfigurationSummary > GetConfi } /// - /// Get list of App store app configurations for one App store app [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id + /// + /// /// Task of RestApiArrayResultAppStoreAppConfigurationSummary public async System.Threading.Tasks.Task GetConfiguredAppSingleAppAsync (string appId, string appStoreAppId) { @@ -1023,11 +1535,11 @@ public async System.Threading.Tasks.Task - /// Get list of App store app configurations for one App store app [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id + /// + /// /// Task of ApiResponse (RestApiArrayResultAppStoreAppConfigurationSummary) public async System.Threading.Tasks.Task> GetConfiguredAppSingleAppAsyncWithHttpInfo (string appId, string appStoreAppId) { @@ -1091,24 +1603,24 @@ public async System.Threading.Tasks.Task - /// Get list of App store apps which have been configured [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// RestApiArrayResultAppStoreAppConfigurationHeader - public RestApiArrayResultAppStoreAppConfigurationHeader GetConfiguredApps (string appId) + /// + /// RestApiArrayResultAppStoreAppSummary + public RestApiArrayResultAppStoreAppSummary GetConfiguredApps (string appId) { - ApiResponse localVarResponse = GetConfiguredAppsWithHttpInfo(appId); + ApiResponse localVarResponse = GetConfiguredAppsWithHttpInfo(appId); return localVarResponse.Data; } /// - /// Get list of App store apps which have been configured [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// ApiResponse of RestApiArrayResultAppStoreAppConfigurationHeader - public ApiResponse< RestApiArrayResultAppStoreAppConfigurationHeader > GetConfiguredAppsWithHttpInfo (string appId) + /// + /// ApiResponse of RestApiArrayResultAppStoreAppSummary + public ApiResponse< RestApiArrayResultAppStoreAppSummary > GetConfiguredAppsWithHttpInfo (string appId) { // verify the required parameter 'appId' is set if (appId == null) @@ -1160,31 +1672,31 @@ public ApiResponse< RestApiArrayResultAppStoreAppConfigurationHeader > GetConfig if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultAppStoreAppConfigurationHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAppStoreAppConfigurationHeader))); + (RestApiArrayResultAppStoreAppSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAppStoreAppSummary))); } /// - /// Get list of App store apps which have been configured [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// Task of RestApiArrayResultAppStoreAppConfigurationHeader - public async System.Threading.Tasks.Task GetConfiguredAppsAsync (string appId) + /// + /// Task of RestApiArrayResultAppStoreAppSummary + public async System.Threading.Tasks.Task GetConfiguredAppsAsync (string appId) { - ApiResponse localVarResponse = await GetConfiguredAppsAsyncWithHttpInfo(appId); + ApiResponse localVarResponse = await GetConfiguredAppsAsyncWithHttpInfo(appId); return localVarResponse.Data; } /// - /// Get list of App store apps which have been configured [ALPHA - this endpoint is not ready to be consumed] + /// /// /// Thrown when fails to make API call - /// App id - /// Task of ApiResponse (RestApiArrayResultAppStoreAppConfigurationHeader) - public async System.Threading.Tasks.Task> GetConfiguredAppsAsyncWithHttpInfo (string appId) + /// + /// Task of ApiResponse (RestApiArrayResultAppStoreAppSummary) + public async System.Threading.Tasks.Task> GetConfiguredAppsAsyncWithHttpInfo (string appId) { // verify the required parameter 'appId' is set if (appId == null) @@ -1236,19 +1748,19 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultAppStoreAppConfigurationHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAppStoreAppConfigurationHeader))); + (RestApiArrayResultAppStoreAppSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAppStoreAppSummary))); } /// - /// Update App store app configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// Update App store app configuration + /// + /// + /// + /// /// public void UpdateAppStoreConfig (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration) { @@ -1256,13 +1768,13 @@ public void UpdateAppStoreConfig (string appId, string appStoreAppId, string con } /// - /// Update App store app configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// Update App store app configuration + /// + /// + /// + /// /// ApiResponse of Object(void) public ApiResponse UpdateAppStoreConfigWithHttpInfo (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration) { @@ -1346,13 +1858,13 @@ public ApiResponse UpdateAppStoreConfigWithHttpInfo (string appId, strin } /// - /// Update App store app configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// Update App store app configuration + /// + /// + /// + /// /// Task of void public async System.Threading.Tasks.Task UpdateAppStoreConfigAsync (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration) { @@ -1361,13 +1873,13 @@ public async System.Threading.Tasks.Task UpdateAppStoreConfigAsync (string appId } /// - /// Update App store app configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app id - /// App store app configuration id - /// Update App store app configuration + /// + /// + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateAppStoreConfigAsyncWithHttpInfo (string appId, string appStoreAppId, string configId, UpdateAppStoreAppConfiguration updateAppStoreAppConfiguration) { @@ -1450,5 +1962,214 @@ public async System.Threading.Tasks.Task> UpdateAppStoreConf 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 index 01df7bf8..ec2c06d0 100644 --- a/src/Flipdish/Api/AppStoreDeveloperApi.cs +++ b/src/Flipdish/Api/AppStoreDeveloperApi.cs @@ -25,246 +25,388 @@ public interface IAppStoreDeveloperApi : IApiAccessor { #region Synchronous Operations /// - /// Update App store app verification + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system][Note: Only Flipdish staff can verify apps] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// New verification status + /// + /// + /// /// void AppVerificationUpdate (string oauthAppId, string appStoreAppId, string verificationStatus); /// - /// Update App store app verification + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system][Note: Only Flipdish staff can verify apps] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// New verification status + /// + /// + /// /// ApiResponse of Object(void) ApiResponse AppVerificationUpdateWithHttpInfo (string oauthAppId, string appStoreAppId, string verificationStatus); /// - /// Create App store app + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app + /// + /// /// RestApiResultAppStoreApp RestApiResultAppStoreApp CreateAppStoreApp (string oauthAppId, CreateAppStoreApp createAppStoreApp); /// - /// Create App store app + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app + /// + /// /// ApiResponse of RestApiResultAppStoreApp ApiResponse CreateAppStoreAppWithHttpInfo (string oauthAppId, CreateAppStoreApp createAppStoreApp); /// - /// Delete App store app + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id + /// + /// /// RestApiStringResult RestApiStringResult DeleteAppStoreApp (string oauthAppId, string appStoreAppId); /// - /// Delete App store app + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id + /// + /// /// ApiResponse of RestApiStringResult ApiResponse DeleteAppStoreAppWithHttpInfo (string oauthAppId, string appStoreAppId); /// - /// Update App store app + /// + /// + /// + /// + /// + /// 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); + /// + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// Update App store app + /// + /// + /// /// void UpdateAppStoreApp (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp); /// - /// Update App store app + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// Update App store app + /// + /// + /// /// ApiResponse of Object(void) ApiResponse UpdateAppStoreAppWithHttpInfo (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp); /// - /// Upload the App store app logo \\ icon + /// + /// + /// + /// + /// + /// 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 - /// OAuth App identifier - /// App store app id + /// + /// /// App Store App Logo /// void UploadAppStoreAppLogo (string oauthAppId, string appStoreAppId, System.IO.Stream image); /// - /// Upload the App store app logo \\ icon + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id + /// + /// /// App Store App Logo /// ApiResponse of Object(void) ApiResponse UploadAppStoreAppLogoWithHttpInfo (string oauthAppId, string appStoreAppId, System.IO.Stream image); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Update App store app verification + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system][Note: Only Flipdish staff can verify apps] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// New verification status + /// + /// + /// /// Task of void System.Threading.Tasks.Task AppVerificationUpdateAsync (string oauthAppId, string appStoreAppId, string verificationStatus); /// - /// Update App store app verification + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system][Note: Only Flipdish staff can verify apps] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// New verification status + /// + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> AppVerificationUpdateAsyncWithHttpInfo (string oauthAppId, string appStoreAppId, string verificationStatus); /// - /// Create App store app + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app + /// + /// /// Task of RestApiResultAppStoreApp System.Threading.Tasks.Task CreateAppStoreAppAsync (string oauthAppId, CreateAppStoreApp createAppStoreApp); /// - /// Create App store app + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app + /// + /// /// Task of ApiResponse (RestApiResultAppStoreApp) System.Threading.Tasks.Task> CreateAppStoreAppAsyncWithHttpInfo (string oauthAppId, CreateAppStoreApp createAppStoreApp); /// - /// Delete App store app + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id + /// + /// /// Task of RestApiStringResult System.Threading.Tasks.Task DeleteAppStoreAppAsync (string oauthAppId, string appStoreAppId); /// - /// Delete App store app + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id + /// + /// /// Task of ApiResponse (RestApiStringResult) System.Threading.Tasks.Task> DeleteAppStoreAppAsyncWithHttpInfo (string oauthAppId, string appStoreAppId); /// - /// Update App store app + /// + /// + /// + /// + /// + /// 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); + /// + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// Update App store app + /// + /// + /// /// Task of void System.Threading.Tasks.Task UpdateAppStoreAppAsync (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp); /// - /// Update App store app + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// Update App store app + /// + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> UpdateAppStoreAppAsyncWithHttpInfo (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp); /// - /// Upload the App store app logo \\ icon + /// + /// + /// + /// + /// + /// 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 - /// OAuth App identifier - /// App store app id + /// + /// /// App Store App Logo /// Task of void System.Threading.Tasks.Task UploadAppStoreAppLogoAsync (string oauthAppId, string appStoreAppId, System.IO.Stream image); /// - /// Upload the App store app logo \\ icon + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id + /// + /// /// App Store App Logo /// Task of ApiResponse System.Threading.Tasks.Task> UploadAppStoreAppLogoAsyncWithHttpInfo (string oauthAppId, string appStoreAppId, System.IO.Stream image); @@ -369,12 +511,12 @@ public void AddDefaultHeader(string key, string value) } /// - /// Update App store app verification [BETA - this endpoint is under development, do not use it in your production system][Note: Only Flipdish staff can verify apps] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// New verification status + /// + /// + /// /// public void AppVerificationUpdate (string oauthAppId, string appStoreAppId, string verificationStatus) { @@ -382,12 +524,12 @@ public void AppVerificationUpdate (string oauthAppId, string appStoreAppId, stri } /// - /// Update App store app verification [BETA - this endpoint is under development, do not use it in your production system][Note: Only Flipdish staff can verify apps] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// New verification status + /// + /// + /// /// ApiResponse of Object(void) public ApiResponse AppVerificationUpdateWithHttpInfo (string oauthAppId, string appStoreAppId, string verificationStatus) { @@ -455,12 +597,12 @@ public ApiResponse AppVerificationUpdateWithHttpInfo (string oauthAppId, } /// - /// Update App store app verification [BETA - this endpoint is under development, do not use it in your production system][Note: Only Flipdish staff can verify apps] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// New verification status + /// + /// + /// /// Task of void public async System.Threading.Tasks.Task AppVerificationUpdateAsync (string oauthAppId, string appStoreAppId, string verificationStatus) { @@ -469,12 +611,12 @@ public async System.Threading.Tasks.Task AppVerificationUpdateAsync (string oaut } /// - /// Update App store app verification [BETA - this endpoint is under development, do not use it in your production system][Note: Only Flipdish staff can verify apps] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// New verification status + /// + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> AppVerificationUpdateAsyncWithHttpInfo (string oauthAppId, string appStoreAppId, string verificationStatus) { @@ -542,11 +684,11 @@ public async System.Threading.Tasks.Task> AppVerificationUpd } /// - /// Create App store app [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app + /// + /// /// RestApiResultAppStoreApp public RestApiResultAppStoreApp CreateAppStoreApp (string oauthAppId, CreateAppStoreApp createAppStoreApp) { @@ -555,11 +697,11 @@ public RestApiResultAppStoreApp CreateAppStoreApp (string oauthAppId, CreateAppS } /// - /// Create App store app [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app + /// + /// /// ApiResponse of RestApiResultAppStoreApp public ApiResponse< RestApiResultAppStoreApp > CreateAppStoreAppWithHttpInfo (string oauthAppId, CreateAppStoreApp createAppStoreApp) { @@ -635,11 +777,11 @@ public ApiResponse< RestApiResultAppStoreApp > CreateAppStoreAppWithHttpInfo (st } /// - /// Create App store app [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app + /// + /// /// Task of RestApiResultAppStoreApp public async System.Threading.Tasks.Task CreateAppStoreAppAsync (string oauthAppId, CreateAppStoreApp createAppStoreApp) { @@ -649,11 +791,11 @@ public async System.Threading.Tasks.Task CreateAppStor } /// - /// Create App store app [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app + /// + /// /// Task of ApiResponse (RestApiResultAppStoreApp) public async System.Threading.Tasks.Task> CreateAppStoreAppAsyncWithHttpInfo (string oauthAppId, CreateAppStoreApp createAppStoreApp) { @@ -729,11 +871,11 @@ public async System.Threading.Tasks.Task> } /// - /// Delete App store app [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id + /// + /// /// RestApiStringResult public RestApiStringResult DeleteAppStoreApp (string oauthAppId, string appStoreAppId) { @@ -742,11 +884,11 @@ public RestApiStringResult DeleteAppStoreApp (string oauthAppId, string appStore } /// - /// Delete App store app [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id + /// + /// /// ApiResponse of RestApiStringResult public ApiResponse< RestApiStringResult > DeleteAppStoreAppWithHttpInfo (string oauthAppId, string appStoreAppId) { @@ -810,11 +952,11 @@ public ApiResponse< RestApiStringResult > DeleteAppStoreAppWithHttpInfo (string } /// - /// Delete App store app [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id + /// + /// /// Task of RestApiStringResult public async System.Threading.Tasks.Task DeleteAppStoreAppAsync (string oauthAppId, string appStoreAppId) { @@ -824,11 +966,11 @@ public async System.Threading.Tasks.Task DeleteAppStoreAppA } /// - /// Delete App store app [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id + /// + /// /// Task of ApiResponse (RestApiStringResult) public async System.Threading.Tasks.Task> DeleteAppStoreAppAsyncWithHttpInfo (string oauthAppId, string appStoreAppId) { @@ -892,39 +1034,34 @@ public async System.Threading.Tasks.Task> Delet } /// - /// Update App store app [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// Update App store app + /// + /// /// - public void UpdateAppStoreApp (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp) + public void GetAppExternalProduct (string oauthAppId, string appStoreAppId) { - UpdateAppStoreAppWithHttpInfo(oauthAppId, appStoreAppId, appStoreApp); + GetAppExternalProductWithHttpInfo(oauthAppId, appStoreAppId); } /// - /// Update App store app [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// Update App store app + /// + /// /// ApiResponse of Object(void) - public ApiResponse UpdateAppStoreAppWithHttpInfo (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp) + 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->UpdateAppStoreApp"); + 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->UpdateAppStoreApp"); - // verify the required parameter 'appStoreApp' is set - if (appStoreApp == null) - throw new ApiException(400, "Missing required parameter 'appStoreApp' when calling AppStoreDeveloperApi->UpdateAppStoreApp"); + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->GetAppExternalProduct"); - var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}"; + 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); @@ -934,11 +1071,6 @@ public ApiResponse UpdateAppStoreAppWithHttpInfo (string oauthAppId, str // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -955,14 +1087,6 @@ public ApiResponse UpdateAppStoreAppWithHttpInfo (string oauthAppId, str 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 @@ -973,14 +1097,14 @@ public ApiResponse UpdateAppStoreAppWithHttpInfo (string oauthAppId, str // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("UpdateAppStoreApp", localVarResponse); + Exception exception = ExceptionFactory("GetAppExternalProduct", localVarResponse); if (exception != null) throw exception; } @@ -990,40 +1114,35 @@ public ApiResponse UpdateAppStoreAppWithHttpInfo (string oauthAppId, str } /// - /// Update App store app [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// Update App store app + /// + /// /// Task of void - public async System.Threading.Tasks.Task UpdateAppStoreAppAsync (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp) + public async System.Threading.Tasks.Task GetAppExternalProductAsync (string oauthAppId, string appStoreAppId) { - await UpdateAppStoreAppAsyncWithHttpInfo(oauthAppId, appStoreAppId, appStoreApp); + await GetAppExternalProductAsyncWithHttpInfo(oauthAppId, appStoreAppId); } /// - /// Update App store app [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id - /// Update App store app + /// + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateAppStoreAppAsyncWithHttpInfo (string oauthAppId, string appStoreAppId, UpdateAppStoreApp appStoreApp) + 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->UpdateAppStoreApp"); + 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->UpdateAppStoreApp"); - // verify the required parameter 'appStoreApp' is set - if (appStoreApp == null) - throw new ApiException(400, "Missing required parameter 'appStoreApp' when calling AppStoreDeveloperApi->UpdateAppStoreApp"); + throw new ApiException(400, "Missing required parameter 'appStoreAppId' when calling AppStoreDeveloperApi->GetAppExternalProduct"); - var localVarPath = "./api/v1.0/oauthclients/{oauthAppId}/appstore/apps/{appStoreAppId}"; + 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); @@ -1033,11 +1152,6 @@ public async System.Threading.Tasks.Task> UpdateAppStoreAppA // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -1054,15 +1168,88 @@ public async System.Threading.Tasks.Task> UpdateAppStoreAppA 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[])) + + // authentication (oauth2) required + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) { - localVarPostBody = this.Configuration.ApiClient.Serialize(appStoreApp); // http body (model) parameter + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; } - else + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) { - localVarPostBody = appStoreApp; // byte array + 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)) @@ -1071,15 +1258,491 @@ public async System.Threading.Tasks.Task> UpdateAppStoreAppA } // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("UpdateAppStoreApp", localVarResponse); + 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; } @@ -1089,11 +1752,11 @@ public async System.Threading.Tasks.Task> UpdateAppStoreAppA } /// - /// Upload the App store app logo \\ icon + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id + /// + /// /// App Store App Logo /// public void UploadAppStoreAppLogo (string oauthAppId, string appStoreAppId, System.IO.Stream image) @@ -1102,11 +1765,11 @@ public void UploadAppStoreAppLogo (string oauthAppId, string appStoreAppId, Syst } /// - /// Upload the App store app logo \\ icon + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id + /// + /// /// App Store App Logo /// ApiResponse of Object(void) public ApiResponse UploadAppStoreAppLogoWithHttpInfo (string oauthAppId, string appStoreAppId, System.IO.Stream image) @@ -1176,11 +1839,11 @@ public ApiResponse UploadAppStoreAppLogoWithHttpInfo (string oauthAppId, } /// - /// Upload the App store app logo \\ icon + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id + /// + /// /// App Store App Logo /// Task of void public async System.Threading.Tasks.Task UploadAppStoreAppLogoAsync (string oauthAppId, string appStoreAppId, System.IO.Stream image) @@ -1190,11 +1853,11 @@ public async System.Threading.Tasks.Task UploadAppStoreAppLogoAsync (string oaut } /// - /// Upload the App store app logo \\ icon + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// App store app id + /// + /// /// App Store App Logo /// Task of ApiResponse public async System.Threading.Tasks.Task> UploadAppStoreAppLogoAsyncWithHttpInfo (string oauthAppId, string appStoreAppId, System.IO.Stream image) diff --git a/src/Flipdish/Api/FilesApi.cs b/src/Flipdish/Api/AppStoreEntitlementsApi.cs similarity index 69% rename from src/Flipdish/Api/FilesApi.cs rename to src/Flipdish/Api/AppStoreEntitlementsApi.cs index 41b597fe..1b64627e 100644 --- a/src/Flipdish/Api/FilesApi.cs +++ b/src/Flipdish/Api/AppStoreEntitlementsApi.cs @@ -21,72 +21,72 @@ namespace Flipdish.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IFilesApi : IApiAccessor + public interface IAppStoreEntitlementsApi : IApiAccessor { #region Synchronous Operations /// - /// Get file from storage + /// /// /// /// /// /// Thrown when fails to make API call /// - /// - /// string - string DownloadFile (string appId, string fileId); + /// + /// RestApiResultAppStoreAppEntitlements + RestApiResultAppStoreAppEntitlements GetAppStoreAppEntitlements (string appId, string appStoreAppId); /// - /// Get file from storage + /// /// /// /// /// /// Thrown when fails to make API call /// - /// - /// ApiResponse of string - ApiResponse DownloadFileWithHttpInfo (string appId, string fileId); + /// + /// ApiResponse of RestApiResultAppStoreAppEntitlements + ApiResponse GetAppStoreAppEntitlementsWithHttpInfo (string appId, string appStoreAppId); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get file from storage + /// /// /// /// /// /// Thrown when fails to make API call /// - /// - /// Task of string - System.Threading.Tasks.Task DownloadFileAsync (string appId, string fileId); + /// + /// Task of RestApiResultAppStoreAppEntitlements + System.Threading.Tasks.Task GetAppStoreAppEntitlementsAsync (string appId, string appStoreAppId); /// - /// Get file from storage + /// /// /// /// /// /// Thrown when fails to make API call /// - /// - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> DownloadFileAsyncWithHttpInfo (string appId, string fileId); + /// + /// 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 FilesApi : IFilesApi + public partial class AppStoreEntitlementsApi : IAppStoreEntitlementsApi { private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - public FilesApi(String basePath) + public AppStoreEntitlementsApi(String basePath) { this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; @@ -94,12 +94,12 @@ public FilesApi(String basePath) } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// - public FilesApi(Flipdish.Client.Configuration configuration = null) + public AppStoreEntitlementsApi(Flipdish.Client.Configuration configuration = null) { if (configuration == null) // use the default one in Configuration this.Configuration = Flipdish.Client.Configuration.Default; @@ -173,35 +173,35 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get file from storage + /// /// /// Thrown when fails to make API call /// - /// - /// string - public string DownloadFile (string appId, string fileId) + /// + /// RestApiResultAppStoreAppEntitlements + public RestApiResultAppStoreAppEntitlements GetAppStoreAppEntitlements (string appId, string appStoreAppId) { - ApiResponse localVarResponse = DownloadFileWithHttpInfo(appId, fileId); + ApiResponse localVarResponse = GetAppStoreAppEntitlementsWithHttpInfo(appId, appStoreAppId); return localVarResponse.Data; } /// - /// Get file from storage + /// /// /// Thrown when fails to make API call /// - /// - /// ApiResponse of string - public ApiResponse< string > DownloadFileWithHttpInfo (string appId, string fileId) + /// + /// 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 FilesApi->DownloadFile"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new ApiException(400, "Missing required parameter 'fileId' when calling FilesApi->DownloadFile"); + 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}/files/download/{fileId}"; + 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); @@ -226,7 +226,7 @@ public ApiResponse< string > DownloadFileWithHttpInfo (string appId, string file localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (fileId != null) localVarPathParams.Add("fileId", this.Configuration.ApiClient.ParameterToString(fileId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter // authentication (oauth2) required // oauth required @@ -244,46 +244,46 @@ public ApiResponse< string > DownloadFileWithHttpInfo (string appId, string file if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("DownloadFile", localVarResponse); + Exception exception = ExceptionFactory("GetAppStoreAppEntitlements", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + (RestApiResultAppStoreAppEntitlements) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreAppEntitlements))); } /// - /// Get file from storage + /// /// /// Thrown when fails to make API call /// - /// - /// Task of string - public async System.Threading.Tasks.Task DownloadFileAsync (string appId, string fileId) + /// + /// Task of RestApiResultAppStoreAppEntitlements + public async System.Threading.Tasks.Task GetAppStoreAppEntitlementsAsync (string appId, string appStoreAppId) { - ApiResponse localVarResponse = await DownloadFileAsyncWithHttpInfo(appId, fileId); + ApiResponse localVarResponse = await GetAppStoreAppEntitlementsAsyncWithHttpInfo(appId, appStoreAppId); return localVarResponse.Data; } /// - /// Get file from storage + /// /// /// Thrown when fails to make API call /// - /// - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> DownloadFileAsyncWithHttpInfo (string appId, string fileId) + /// + /// 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 FilesApi->DownloadFile"); - // verify the required parameter 'fileId' is set - if (fileId == null) - throw new ApiException(400, "Missing required parameter 'fileId' when calling FilesApi->DownloadFile"); + 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}/files/download/{fileId}"; + 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); @@ -308,7 +308,7 @@ public async System.Threading.Tasks.Task> DownloadFileAsyncW localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (fileId != null) localVarPathParams.Add("fileId", this.Configuration.ApiClient.ParameterToString(fileId)); // path parameter + if (appStoreAppId != null) localVarPathParams.Add("appStoreAppId", this.Configuration.ApiClient.ParameterToString(appStoreAppId)); // path parameter // authentication (oauth2) required // oauth required @@ -326,13 +326,13 @@ public async System.Threading.Tasks.Task> DownloadFileAsyncW if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("DownloadFile", localVarResponse); + Exception exception = ExceptionFactory("GetAppStoreAppEntitlements", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + (RestApiResultAppStoreAppEntitlements) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppStoreAppEntitlements))); } } diff --git a/src/Flipdish/Api/AppsApi.cs b/src/Flipdish/Api/AppsApi.cs index fe8a30d5..ed52631f 100644 --- a/src/Flipdish/Api/AppsApi.cs +++ b/src/Flipdish/Api/AppsApi.cs @@ -25,49 +25,114 @@ public interface IAppsApi : IApiAccessor { #region Synchronous Operations /// - /// Get the application configuration + /// + /// + /// + /// + /// + /// 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 - /// Application identifier + /// /// RestApiResultApp RestApiResultApp GetApp (string appId); /// - /// Get the application configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// ApiResponse of RestApiResultApp ApiResponse GetAppWithHttpInfo (string appId); /// - /// Get the application hostname DNS delegation states for A and CNAME records. + /// /// /// - /// A domain might be ready but still need 10 minutes to work properly because of HAProxy. + /// /// /// Thrown when fails to make API call - /// Application identifier. + /// /// RestApiResultDnsRecordInformation RestApiResultDnsRecordInformation GetAppHostnameStatus (string appId); /// - /// Get the application hostname DNS delegation states for A and CNAME records. + /// /// /// - /// A domain might be ready but still need 10 minutes to work properly because of HAProxy. + /// /// /// Thrown when fails to make API call - /// Application identifier. + /// /// ApiResponse of RestApiResultDnsRecordInformation ApiResponse GetAppHostnameStatusWithHttpInfo (string appId); /// - /// Get Apps + /// + /// + /// + /// + /// + /// 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); + /// + /// /// /// /// @@ -80,7 +145,7 @@ public interface IAppsApi : IApiAccessor RestApiPaginationResultApp GetApps (string nameFilter = null, int? page = null, int? limit = null); /// - /// Get Apps + /// /// /// /// @@ -92,49 +157,49 @@ public interface IAppsApi : IApiAccessor /// ApiResponse of RestApiPaginationResultApp ApiResponse GetAppsWithHttpInfo (string nameFilter = null, int? page = null, int? limit = null); /// - /// Get the application compliance configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// RestApiResultAppCompliance RestApiResultAppCompliance GetCompliance (string appId); /// - /// Get the application compliance configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// ApiResponse of RestApiResultAppCompliance ApiResponse GetComplianceWithHttpInfo (string appId); /// - /// Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier. + /// /// RestApiStringResult RestApiStringResult GetPanaceaVanityUrl (string appId); /// - /// Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier. + /// /// ApiResponse of RestApiStringResult ApiResponse GetPanaceaVanityUrlWithHttpInfo (string appId); /// - /// Get all supported countries. + /// /// /// /// @@ -144,7 +209,7 @@ public interface IAppsApi : IApiAccessor RestApiArrayResultSupportedCountry GetSupportedCountries (); /// - /// Get all supported countries. + /// /// /// /// @@ -153,586 +218,2134 @@ public interface IAppsApi : IApiAccessor /// ApiResponse of RestApiArrayResultSupportedCountry ApiResponse GetSupportedCountriesWithHttpInfo (); /// - /// Is panacea vanity url available + /// /// /// - /// Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Vanity url to check + /// /// /// RestApiStringResult RestApiStringResult IsPanaceaVanityUrlAvailable (string vanityUrl, string appId); /// - /// Is panacea vanity url available + /// /// /// - /// Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Vanity url to check + /// /// /// ApiResponse of RestApiStringResult ApiResponse IsPanaceaVanityUrlAvailableWithHttpInfo (string vanityUrl, string appId); /// - /// Set the application configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Changes to the configuration - /// RestApiResultApp - RestApiResultApp SetAppConfig (string appId, AppConfigUpdateModel appConfigUpdate); + /// + /// AppLookup + AppLookup LookupByWhitelabelId (int? whitelabelId); /// - /// Set the application configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Changes to the configuration - /// ApiResponse of RestApiResultApp - ApiResponse SetAppConfigWithHttpInfo (string appId, AppConfigUpdateModel appConfigUpdate); + /// + /// ApiResponse of AppLookup + ApiResponse LookupByWhitelabelIdWithHttpInfo (int? whitelabelId); /// - /// Set the application hostname. + /// /// /// - /// If no subdomain is specified in {hostname} 'www' will be prepended. + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// The new Hostname. - /// Will the website be embedded (optional) - /// RestApiStringResult - RestApiStringResult SetAppHostname (string appId, string hostname, bool? isEmbed = null); + /// + /// + /// + /// + void SendPushNotification (string appId, int? customerId, string message); /// - /// Set the application hostname. + /// /// /// - /// If no subdomain is specified in {hostname} 'www' will be prepended. + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// The new Hostname. - /// Will the website be embedded (optional) - /// ApiResponse of RestApiStringResult - ApiResponse SetAppHostnameWithHttpInfo (string appId, string hostname, bool? isEmbed = null); + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse SendPushNotificationWithHttpInfo (string appId, int? customerId, string message); /// - /// Set the application languages + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// New list of languages + /// + /// /// RestApiResultApp - RestApiResultApp SetAppLanguages (string appId, List languages); + RestApiResultApp SetAppConfig (string appId, AppConfigUpdateModel appConfigUpdate); /// - /// Set the application languages + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// New list of languages + /// + /// /// ApiResponse of RestApiResultApp - ApiResponse SetAppLanguagesWithHttpInfo (string appId, List languages); + ApiResponse SetAppConfigWithHttpInfo (string appId, AppConfigUpdateModel appConfigUpdate); /// - /// Set the application compliance configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Compliance type - /// RestApiResultAppCompliance - RestApiResultAppCompliance SetCompliance (string appId, string complianceType); + /// + /// + /// (optional) + /// RestApiStringResult + RestApiStringResult SetAppHostname (string appId, string hostname, bool? isEmbed = null); /// - /// Set the application compliance configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Compliance type - /// ApiResponse of RestApiResultAppCompliance - ApiResponse SetComplianceWithHttpInfo (string appId, string complianceType); + /// + /// + /// (optional) + /// ApiResponse of RestApiStringResult + ApiResponse SetAppHostnameWithHttpInfo (string appId, string hostname, bool? isEmbed = null); /// - /// Set panacea vanity url + /// /// /// - /// Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Vanity url - /// RestApiStringResult - RestApiStringResult SetPanaceaVanityUrl (string appId, string vanityUrl); + /// + /// + /// RestApiResultApp + RestApiResultApp SetAppLanguages (string appId, List languages); /// - /// Set panacea vanity url + /// /// /// - /// Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Vanity url - /// ApiResponse of RestApiStringResult - ApiResponse SetPanaceaVanityUrlWithHttpInfo (string appId, string vanityUrl); + /// + /// + /// ApiResponse of RestApiResultApp + ApiResponse SetAppLanguagesWithHttpInfo (string appId, List languages); /// - /// Set the application logo \\ icon + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// App Logo + /// + /// /// - void UploadAppLogo (string appId, System.IO.Stream image); + void SetAppStoreName (string appId, string appStoreName); /// - /// Set the application logo \\ icon + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// App Logo + /// + /// /// ApiResponse of Object(void) - ApiResponse UploadAppLogoWithHttpInfo (string appId, System.IO.Stream image); - #endregion Synchronous Operations - #region Asynchronous Operations + ApiResponse SetAppStoreNameWithHttpInfo (string appId, string appStoreName); /// - /// Get the application configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Task of RestApiResultApp - System.Threading.Tasks.Task GetAppAsync (string appId); + /// + /// + /// RestApiResultAppCompliance + RestApiResultAppCompliance SetCompliance (string appId, string complianceType); /// - /// Get the application configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Task of ApiResponse (RestApiResultApp) - System.Threading.Tasks.Task> GetAppAsyncWithHttpInfo (string appId); + /// + /// + /// ApiResponse of RestApiResultAppCompliance + ApiResponse SetComplianceWithHttpInfo (string appId, string complianceType); /// - /// Get the application hostname DNS delegation states for A and CNAME records. + /// /// /// - /// A domain might be ready but still need 10 minutes to work properly because of HAProxy. + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Task of RestApiResultDnsRecordInformation - System.Threading.Tasks.Task GetAppHostnameStatusAsync (string appId); + /// + /// + /// RestApiStringResult + RestApiStringResult SetPanaceaVanityUrl (string appId, string vanityUrl); /// - /// Get the application hostname DNS delegation states for A and CNAME records. + /// /// /// - /// A domain might be ready but still need 10 minutes to work properly because of HAProxy. + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Task of ApiResponse (RestApiResultDnsRecordInformation) - System.Threading.Tasks.Task> GetAppHostnameStatusAsyncWithHttpInfo (string appId); + /// + /// + /// ApiResponse of RestApiStringResult + ApiResponse SetPanaceaVanityUrlWithHttpInfo (string appId, string vanityUrl); /// - /// Get Apps + /// /// /// /// /// /// 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); + /// + /// + /// + void SetThirdPartyIntegrations (string appId, bool? enabled); /// - /// Get Apps + /// /// /// /// /// /// 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); + /// + /// + /// ApiResponse of Object(void) + ApiResponse SetThirdPartyIntegrationsWithHttpInfo (string appId, bool? enabled); /// - /// Get the application compliance configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Task of RestApiResultAppCompliance - System.Threading.Tasks.Task GetComplianceAsync (string appId); + /// + /// + /// + /// + /// RestApiStringResult + RestApiStringResult ToggleNextGenWeb (string appId, string hostname, string vanityUrl, bool? isNextGenWeb); /// - /// Get the application compliance configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Task of ApiResponse (RestApiResultAppCompliance) - System.Threading.Tasks.Task> GetComplianceAsyncWithHttpInfo (string appId); + /// + /// + /// + /// + /// ApiResponse of RestApiStringResult + ApiResponse ToggleNextGenWebWithHttpInfo (string appId, string hostname, string vanityUrl, bool? isNextGenWeb); /// - /// Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Task of RestApiStringResult - System.Threading.Tasks.Task GetPanaceaVanityUrlAsync (string appId); + /// + /// App Logo + /// + void UploadAppLogo (string appId, System.IO.Stream image); /// - /// Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Task of ApiResponse (RestApiStringResult) - System.Threading.Tasks.Task> GetPanaceaVanityUrlAsyncWithHttpInfo (string appId); + /// + /// App Logo + /// ApiResponse of Object(void) + ApiResponse UploadAppLogoWithHttpInfo (string appId, System.IO.Stream image); + #endregion Synchronous Operations + #region Asynchronous Operations /// - /// Get all supported countries. + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of RestApiArrayResultSupportedCountry - System.Threading.Tasks.Task GetSupportedCountriesAsync (); + /// + /// + /// Task of Object + System.Threading.Tasks.Task AppsSetPropertyIdAsync (string appId, string orgId); /// - /// Get all supported countries. + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of ApiResponse (RestApiArrayResultSupportedCountry) - System.Threading.Tasks.Task> GetSupportedCountriesAsyncWithHttpInfo (); + /// + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> AppsSetPropertyIdAsyncWithHttpInfo (string appId, string orgId); /// - /// Is panacea vanity url available + /// /// /// - /// Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Vanity url to check - /// + /// /// Task of RestApiStringResult - System.Threading.Tasks.Task IsPanaceaVanityUrlAvailableAsync (string vanityUrl, string appId); + System.Threading.Tasks.Task CreateAppAsync (CreateAppParameters parameters); /// - /// Is panacea vanity url available + /// /// /// - /// Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Vanity url to check - /// + /// /// Task of ApiResponse (RestApiStringResult) - System.Threading.Tasks.Task> IsPanaceaVanityUrlAvailableAsyncWithHttpInfo (string vanityUrl, string appId); + System.Threading.Tasks.Task> CreateAppAsyncWithHttpInfo (CreateAppParameters parameters); /// - /// Set the application configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Changes to the configuration + /// /// Task of RestApiResultApp - System.Threading.Tasks.Task SetAppConfigAsync (string appId, AppConfigUpdateModel appConfigUpdate); + System.Threading.Tasks.Task GetAppAsync (string appId); /// - /// Set the application configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Changes to the configuration + /// /// Task of ApiResponse (RestApiResultApp) - System.Threading.Tasks.Task> SetAppConfigAsyncWithHttpInfo (string appId, AppConfigUpdateModel appConfigUpdate); + System.Threading.Tasks.Task> GetAppAsyncWithHttpInfo (string appId); /// - /// Set the application hostname. + /// /// /// - /// If no subdomain is specified in {hostname} 'www' will be prepended. + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// The new Hostname. - /// Will the website be embedded (optional) - /// Task of RestApiStringResult - System.Threading.Tasks.Task SetAppHostnameAsync (string appId, string hostname, bool? isEmbed = null); + /// + /// Task of RestApiResultDnsRecordInformation + System.Threading.Tasks.Task GetAppHostnameStatusAsync (string appId); /// - /// Set the application hostname. + /// /// /// - /// If no subdomain is specified in {hostname} 'www' will be prepended. + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// The new Hostname. - /// Will the website be embedded (optional) - /// Task of ApiResponse (RestApiStringResult) - System.Threading.Tasks.Task> SetAppHostnameAsyncWithHttpInfo (string appId, string hostname, bool? isEmbed = null); + /// + /// Task of ApiResponse (RestApiResultDnsRecordInformation) + System.Threading.Tasks.Task> GetAppHostnameStatusAsyncWithHttpInfo (string appId); /// - /// Set the application languages + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// New list of languages - /// Task of RestApiResultApp - System.Threading.Tasks.Task SetAppLanguagesAsync (string appId, List languages); + /// + /// Task of RestApiStringResult + System.Threading.Tasks.Task GetAppNameAsync (string appId); /// - /// Set the application languages + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// New list of languages - /// Task of ApiResponse (RestApiResultApp) - System.Threading.Tasks.Task> SetAppLanguagesAsyncWithHttpInfo (string appId, List languages); - /// - /// Set the application compliance configuration + /// + /// 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 - /// Application identifier - /// Compliance type + /// /// Task of RestApiResultAppCompliance - System.Threading.Tasks.Task SetComplianceAsync (string appId, string complianceType); + System.Threading.Tasks.Task GetComplianceAsync (string appId); /// - /// Set the application compliance configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Compliance type + /// /// Task of ApiResponse (RestApiResultAppCompliance) - System.Threading.Tasks.Task> SetComplianceAsyncWithHttpInfo (string appId, string complianceType); + System.Threading.Tasks.Task> GetComplianceAsyncWithHttpInfo (string appId); /// - /// Set panacea vanity url + /// /// /// - /// Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Vanity url + /// /// Task of RestApiStringResult - System.Threading.Tasks.Task SetPanaceaVanityUrlAsync (string appId, string vanityUrl); + System.Threading.Tasks.Task GetPanaceaVanityUrlAsync (string appId); /// - /// Set panacea vanity url + /// /// /// - /// Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Vanity url + /// /// Task of ApiResponse (RestApiStringResult) - System.Threading.Tasks.Task> SetPanaceaVanityUrlAsyncWithHttpInfo (string appId, string vanityUrl); + System.Threading.Tasks.Task> GetPanaceaVanityUrlAsyncWithHttpInfo (string appId); /// - /// Set the application logo \\ icon + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// App Logo - /// Task of void - System.Threading.Tasks.Task UploadAppLogoAsync (string appId, System.IO.Stream image); + /// Task of RestApiArrayResultSupportedCountry + System.Threading.Tasks.Task GetSupportedCountriesAsync (); /// - /// Set the application logo \\ icon + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// App Logo - /// Task of ApiResponse - System.Threading.Tasks.Task> UploadAppLogoAsyncWithHttpInfo (string appId, System.IO.Stream image); - #endregion Asynchronous Operations - } + /// 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); - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class AppsApi : IAppsApi - { - private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + /// + /// + /// + /// + /// + /// + /// 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); /// - /// Initializes a new instance of the class. + /// /// - /// - public AppsApi(String basePath) - { - this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + /// + /// + /// + /// 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); - ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; - } + /// + /// + /// + /// + /// + /// + /// 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); /// - /// 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; + /// + /// + /// + /// 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); - ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; - } + /// + /// + /// + /// + /// + /// + /// 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); /// - /// Gets the base path of the API client. + /// /// - /// The base path - public String GetBasePath() - { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); - } + /// + /// + /// + /// 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); /// - /// 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 - } + /// + /// + /// + /// 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); /// - /// Gets or sets the configuration object + /// /// - /// An instance of the Configuration - public Flipdish.Client.Configuration Configuration {get; set;} + /// + /// + /// + /// 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); /// - /// Provides a factory method hook for the creation of exceptions. + /// /// - public Flipdish.Client.ExceptionFactory ExceptionFactory - { - get + /// + /// + /// + /// 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) { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; + Exception exception = ExceptionFactory("GetPanaceaVanityUrl", localVarResponse); + if (exception != null) throw exception; } - set { _exceptionFactory = value; } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); } /// - /// Gets the default header. + /// /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() + /// Thrown when fails to make API call + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task GetPanaceaVanityUrlAsync (string appId) { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + ApiResponse localVarResponse = await GetPanaceaVanityUrlAsyncWithHttpInfo(appId); + return localVarResponse.Data; + } /// - /// 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) + /// Thrown when fails to make API call + /// + /// Task of ApiResponse (RestApiStringResult) + public async System.Threading.Tasks.Task> GetPanaceaVanityUrlAsyncWithHttpInfo (string appId) { - this.Configuration.AddDefaultHeader(key, value); + // 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))); } /// - /// Get the application configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// RestApiResultApp - public RestApiResultApp GetApp (string appId) + /// RestApiArrayResultSupportedCountry + public RestApiArrayResultSupportedCountry GetSupportedCountries () { - ApiResponse localVarResponse = GetAppWithHttpInfo(appId); + ApiResponse localVarResponse = GetSupportedCountriesWithHttpInfo(); return localVarResponse.Data; } /// - /// Get the application configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// ApiResponse of RestApiResultApp - public ApiResponse< RestApiResultApp > GetAppWithHttpInfo (string appId) + /// ApiResponse of RestApiArrayResultSupportedCountry + public ApiResponse< RestApiArrayResultSupportedCountry > GetSupportedCountriesWithHttpInfo () { - // 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 localVarPath = "./api/v1.0/apps/supportedcountries"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -756,7 +2369,6 @@ public ApiResponse< RestApiResultApp > GetAppWithHttpInfo (string appId) 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 @@ -774,41 +2386,36 @@ public ApiResponse< RestApiResultApp > GetAppWithHttpInfo (string appId) if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetApp", localVarResponse); + Exception exception = ExceptionFactory("GetSupportedCountries", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); + (RestApiArrayResultSupportedCountry) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultSupportedCountry))); } /// - /// Get the application configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Task of RestApiResultApp - public async System.Threading.Tasks.Task GetAppAsync (string appId) + /// Task of RestApiArrayResultSupportedCountry + public async System.Threading.Tasks.Task GetSupportedCountriesAsync () { - ApiResponse localVarResponse = await GetAppAsyncWithHttpInfo(appId); + ApiResponse localVarResponse = await GetSupportedCountriesAsyncWithHttpInfo(); return localVarResponse.Data; } /// - /// Get the application configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Task of ApiResponse (RestApiResultApp) - public async System.Threading.Tasks.Task> GetAppAsyncWithHttpInfo (string appId) + /// Task of ApiResponse (RestApiArrayResultSupportedCountry) + public async System.Threading.Tasks.Task> GetSupportedCountriesAsyncWithHttpInfo () { - // 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 localVarPath = "./api/v1.0/apps/supportedcountries"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -832,7 +2439,6 @@ public async System.Threading.Tasks.Task> GetAppAs 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 @@ -850,40 +2456,45 @@ public async System.Threading.Tasks.Task> GetAppAs if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetApp", localVarResponse); + Exception exception = ExceptionFactory("GetSupportedCountries", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); + (RestApiArrayResultSupportedCountry) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultSupportedCountry))); } /// - /// Get the application hostname DNS delegation states for A and CNAME records. A domain might be ready but still need 10 minutes to work properly because of HAProxy. + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// RestApiResultDnsRecordInformation - public RestApiResultDnsRecordInformation GetAppHostnameStatus (string appId) + /// + /// + /// RestApiStringResult + public RestApiStringResult IsPanaceaVanityUrlAvailable (string vanityUrl, string appId) { - ApiResponse localVarResponse = GetAppHostnameStatusWithHttpInfo(appId); + ApiResponse localVarResponse = IsPanaceaVanityUrlAvailableWithHttpInfo(vanityUrl, appId); return localVarResponse.Data; } /// - /// Get the application hostname DNS delegation states for A and CNAME records. A domain might be ready but still need 10 minutes to work properly because of HAProxy. + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// ApiResponse of RestApiResultDnsRecordInformation - public ApiResponse< RestApiResultDnsRecordInformation > GetAppHostnameStatusWithHttpInfo (string appId) + /// + /// + /// 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->GetAppHostnameStatus"); + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->IsPanaceaVanityUrlAvailable"); - var localVarPath = "./api/v1.0/apps/{appId}/hostnamestatus"; + 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); @@ -908,6 +2519,7 @@ public ApiResponse< RestApiResultDnsRecordInformation > GetAppHostnameStatusWith 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 @@ -925,41 +2537,46 @@ public ApiResponse< RestApiResultDnsRecordInformation > GetAppHostnameStatusWith if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetAppHostnameStatus", localVarResponse); + Exception exception = ExceptionFactory("IsPanaceaVanityUrlAvailable", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultDnsRecordInformation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultDnsRecordInformation))); + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); } /// - /// Get the application hostname DNS delegation states for A and CNAME records. A domain might be ready but still need 10 minutes to work properly because of HAProxy. + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Task of RestApiResultDnsRecordInformation - public async System.Threading.Tasks.Task GetAppHostnameStatusAsync (string appId) + /// + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task IsPanaceaVanityUrlAvailableAsync (string vanityUrl, string appId) { - ApiResponse localVarResponse = await GetAppHostnameStatusAsyncWithHttpInfo(appId); + ApiResponse localVarResponse = await IsPanaceaVanityUrlAvailableAsyncWithHttpInfo(vanityUrl, appId); return localVarResponse.Data; } /// - /// Get the application hostname DNS delegation states for A and CNAME records. A domain might be ready but still need 10 minutes to work properly because of HAProxy. + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Task of ApiResponse (RestApiResultDnsRecordInformation) - public async System.Threading.Tasks.Task> GetAppHostnameStatusAsyncWithHttpInfo (string appId) + /// + /// + /// 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->GetAppHostnameStatus"); + throw new ApiException(400, "Missing required parameter 'appId' when calling AppsApi->IsPanaceaVanityUrlAvailable"); - var localVarPath = "./api/v1.0/apps/{appId}/hostnamestatus"; + 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); @@ -984,6 +2601,7 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultDnsRecordInformation) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultDnsRecordInformation))); + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); } /// - /// Get Apps + /// /// /// Thrown when fails to make API call - /// (optional) - /// (optional) - /// (optional) - /// RestApiPaginationResultApp - public RestApiPaginationResultApp GetApps (string nameFilter = null, int? page = null, int? limit = null) + /// + /// AppLookup + public AppLookup LookupByWhitelabelId (int? whitelabelId) { - ApiResponse localVarResponse = GetAppsWithHttpInfo(nameFilter, page, limit); + ApiResponse localVarResponse = LookupByWhitelabelIdWithHttpInfo(whitelabelId); return localVarResponse.Data; } /// - /// Get Apps + /// /// /// 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) + /// + /// 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"; + var localVarPath = "./api/v1.0/apps/{whitelabelId}/lookup"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1059,9 +2676,7 @@ public ApiResponse< RestApiPaginationResultApp > GetAppsWithHttpInfo (string nam 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 + if (whitelabelId != null) localVarPathParams.Add("whitelabelId", this.Configuration.ApiClient.ParameterToString(whitelabelId)); // path parameter // authentication (oauth2) required // oauth required @@ -1079,42 +2694,41 @@ public ApiResponse< RestApiPaginationResultApp > GetAppsWithHttpInfo (string nam if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetApps", localVarResponse); + Exception exception = ExceptionFactory("LookupByWhitelabelId", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiPaginationResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultApp))); + (AppLookup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AppLookup))); } /// - /// Get Apps + /// /// /// 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) + /// + /// Task of AppLookup + public async System.Threading.Tasks.Task LookupByWhitelabelIdAsync (int? whitelabelId) { - ApiResponse localVarResponse = await GetAppsAsyncWithHttpInfo(nameFilter, page, limit); + ApiResponse localVarResponse = await LookupByWhitelabelIdAsyncWithHttpInfo(whitelabelId); return localVarResponse.Data; } /// - /// Get Apps + /// /// /// 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) + /// + /// 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"; + var localVarPath = "./api/v1.0/apps/{whitelabelId}/lookup"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1138,9 +2752,7 @@ public async System.Threading.Tasks.Task 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 + if (whitelabelId != null) localVarPathParams.Add("whitelabelId", this.Configuration.ApiClient.ParameterToString(whitelabelId)); // path parameter // authentication (oauth2) required // oauth required @@ -1158,40 +2770,49 @@ public async System.Threading.Tasks.Task if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetApps", localVarResponse); + Exception exception = ExceptionFactory("LookupByWhitelabelId", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiPaginationResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultApp))); + (AppLookup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AppLookup))); } /// - /// Get the application compliance configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// RestApiResultAppCompliance - public RestApiResultAppCompliance GetCompliance (string appId) + /// + /// + /// + /// + public void SendPushNotification (string appId, int? customerId, string message) { - ApiResponse localVarResponse = GetComplianceWithHttpInfo(appId); - return localVarResponse.Data; + SendPushNotificationWithHttpInfo(appId, customerId, message); } /// - /// Get the application compliance configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// ApiResponse of RestApiResultAppCompliance - public ApiResponse< RestApiResultAppCompliance > GetComplianceWithHttpInfo (string appId) + /// + /// + /// + /// 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->GetCompliance"); - - var localVarPath = "./api/v1.0/apps/{appId}/compliance"; + 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); @@ -1201,6 +2822,11 @@ public ApiResponse< RestApiResultAppCompliance > GetComplianceWithHttpInfo (stri // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -1216,6 +2842,15 @@ public ApiResponse< RestApiResultAppCompliance > GetComplianceWithHttpInfo (stri 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 @@ -1226,48 +2861,57 @@ public ApiResponse< RestApiResultAppCompliance > GetComplianceWithHttpInfo (stri // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetCompliance", localVarResponse); + Exception exception = ExceptionFactory("SendPushNotification", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultAppCompliance) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppCompliance))); + null); } /// - /// Get the application compliance configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Task of RestApiResultAppCompliance - public async System.Threading.Tasks.Task GetComplianceAsync (string appId) + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task SendPushNotificationAsync (string appId, int? customerId, string message) { - ApiResponse localVarResponse = await GetComplianceAsyncWithHttpInfo(appId); - return localVarResponse.Data; + await SendPushNotificationAsyncWithHttpInfo(appId, customerId, message); } /// - /// Get the application compliance configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Task of ApiResponse (RestApiResultAppCompliance) - public async System.Threading.Tasks.Task> GetComplianceAsyncWithHttpInfo (string appId) + /// + /// + /// + /// 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->GetCompliance"); - - var localVarPath = "./api/v1.0/apps/{appId}/compliance"; + 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); @@ -1277,6 +2921,11 @@ public async System.Threading.Tasks.Task // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -1292,6 +2941,15 @@ public async System.Threading.Tasks.Task 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 @@ -1302,47 +2960,52 @@ public async System.Threading.Tasks.Task // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetCompliance", localVarResponse); + Exception exception = ExceptionFactory("SendPushNotification", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultAppCompliance) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppCompliance))); + null); } /// - /// Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// RestApiStringResult - public RestApiStringResult GetPanaceaVanityUrl (string appId) + /// + /// + /// RestApiResultApp + public RestApiResultApp SetAppConfig (string appId, AppConfigUpdateModel appConfigUpdate) { - ApiResponse localVarResponse = GetPanaceaVanityUrlWithHttpInfo(appId); + ApiResponse localVarResponse = SetAppConfigWithHttpInfo(appId, appConfigUpdate); return localVarResponse.Data; } /// - /// Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// ApiResponse of RestApiStringResult - public ApiResponse< RestApiStringResult > GetPanaceaVanityUrlWithHttpInfo (string appId) + /// + /// + /// 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->GetPanaceaVanityUrl"); + 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}/panacea/url"; + var localVarPath = "./api/v1.0/apps/{appId}/config"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1352,6 +3015,11 @@ public ApiResponse< RestApiStringResult > GetPanaceaVanityUrlWithHttpInfo (strin // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -1367,6 +3035,14 @@ public ApiResponse< RestApiStringResult > GetPanaceaVanityUrlWithHttpInfo (strin 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 @@ -1377,48 +3053,53 @@ public ApiResponse< RestApiStringResult > GetPanaceaVanityUrlWithHttpInfo (strin // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetPanaceaVanityUrl", localVarResponse); + Exception exception = ExceptionFactory("SetAppConfig", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); } /// - /// Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Task of RestApiStringResult - public async System.Threading.Tasks.Task GetPanaceaVanityUrlAsync (string appId) + /// + /// + /// Task of RestApiResultApp + public async System.Threading.Tasks.Task SetAppConfigAsync (string appId, AppConfigUpdateModel appConfigUpdate) { - ApiResponse localVarResponse = await GetPanaceaVanityUrlAsyncWithHttpInfo(appId); + ApiResponse localVarResponse = await SetAppConfigAsyncWithHttpInfo(appId, appConfigUpdate); return localVarResponse.Data; } /// - /// Get panacea vanity url. This sets the URL which the Panacea website is available at. ie. my.flipdish.com/[vanityurl] + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Task of ApiResponse (RestApiStringResult) - public async System.Threading.Tasks.Task> GetPanaceaVanityUrlAsyncWithHttpInfo (string appId) + /// + /// + /// 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->GetPanaceaVanityUrl"); + 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}/panacea/url"; + var localVarPath = "./api/v1.0/apps/{appId}/config"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1428,6 +3109,11 @@ public async System.Threading.Tasks.Task> GetPa // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -1443,6 +3129,14 @@ public async System.Threading.Tasks.Task> GetPa 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 @@ -1453,42 +3147,54 @@ public async System.Threading.Tasks.Task> GetPa // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetPanaceaVanityUrl", localVarResponse); + Exception exception = ExceptionFactory("SetAppConfig", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); } /// - /// Get all supported countries. + /// /// /// Thrown when fails to make API call - /// RestApiArrayResultSupportedCountry - public RestApiArrayResultSupportedCountry GetSupportedCountries () + /// + /// + /// (optional) + /// RestApiStringResult + public RestApiStringResult SetAppHostname (string appId, string hostname, bool? isEmbed = null) { - ApiResponse localVarResponse = GetSupportedCountriesWithHttpInfo(); + ApiResponse localVarResponse = SetAppHostnameWithHttpInfo(appId, hostname, isEmbed); return localVarResponse.Data; } /// - /// Get all supported countries. + /// /// /// Thrown when fails to make API call - /// ApiResponse of RestApiArrayResultSupportedCountry - public ApiResponse< RestApiArrayResultSupportedCountry > GetSupportedCountriesWithHttpInfo () + /// + /// + /// (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/supportedcountries"; + var localVarPath = "./api/v1.0/apps/{appId}/hostname"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1512,6 +3218,9 @@ public ApiResponse< RestApiArrayResultSupportedCountry > GetSupportedCountriesWi 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 @@ -1522,43 +3231,55 @@ public ApiResponse< RestApiArrayResultSupportedCountry > GetSupportedCountriesWi // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetSupportedCountries", localVarResponse); + Exception exception = ExceptionFactory("SetAppHostname", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultSupportedCountry) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultSupportedCountry))); + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); } /// - /// Get all supported countries. + /// /// /// Thrown when fails to make API call - /// Task of RestApiArrayResultSupportedCountry - public async System.Threading.Tasks.Task GetSupportedCountriesAsync () + /// + /// + /// (optional) + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task SetAppHostnameAsync (string appId, string hostname, bool? isEmbed = null) { - ApiResponse localVarResponse = await GetSupportedCountriesAsyncWithHttpInfo(); + ApiResponse localVarResponse = await SetAppHostnameAsyncWithHttpInfo(appId, hostname, isEmbed); return localVarResponse.Data; } /// - /// Get all supported countries. + /// /// /// Thrown when fails to make API call - /// Task of ApiResponse (RestApiArrayResultSupportedCountry) - public async System.Threading.Tasks.Task> GetSupportedCountriesAsyncWithHttpInfo () + /// + /// + /// (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/supportedcountries"; + var localVarPath = "./api/v1.0/apps/{appId}/hostname"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1582,6 +3303,9 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultSupportedCountry) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultSupportedCountry))); + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); } /// - /// Is panacea vanity url available Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Vanity url to check /// - /// RestApiStringResult - public RestApiStringResult IsPanaceaVanityUrlAvailable (string vanityUrl, string appId) + /// + /// RestApiResultApp + public RestApiResultApp SetAppLanguages (string appId, List languages) { - ApiResponse localVarResponse = IsPanaceaVanityUrlAvailableWithHttpInfo(vanityUrl, appId); + ApiResponse localVarResponse = SetAppLanguagesWithHttpInfo(appId, languages); return localVarResponse.Data; } /// - /// Is panacea vanity url available Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Vanity url to check /// - /// ApiResponse of RestApiStringResult - public ApiResponse< RestApiStringResult > IsPanaceaVanityUrlAvailableWithHttpInfo (string vanityUrl, string appId) + /// + /// ApiResponse of RestApiResultApp + public ApiResponse< RestApiResultApp > SetAppLanguagesWithHttpInfo (string appId, List languages) { - // 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"); + 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}/panacea/url/available"; + var localVarPath = "./api/v1.0/apps/{appId}/config/languages"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1647,6 +3371,11 @@ public ApiResponse< RestApiStringResult > IsPanaceaVanityUrlAvailableWithHttpInf // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -1662,7 +3391,14 @@ public ApiResponse< RestApiStringResult > IsPanaceaVanityUrlAvailableWithHttpInf 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 + 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 @@ -1673,53 +3409,53 @@ public ApiResponse< RestApiStringResult > IsPanaceaVanityUrlAvailableWithHttpInf // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("IsPanaceaVanityUrlAvailable", localVarResponse); + Exception exception = ExceptionFactory("SetAppLanguages", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); } /// - /// Is panacea vanity url available Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Vanity url to check /// - /// Task of RestApiStringResult - public async System.Threading.Tasks.Task IsPanaceaVanityUrlAvailableAsync (string vanityUrl, string appId) + /// + /// Task of RestApiResultApp + public async System.Threading.Tasks.Task SetAppLanguagesAsync (string appId, List languages) { - ApiResponse localVarResponse = await IsPanaceaVanityUrlAvailableAsyncWithHttpInfo(vanityUrl, appId); + ApiResponse localVarResponse = await SetAppLanguagesAsyncWithHttpInfo(appId, languages); return localVarResponse.Data; } /// - /// Is panacea vanity url available Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Vanity url to check /// - /// Task of ApiResponse (RestApiStringResult) - public async System.Threading.Tasks.Task> IsPanaceaVanityUrlAvailableAsyncWithHttpInfo (string vanityUrl, string appId) + /// + /// Task of ApiResponse (RestApiResultApp) + public async System.Threading.Tasks.Task> SetAppLanguagesAsyncWithHttpInfo (string appId, List languages) { - // 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"); + 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}/panacea/url/available"; + var localVarPath = "./api/v1.0/apps/{appId}/config/languages"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1729,6 +3465,11 @@ public async System.Threading.Tasks.Task> IsPan // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -1744,7 +3485,14 @@ public async System.Threading.Tasks.Task> IsPan 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 + 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 @@ -1755,52 +3503,51 @@ public async System.Threading.Tasks.Task> IsPan // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("IsPanaceaVanityUrlAvailable", localVarResponse); + Exception exception = ExceptionFactory("SetAppLanguages", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); } /// - /// Set the application configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Changes to the configuration - /// RestApiResultApp - public RestApiResultApp SetAppConfig (string appId, AppConfigUpdateModel appConfigUpdate) + /// + /// + /// + public void SetAppStoreName (string appId, string appStoreName) { - ApiResponse localVarResponse = SetAppConfigWithHttpInfo(appId, appConfigUpdate); - return localVarResponse.Data; + SetAppStoreNameWithHttpInfo(appId, appStoreName); } /// - /// Set the application configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Changes to the configuration - /// ApiResponse of RestApiResultApp - public ApiResponse< RestApiResultApp > SetAppConfigWithHttpInfo (string appId, AppConfigUpdateModel appConfigUpdate) + /// + /// + /// 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->SetAppConfig"); - // verify the required parameter 'appConfigUpdate' is set - if (appConfigUpdate == null) - throw new ApiException(400, "Missing required parameter 'appConfigUpdate' when calling AppsApi->SetAppConfig"); + 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}/config"; + var localVarPath = "./api/v1.0/apps/{appId}/appstorename"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1830,13 +3577,13 @@ public ApiResponse< RestApiResultApp > SetAppConfigWithHttpInfo (string appId, A localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (appConfigUpdate != null && appConfigUpdate.GetType() != typeof(byte[])) + if (appStoreName != null && appStoreName.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(appConfigUpdate); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(appStoreName); // http body (model) parameter } else { - localVarPostBody = appConfigUpdate; // byte array + localVarPostBody = appStoreName; // byte array } // authentication (oauth2) required @@ -1855,46 +3602,45 @@ public ApiResponse< RestApiResultApp > SetAppConfigWithHttpInfo (string appId, A if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetAppConfig", localVarResponse); + Exception exception = ExceptionFactory("SetAppStoreName", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); + null); } /// - /// Set the application configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Changes to the configuration - /// Task of RestApiResultApp - public async System.Threading.Tasks.Task SetAppConfigAsync (string appId, AppConfigUpdateModel appConfigUpdate) + /// + /// + /// Task of void + public async System.Threading.Tasks.Task SetAppStoreNameAsync (string appId, string appStoreName) { - ApiResponse localVarResponse = await SetAppConfigAsyncWithHttpInfo(appId, appConfigUpdate); - return localVarResponse.Data; + await SetAppStoreNameAsyncWithHttpInfo(appId, appStoreName); } /// - /// Set the application configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Changes to the configuration - /// Task of ApiResponse (RestApiResultApp) - public async System.Threading.Tasks.Task> SetAppConfigAsyncWithHttpInfo (string appId, AppConfigUpdateModel appConfigUpdate) + /// + /// + /// 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->SetAppConfig"); - // verify the required parameter 'appConfigUpdate' is set - if (appConfigUpdate == null) - throw new ApiException(400, "Missing required parameter 'appConfigUpdate' when calling AppsApi->SetAppConfig"); + 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}/config"; + var localVarPath = "./api/v1.0/apps/{appId}/appstorename"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1924,13 +3670,13 @@ public async System.Threading.Tasks.Task> SetAppCo localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (appConfigUpdate != null && appConfigUpdate.GetType() != typeof(byte[])) + if (appStoreName != null && appStoreName.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(appConfigUpdate); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(appStoreName); // http body (model) parameter } else { - localVarPostBody = appConfigUpdate; // byte array + localVarPostBody = appStoreName; // byte array } // authentication (oauth2) required @@ -1949,47 +3695,45 @@ public async System.Threading.Tasks.Task> SetAppCo if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetAppConfig", localVarResponse); + Exception exception = ExceptionFactory("SetAppStoreName", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); + null); } /// - /// Set the application hostname. If no subdomain is specified in {hostname} 'www' will be prepended. + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// The new Hostname. - /// Will the website be embedded (optional) - /// RestApiStringResult - public RestApiStringResult SetAppHostname (string appId, string hostname, bool? isEmbed = null) + /// + /// + /// RestApiResultAppCompliance + public RestApiResultAppCompliance SetCompliance (string appId, string complianceType) { - ApiResponse localVarResponse = SetAppHostnameWithHttpInfo(appId, hostname, isEmbed); + ApiResponse localVarResponse = SetComplianceWithHttpInfo(appId, complianceType); return localVarResponse.Data; } /// - /// Set the application hostname. If no subdomain is specified in {hostname} 'www' will be prepended. + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// The new Hostname. - /// Will the website be embedded (optional) - /// ApiResponse of RestApiStringResult - public ApiResponse< RestApiStringResult > SetAppHostnameWithHttpInfo (string appId, string hostname, bool? isEmbed = null) + /// + /// + /// 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->SetAppHostname"); - // verify the required parameter 'hostname' is set - if (hostname == null) - throw new ApiException(400, "Missing required parameter 'hostname' when calling AppsApi->SetAppHostname"); + 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}/hostname"; + var localVarPath = "./api/v1.0/apps/{appId}/compliance"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2014,8 +3758,7 @@ public ApiResponse< RestApiStringResult > SetAppHostnameWithHttpInfo (string app 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 + if (complianceType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "complianceType", complianceType)); // query parameter // authentication (oauth2) required // oauth required @@ -2033,48 +3776,46 @@ public ApiResponse< RestApiStringResult > SetAppHostnameWithHttpInfo (string app if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetAppHostname", localVarResponse); + Exception exception = ExceptionFactory("SetCompliance", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + (RestApiResultAppCompliance) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppCompliance))); } /// - /// Set the application hostname. If no subdomain is specified in {hostname} 'www' will be prepended. + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// The new Hostname. - /// Will the website be embedded (optional) - /// Task of RestApiStringResult - public async System.Threading.Tasks.Task SetAppHostnameAsync (string appId, string hostname, bool? isEmbed = null) + /// + /// + /// Task of RestApiResultAppCompliance + public async System.Threading.Tasks.Task SetComplianceAsync (string appId, string complianceType) { - ApiResponse localVarResponse = await SetAppHostnameAsyncWithHttpInfo(appId, hostname, isEmbed); + ApiResponse localVarResponse = await SetComplianceAsyncWithHttpInfo(appId, complianceType); return localVarResponse.Data; } /// - /// Set the application hostname. If no subdomain is specified in {hostname} 'www' will be prepended. + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// The new Hostname. - /// Will the website be embedded (optional) - /// Task of ApiResponse (RestApiStringResult) - public async System.Threading.Tasks.Task> SetAppHostnameAsyncWithHttpInfo (string appId, string hostname, bool? isEmbed = null) + /// + /// + /// 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->SetAppHostname"); - // verify the required parameter 'hostname' is set - if (hostname == null) - throw new ApiException(400, "Missing required parameter 'hostname' when calling AppsApi->SetAppHostname"); + 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}/hostname"; + var localVarPath = "./api/v1.0/apps/{appId}/compliance"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2099,8 +3840,7 @@ public async System.Threading.Tasks.Task> SetAp 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 + if (complianceType != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "complianceType", complianceType)); // query parameter // authentication (oauth2) required // oauth required @@ -2118,45 +3858,45 @@ public async System.Threading.Tasks.Task> SetAp if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetAppHostname", localVarResponse); + Exception exception = ExceptionFactory("SetCompliance", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + (RestApiResultAppCompliance) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppCompliance))); } /// - /// Set the application languages + /// /// /// Thrown when fails to make API call - /// Application identifier - /// New list of languages - /// RestApiResultApp - public RestApiResultApp SetAppLanguages (string appId, List languages) + /// + /// + /// RestApiStringResult + public RestApiStringResult SetPanaceaVanityUrl (string appId, string vanityUrl) { - ApiResponse localVarResponse = SetAppLanguagesWithHttpInfo(appId, languages); + ApiResponse localVarResponse = SetPanaceaVanityUrlWithHttpInfo(appId, vanityUrl); return localVarResponse.Data; } /// - /// Set the application languages + /// /// /// Thrown when fails to make API call - /// Application identifier - /// New list of languages - /// ApiResponse of RestApiResultApp - public ApiResponse< RestApiResultApp > SetAppLanguagesWithHttpInfo (string appId, List languages) + /// + /// + /// 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->SetAppLanguages"); - // verify the required parameter 'languages' is set - if (languages == null) - throw new ApiException(400, "Missing required parameter 'languages' when calling AppsApi->SetAppLanguages"); + 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}/config/languages"; + var localVarPath = "./api/v1.0/apps/{appId}/panacea/url"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2166,11 +3906,6 @@ public ApiResponse< RestApiResultApp > SetAppLanguagesWithHttpInfo (string appId // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -2186,14 +3921,7 @@ public ApiResponse< RestApiResultApp > SetAppLanguagesWithHttpInfo (string appId 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 - } + if (vanityUrl != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "vanityUrl", vanityUrl)); // query parameter // authentication (oauth2) required // oauth required @@ -2211,46 +3939,46 @@ public ApiResponse< RestApiResultApp > SetAppLanguagesWithHttpInfo (string appId if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetAppLanguages", localVarResponse); + Exception exception = ExceptionFactory("SetPanaceaVanityUrl", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); } /// - /// Set the application languages + /// /// /// Thrown when fails to make API call - /// Application identifier - /// New list of languages - /// Task of RestApiResultApp - public async System.Threading.Tasks.Task SetAppLanguagesAsync (string appId, List languages) + /// + /// + /// Task of RestApiStringResult + public async System.Threading.Tasks.Task SetPanaceaVanityUrlAsync (string appId, string vanityUrl) { - ApiResponse localVarResponse = await SetAppLanguagesAsyncWithHttpInfo(appId, languages); + ApiResponse localVarResponse = await SetPanaceaVanityUrlAsyncWithHttpInfo(appId, vanityUrl); return localVarResponse.Data; } /// - /// Set the application languages + /// /// /// Thrown when fails to make API call - /// Application identifier - /// New list of languages - /// Task of ApiResponse (RestApiResultApp) - public async System.Threading.Tasks.Task> SetAppLanguagesAsyncWithHttpInfo (string appId, List languages) + /// + /// + /// 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->SetAppLanguages"); - // verify the required parameter 'languages' is set - if (languages == null) - throw new ApiException(400, "Missing required parameter 'languages' when calling AppsApi->SetAppLanguages"); + 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}/config/languages"; + var localVarPath = "./api/v1.0/apps/{appId}/panacea/url"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2260,11 +3988,6 @@ public async System.Threading.Tasks.Task> SetAppLa // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -2280,14 +4003,7 @@ public async System.Threading.Tasks.Task> SetAppLa 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 - } + if (vanityUrl != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "vanityUrl", vanityUrl)); // query parameter // authentication (oauth2) required // oauth required @@ -2305,45 +4021,44 @@ public async System.Threading.Tasks.Task> SetAppLa if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetAppLanguages", localVarResponse); + Exception exception = ExceptionFactory("SetPanaceaVanityUrl", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultApp) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultApp))); + (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); } /// - /// Set the application compliance configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Compliance type - /// RestApiResultAppCompliance - public RestApiResultAppCompliance SetCompliance (string appId, string complianceType) + /// + /// + /// + public void SetThirdPartyIntegrations (string appId, bool? enabled) { - ApiResponse localVarResponse = SetComplianceWithHttpInfo(appId, complianceType); - return localVarResponse.Data; + SetThirdPartyIntegrationsWithHttpInfo(appId, enabled); } /// - /// Set the application compliance configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Compliance type - /// ApiResponse of RestApiResultAppCompliance - public ApiResponse< RestApiResultAppCompliance > SetComplianceWithHttpInfo (string appId, string complianceType) + /// + /// + /// 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->SetCompliance"); - // verify the required parameter 'complianceType' is set - if (complianceType == null) - throw new ApiException(400, "Missing required parameter 'complianceType' when calling AppsApi->SetCompliance"); + 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}/compliance"; + 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); @@ -2368,7 +4083,7 @@ public ApiResponse< RestApiResultAppCompliance > SetComplianceWithHttpInfo (stri 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 + if (enabled != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "enabled", enabled)); // query parameter // authentication (oauth2) required // oauth required @@ -2386,46 +4101,45 @@ public ApiResponse< RestApiResultAppCompliance > SetComplianceWithHttpInfo (stri if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetCompliance", localVarResponse); + Exception exception = ExceptionFactory("SetThirdPartyIntegrations", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultAppCompliance) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppCompliance))); + null); } /// - /// Set the application compliance configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Compliance type - /// Task of RestApiResultAppCompliance - public async System.Threading.Tasks.Task SetComplianceAsync (string appId, string complianceType) + /// + /// + /// Task of void + public async System.Threading.Tasks.Task SetThirdPartyIntegrationsAsync (string appId, bool? enabled) { - ApiResponse localVarResponse = await SetComplianceAsyncWithHttpInfo(appId, complianceType); - return localVarResponse.Data; + await SetThirdPartyIntegrationsAsyncWithHttpInfo(appId, enabled); } /// - /// Set the application compliance configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Compliance type - /// Task of ApiResponse (RestApiResultAppCompliance) - public async System.Threading.Tasks.Task> SetComplianceAsyncWithHttpInfo (string appId, string complianceType) + /// + /// + /// 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->SetCompliance"); - // verify the required parameter 'complianceType' is set - if (complianceType == null) - throw new ApiException(400, "Missing required parameter 'complianceType' when calling AppsApi->SetCompliance"); + 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}/compliance"; + 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); @@ -2450,7 +4164,7 @@ public async System.Threading.Tasks.Task 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 + if (enabled != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "enabled", enabled)); // query parameter // authentication (oauth2) required // oauth required @@ -2468,45 +4182,55 @@ public async System.Threading.Tasks.Task if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetCompliance", localVarResponse); + Exception exception = ExceptionFactory("SetThirdPartyIntegrations", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultAppCompliance) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultAppCompliance))); + null); } /// - /// Set panacea vanity url Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Vanity url + /// + /// + /// + /// /// RestApiStringResult - public RestApiStringResult SetPanaceaVanityUrl (string appId, string vanityUrl) + public RestApiStringResult ToggleNextGenWeb (string appId, string hostname, string vanityUrl, bool? isNextGenWeb) { - ApiResponse localVarResponse = SetPanaceaVanityUrlWithHttpInfo(appId, vanityUrl); + ApiResponse localVarResponse = ToggleNextGenWebWithHttpInfo(appId, hostname, vanityUrl, isNextGenWeb); return localVarResponse.Data; } /// - /// Set panacea vanity url Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Vanity url + /// + /// + /// + /// /// ApiResponse of RestApiStringResult - public ApiResponse< RestApiStringResult > SetPanaceaVanityUrlWithHttpInfo (string appId, string vanityUrl) + 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->SetPanaceaVanityUrl"); + 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->SetPanaceaVanityUrl"); + 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}/panacea/url"; + var localVarPath = "./api/v1.0/apps/{appId}/nextgenweb"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2531,7 +4255,9 @@ public ApiResponse< RestApiStringResult > SetPanaceaVanityUrlWithHttpInfo (strin 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 @@ -2549,7 +4275,7 @@ public ApiResponse< RestApiStringResult > SetPanaceaVanityUrlWithHttpInfo (strin if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetPanaceaVanityUrl", localVarResponse); + Exception exception = ExceptionFactory("ToggleNextGenWeb", localVarResponse); if (exception != null) throw exception; } @@ -2559,36 +4285,46 @@ public ApiResponse< RestApiStringResult > SetPanaceaVanityUrlWithHttpInfo (strin } /// - /// Set panacea vanity url Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Vanity url + /// + /// + /// + /// /// Task of RestApiStringResult - public async System.Threading.Tasks.Task SetPanaceaVanityUrlAsync (string appId, string vanityUrl) + public async System.Threading.Tasks.Task ToggleNextGenWebAsync (string appId, string hostname, string vanityUrl, bool? isNextGenWeb) { - ApiResponse localVarResponse = await SetPanaceaVanityUrlAsyncWithHttpInfo(appId, vanityUrl); + ApiResponse localVarResponse = await ToggleNextGenWebAsyncWithHttpInfo(appId, hostname, vanityUrl, isNextGenWeb); return localVarResponse.Data; } /// - /// Set panacea vanity url Minimum length of 3 characters + /// /// /// Thrown when fails to make API call - /// Application identifier. - /// Vanity url + /// + /// + /// + /// /// Task of ApiResponse (RestApiStringResult) - public async System.Threading.Tasks.Task> SetPanaceaVanityUrlAsyncWithHttpInfo (string appId, string vanityUrl) + 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->SetPanaceaVanityUrl"); + 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->SetPanaceaVanityUrl"); + 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}/panacea/url"; + var localVarPath = "./api/v1.0/apps/{appId}/nextgenweb"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2613,7 +4349,9 @@ public async System.Threading.Tasks.Task> SetPa 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 @@ -2631,7 +4369,7 @@ public async System.Threading.Tasks.Task> SetPa if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetPanaceaVanityUrl", localVarResponse); + Exception exception = ExceptionFactory("ToggleNextGenWeb", localVarResponse); if (exception != null) throw exception; } @@ -2641,10 +4379,10 @@ public async System.Threading.Tasks.Task> SetPa } /// - /// Set the application logo \\ icon + /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// App Logo /// public void UploadAppLogo (string appId, System.IO.Stream image) @@ -2653,10 +4391,10 @@ public void UploadAppLogo (string appId, System.IO.Stream image) } /// - /// Set the application logo \\ icon + /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// App Logo /// ApiResponse of Object(void) public ApiResponse UploadAppLogoWithHttpInfo (string appId, System.IO.Stream image) @@ -2722,10 +4460,10 @@ public ApiResponse UploadAppLogoWithHttpInfo (string appId, System.IO.St } /// - /// Set the application logo \\ icon + /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// App Logo /// Task of void public async System.Threading.Tasks.Task UploadAppLogoAsync (string appId, System.IO.Stream image) @@ -2735,10 +4473,10 @@ public async System.Threading.Tasks.Task UploadAppLogoAsync (string appId, Syste } /// - /// Set the application logo \\ icon + /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// App Logo /// Task of ApiResponse public async System.Threading.Tasks.Task> UploadAppLogoAsyncWithHttpInfo (string appId, System.IO.Stream image) diff --git a/src/Flipdish/Api/AuditLogsApi.cs b/src/Flipdish/Api/AuditLogsApi.cs index ebc340ce..20777290 100644 --- a/src/Flipdish/Api/AuditLogsApi.cs +++ b/src/Flipdish/Api/AuditLogsApi.cs @@ -25,10 +25,10 @@ public interface IAuditLogsApi : IApiAccessor { #region Synchronous Operations /// - /// Create an order audit log event + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -37,10 +37,10 @@ public interface IAuditLogsApi : IApiAccessor void AddOrderAuditLog (int? orderId, List externalEventCreate); /// - /// Create an order audit log event + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -48,10 +48,10 @@ public interface IAuditLogsApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse AddOrderAuditLogWithHttpInfo (int? orderId, List externalEventCreate); /// - /// Create a store audit log event + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -60,10 +60,10 @@ public interface IAuditLogsApi : IApiAccessor void AddStoreAuditLogEvent (int? storeId, List externalEventCreate); /// - /// Create a store audit log event + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -73,10 +73,10 @@ public interface IAuditLogsApi : IApiAccessor #endregion Synchronous Operations #region Asynchronous Operations /// - /// Create an order audit log event + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -85,10 +85,10 @@ public interface IAuditLogsApi : IApiAccessor System.Threading.Tasks.Task AddOrderAuditLogAsync (int? orderId, List externalEventCreate); /// - /// Create an order audit log event + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -96,10 +96,10 @@ public interface IAuditLogsApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> AddOrderAuditLogAsyncWithHttpInfo (int? orderId, List externalEventCreate); /// - /// Create a store audit log event + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -108,10 +108,10 @@ public interface IAuditLogsApi : IApiAccessor System.Threading.Tasks.Task AddStoreAuditLogEventAsync (int? storeId, List externalEventCreate); /// - /// Create a store audit log event + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -219,7 +219,7 @@ public void AddDefaultHeader(string key, string value) } /// - /// Create an order audit log event [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -231,7 +231,7 @@ public void AddOrderAuditLog (int? orderId, List external } /// - /// Create an order audit log event [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -311,7 +311,7 @@ public ApiResponse AddOrderAuditLogWithHttpInfo (int? orderId, List - /// Create an order audit log event [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -324,7 +324,7 @@ public async System.Threading.Tasks.Task AddOrderAuditLogAsync (int? orderId, Li } /// - /// Create an order audit log event [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -404,7 +404,7 @@ public async System.Threading.Tasks.Task> AddOrderAuditLogAs } /// - /// Create a store audit log event [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -416,7 +416,7 @@ public void AddStoreAuditLogEvent (int? storeId, List ext } /// - /// Create a store audit log event [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -496,7 +496,7 @@ public ApiResponse AddStoreAuditLogEventWithHttpInfo (int? storeId, List } /// - /// Create a store audit log event [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -509,7 +509,7 @@ public async System.Threading.Tasks.Task AddStoreAuditLogEventAsync (int? storeI } /// - /// Create a store audit log event [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// diff --git a/src/Flipdish/Api/AuthorizationTokensApi.cs b/src/Flipdish/Api/AuthorizationTokensApi.cs index d95f7c70..e3bd4370 100644 --- a/src/Flipdish/Api/AuthorizationTokensApi.cs +++ b/src/Flipdish/Api/AuthorizationTokensApi.cs @@ -25,104 +25,104 @@ public interface IAuthorizationTokensApi : IApiAccessor { #region Synchronous Operations /// - /// Get authorization tokens + /// /// /// /// /// /// Thrown when fails to make API call - /// Client identifier + /// /// - /// Requested page number (optional) - /// Requested page limit (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultOAuthTokenModel RestApiPaginationResultOAuthTokenModel GetAuthorizationTokens (string oauthAppId, string appId, int? page = null, int? limit = null); /// - /// Get authorization tokens + /// /// /// /// /// /// Thrown when fails to make API call - /// Client identifier + /// /// - /// Requested page number (optional) - /// Requested page limit (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiPaginationResultOAuthTokenModel ApiResponse GetAuthorizationTokensWithHttpInfo (string oauthAppId, string appId, int? page = null, int? limit = null); /// - /// Revoke token + /// /// /// /// /// /// Thrown when fails to make API call - /// Token identifier key + /// /// /// void RevokeToken (string key, string appId); /// - /// Revoke token + /// /// /// /// /// /// Thrown when fails to make API call - /// Token identifier key + /// /// /// ApiResponse of Object(void) ApiResponse RevokeTokenWithHttpInfo (string key, string appId); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get authorization tokens + /// /// /// /// /// /// Thrown when fails to make API call - /// Client identifier + /// /// - /// Requested page number (optional) - /// Requested page limit (optional) + /// (optional) + /// (optional) /// Task of RestApiPaginationResultOAuthTokenModel System.Threading.Tasks.Task GetAuthorizationTokensAsync (string oauthAppId, string appId, int? page = null, int? limit = null); /// - /// Get authorization tokens + /// /// /// /// /// /// Thrown when fails to make API call - /// Client identifier + /// /// - /// Requested page number (optional) - /// Requested page limit (optional) + /// (optional) + /// (optional) /// Task of ApiResponse (RestApiPaginationResultOAuthTokenModel) System.Threading.Tasks.Task> GetAuthorizationTokensAsyncWithHttpInfo (string oauthAppId, string appId, int? page = null, int? limit = null); /// - /// Revoke token + /// /// /// /// /// /// Thrown when fails to make API call - /// Token identifier key + /// /// /// Task of void System.Threading.Tasks.Task RevokeTokenAsync (string key, string appId); /// - /// Revoke token + /// /// /// /// /// /// Thrown when fails to make API call - /// Token identifier key + /// /// /// Task of ApiResponse System.Threading.Tasks.Task> RevokeTokenAsyncWithHttpInfo (string key, string appId); @@ -227,13 +227,13 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get authorization tokens + /// /// /// Thrown when fails to make API call - /// Client identifier + /// /// - /// Requested page number (optional) - /// Requested page limit (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultOAuthTokenModel public RestApiPaginationResultOAuthTokenModel GetAuthorizationTokens (string oauthAppId, string appId, int? page = null, int? limit = null) { @@ -242,13 +242,13 @@ public RestApiPaginationResultOAuthTokenModel GetAuthorizationTokens (string oau } /// - /// Get authorization tokens + /// /// /// Thrown when fails to make API call - /// Client identifier + /// /// - /// Requested page number (optional) - /// Requested page limit (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiPaginationResultOAuthTokenModel public ApiResponse< RestApiPaginationResultOAuthTokenModel > GetAuthorizationTokensWithHttpInfo (string oauthAppId, string appId, int? page = null, int? limit = null) { @@ -314,13 +314,13 @@ public ApiResponse< RestApiPaginationResultOAuthTokenModel > GetAuthorizationTok } /// - /// Get authorization tokens + /// /// /// Thrown when fails to make API call - /// Client identifier + /// /// - /// Requested page number (optional) - /// Requested page limit (optional) + /// (optional) + /// (optional) /// Task of RestApiPaginationResultOAuthTokenModel public async System.Threading.Tasks.Task GetAuthorizationTokensAsync (string oauthAppId, string appId, int? page = null, int? limit = null) { @@ -330,13 +330,13 @@ public async System.Threading.Tasks.Task } /// - /// Get authorization tokens + /// /// /// Thrown when fails to make API call - /// Client identifier + /// /// - /// Requested page number (optional) - /// Requested page limit (optional) + /// (optional) + /// (optional) /// Task of ApiResponse (RestApiPaginationResultOAuthTokenModel) public async System.Threading.Tasks.Task> GetAuthorizationTokensAsyncWithHttpInfo (string oauthAppId, string appId, int? page = null, int? limit = null) { @@ -402,10 +402,10 @@ public async System.Threading.Tasks.Task - /// Revoke token + /// /// /// Thrown when fails to make API call - /// Token identifier key + /// /// /// public void RevokeToken (string key, string appId) @@ -414,10 +414,10 @@ public void RevokeToken (string key, string appId) } /// - /// Revoke token + /// /// /// Thrown when fails to make API call - /// Token identifier key + /// /// /// ApiResponse of Object(void) public ApiResponse RevokeTokenWithHttpInfo (string key, string appId) @@ -482,10 +482,10 @@ public ApiResponse RevokeTokenWithHttpInfo (string key, string appId) } /// - /// Revoke token + /// /// /// Thrown when fails to make API call - /// Token identifier key + /// /// /// Task of void public async System.Threading.Tasks.Task RevokeTokenAsync (string key, string appId) @@ -495,10 +495,10 @@ public async System.Threading.Tasks.Task RevokeTokenAsync (string key, string ap } /// - /// Revoke token + /// /// /// Thrown when fails to make API call - /// Token identifier key + /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> RevokeTokenAsyncWithHttpInfo (string key, string appId) diff --git a/src/Flipdish/Api/BankAccountApi.cs b/src/Flipdish/Api/BankAccountApi.cs index 72b6536f..3a422fdd 100644 --- a/src/Flipdish/Api/BankAccountApi.cs +++ b/src/Flipdish/Api/BankAccountApi.cs @@ -25,122 +25,124 @@ public interface IBankAccountApi : IApiAccessor { #region Synchronous Operations /// - /// [PRIVATE API] Attach Bank Account to Store + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Store to be attached to Bank account + /// + /// + /// + /// (optional) /// - void AttachBankAccountToStore (string appId, int? bankAccountId, int? storeId); + void AttachBankAccountToStore (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null); /// - /// [PRIVATE API] Attach Bank Account to Store + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Store to be attached to Bank account + /// + /// + /// + /// (optional) /// ApiResponse of Object(void) - ApiResponse AttachBankAccountToStoreWithHttpInfo (string appId, int? bankAccountId, int? storeId); + ApiResponse AttachBankAccountToStoreWithHttpInfo (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null); /// - /// Create a new Bank Account and attach to this App + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// RestApiResultBankAccountDetail RestApiResultBankAccountDetail CreateBankAccount (string appId, BankAccountCreate account); /// - /// Create a new Bank Account and attach to this App + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// ApiResponse of RestApiResultBankAccountDetail ApiResponse CreateBankAccountWithHttpInfo (string appId, BankAccountCreate account); /// - /// Delete BankAccount + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be marked as deleted + /// + /// /// void DeleteBankAccount (string appId, int? bankAccountId); /// - /// Delete BankAccount + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be marked as deleted + /// + /// /// ApiResponse of Object(void) ApiResponse DeleteBankAccountWithHttpInfo (string appId, int? bankAccountId); /// - /// Get BankAccount Detail by Id + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of account + /// /// /// RestApiResultBankAccountDetail RestApiResultBankAccountDetail GetBankAccountById (int? bankAccountId, string appId); /// - /// Get BankAccount Detail by Id + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of account + /// /// /// ApiResponse of RestApiResultBankAccountDetail ApiResponse GetBankAccountByIdWithHttpInfo (int? bankAccountId, string appId); /// - /// Get List of BankAccounts for WL + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name + /// /// RestApiArrayResultBankAccountSummary RestApiArrayResultBankAccountSummary GetBankAccounts (string appId); /// - /// Get List of BankAccounts for WL + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name + /// /// ApiResponse of RestApiArrayResultBankAccountSummary ApiResponse GetBankAccountsWithHttpInfo (string appId); /// - /// Get bank account fields definitions + /// /// /// /// @@ -151,7 +153,7 @@ public interface IBankAccountApi : IApiAccessor RestApiArrayResultCountryWithAccountFieldsDefinitions GetCountriesWithFieldDefinitions (string appId); /// - /// Get bank account fields definitions + /// /// /// /// @@ -161,7 +163,7 @@ public interface IBankAccountApi : IApiAccessor /// ApiResponse of RestApiArrayResultCountryWithAccountFieldsDefinitions ApiResponse GetCountriesWithFieldDefinitionsWithHttpInfo (string appId); /// - /// Get bank account fields definitions + /// /// /// /// @@ -172,7 +174,7 @@ public interface IBankAccountApi : IApiAccessor RestApiResultAccountFieldsDefinitions GetFieldDefinitions (string appId); /// - /// Get bank account fields definitions + /// /// /// /// @@ -182,176 +184,178 @@ public interface IBankAccountApi : IApiAccessor /// ApiResponse of RestApiResultAccountFieldsDefinitions ApiResponse GetFieldDefinitionsWithHttpInfo (string appId); /// - /// Update BankAccount + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Details to update account with + /// + /// + /// /// void UpdateBankAccount (string appId, int? bankAccountId, BankAccountCreate account); /// - /// Update BankAccount + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Details to update account with + /// + /// + /// /// ApiResponse of Object(void) ApiResponse UpdateBankAccountWithHttpInfo (string appId, int? bankAccountId, BankAccountCreate account); /// - /// [PRIVATE API] Update State of Bank Account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// New state - /// Reason for state change, Mandatory for rejections + /// + /// + /// + /// /// void UpdateBankAccountState (string appId, int? bankAccountId, string state, string reason); /// - /// [PRIVATE API] Update State of Bank Account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// New state - /// Reason for state change, Mandatory for rejections + /// + /// + /// + /// /// ApiResponse of Object(void) ApiResponse UpdateBankAccountStateWithHttpInfo (string appId, int? bankAccountId, string state, string reason); #endregion Synchronous Operations #region Asynchronous Operations /// - /// [PRIVATE API] Attach Bank Account to Store + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Store to be attached to Bank account + /// + /// + /// + /// (optional) /// Task of void - System.Threading.Tasks.Task AttachBankAccountToStoreAsync (string appId, int? bankAccountId, int? storeId); + System.Threading.Tasks.Task AttachBankAccountToStoreAsync (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null); /// - /// [PRIVATE API] Attach Bank Account to Store + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Store to be attached to Bank account + /// + /// + /// + /// (optional) /// Task of ApiResponse - System.Threading.Tasks.Task> AttachBankAccountToStoreAsyncWithHttpInfo (string appId, int? bankAccountId, int? storeId); + System.Threading.Tasks.Task> AttachBankAccountToStoreAsyncWithHttpInfo (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null); /// - /// Create a new Bank Account and attach to this App + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// Task of RestApiResultBankAccountDetail System.Threading.Tasks.Task CreateBankAccountAsync (string appId, BankAccountCreate account); /// - /// Create a new Bank Account and attach to this App + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// Task of ApiResponse (RestApiResultBankAccountDetail) System.Threading.Tasks.Task> CreateBankAccountAsyncWithHttpInfo (string appId, BankAccountCreate account); /// - /// Delete BankAccount + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be marked as deleted + /// + /// /// Task of void System.Threading.Tasks.Task DeleteBankAccountAsync (string appId, int? bankAccountId); /// - /// Delete BankAccount + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be marked as deleted + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> DeleteBankAccountAsyncWithHttpInfo (string appId, int? bankAccountId); /// - /// Get BankAccount Detail by Id + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of account + /// /// /// Task of RestApiResultBankAccountDetail System.Threading.Tasks.Task GetBankAccountByIdAsync (int? bankAccountId, string appId); /// - /// Get BankAccount Detail by Id + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of account + /// /// /// Task of ApiResponse (RestApiResultBankAccountDetail) System.Threading.Tasks.Task> GetBankAccountByIdAsyncWithHttpInfo (int? bankAccountId, string appId); /// - /// Get List of BankAccounts for WL + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name + /// /// Task of RestApiArrayResultBankAccountSummary System.Threading.Tasks.Task GetBankAccountsAsync (string appId); /// - /// Get List of BankAccounts for WL + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name + /// /// Task of ApiResponse (RestApiArrayResultBankAccountSummary) System.Threading.Tasks.Task> GetBankAccountsAsyncWithHttpInfo (string appId); /// - /// Get bank account fields definitions + /// /// /// /// @@ -362,7 +366,7 @@ public interface IBankAccountApi : IApiAccessor System.Threading.Tasks.Task GetCountriesWithFieldDefinitionsAsync (string appId); /// - /// Get bank account fields definitions + /// /// /// /// @@ -372,7 +376,7 @@ public interface IBankAccountApi : IApiAccessor /// Task of ApiResponse (RestApiArrayResultCountryWithAccountFieldsDefinitions) System.Threading.Tasks.Task> GetCountriesWithFieldDefinitionsAsyncWithHttpInfo (string appId); /// - /// Get bank account fields definitions + /// /// /// /// @@ -383,7 +387,7 @@ public interface IBankAccountApi : IApiAccessor System.Threading.Tasks.Task GetFieldDefinitionsAsync (string appId); /// - /// Get bank account fields definitions + /// /// /// /// @@ -393,55 +397,55 @@ public interface IBankAccountApi : IApiAccessor /// Task of ApiResponse (RestApiResultAccountFieldsDefinitions) System.Threading.Tasks.Task> GetFieldDefinitionsAsyncWithHttpInfo (string appId); /// - /// Update BankAccount + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Details to update account with + /// + /// + /// /// Task of void System.Threading.Tasks.Task UpdateBankAccountAsync (string appId, int? bankAccountId, BankAccountCreate account); /// - /// Update BankAccount + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Details to update account with + /// + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> UpdateBankAccountAsyncWithHttpInfo (string appId, int? bankAccountId, BankAccountCreate account); /// - /// [PRIVATE API] Update State of Bank Account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// New state - /// Reason for state change, Mandatory for rejections + /// + /// + /// + /// /// Task of void System.Threading.Tasks.Task UpdateBankAccountStateAsync (string appId, int? bankAccountId, string state, string reason); /// - /// [PRIVATE API] Update State of Bank Account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// New state - /// Reason for state change, Mandatory for rejections + /// + /// + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> UpdateBankAccountStateAsyncWithHttpInfo (string appId, int? bankAccountId, string state, string reason); #endregion Asynchronous Operations @@ -545,27 +549,29 @@ public void AddDefaultHeader(string key, string value) } /// - /// [PRIVATE API] Attach Bank Account to Store + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Store to be attached to Bank account + /// + /// + /// + /// (optional) /// - public void AttachBankAccountToStore (string appId, int? bankAccountId, int? storeId) + public void AttachBankAccountToStore (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null) { - AttachBankAccountToStoreWithHttpInfo(appId, bankAccountId, storeId); + AttachBankAccountToStoreWithHttpInfo(appId, bankAccountId, storeId, skipBankAccountUpdateWarningEmail); } /// - /// [PRIVATE API] Attach Bank Account to Store + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Store to be attached to Bank account + /// + /// + /// + /// (optional) /// ApiResponse of Object(void) - public ApiResponse AttachBankAccountToStoreWithHttpInfo (string appId, int? bankAccountId, int? storeId) + public ApiResponse AttachBankAccountToStoreWithHttpInfo (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null) { // verify the required parameter 'appId' is set if (appId == null) @@ -604,6 +610,7 @@ public ApiResponse AttachBankAccountToStoreWithHttpInfo (string appId, i 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 @@ -631,28 +638,30 @@ public ApiResponse AttachBankAccountToStoreWithHttpInfo (string appId, i } /// - /// [PRIVATE API] Attach Bank Account to Store + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Store to be attached to Bank account + /// + /// + /// + /// (optional) /// Task of void - public async System.Threading.Tasks.Task AttachBankAccountToStoreAsync (string appId, int? bankAccountId, int? storeId) + public async System.Threading.Tasks.Task AttachBankAccountToStoreAsync (string appId, int? bankAccountId, int? storeId, bool? skipBankAccountUpdateWarningEmail = null) { - await AttachBankAccountToStoreAsyncWithHttpInfo(appId, bankAccountId, storeId); + await AttachBankAccountToStoreAsyncWithHttpInfo(appId, bankAccountId, storeId, skipBankAccountUpdateWarningEmail); } /// - /// [PRIVATE API] Attach Bank Account to Store + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Store to be attached to Bank account + /// + /// + /// + /// (optional) /// Task of ApiResponse - public async System.Threading.Tasks.Task> AttachBankAccountToStoreAsyncWithHttpInfo (string appId, int? bankAccountId, int? storeId) + 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) @@ -691,6 +700,7 @@ public async System.Threading.Tasks.Task> AttachBankAccountT 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 @@ -718,11 +728,11 @@ public async System.Threading.Tasks.Task> AttachBankAccountT } /// - /// Create a new Bank Account and attach to this App + /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// RestApiResultBankAccountDetail public RestApiResultBankAccountDetail CreateBankAccount (string appId, BankAccountCreate account) { @@ -731,11 +741,11 @@ public RestApiResultBankAccountDetail CreateBankAccount (string appId, BankAccou } /// - /// Create a new Bank Account and attach to this App + /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// ApiResponse of RestApiResultBankAccountDetail public ApiResponse< RestApiResultBankAccountDetail > CreateBankAccountWithHttpInfo (string appId, BankAccountCreate account) { @@ -811,11 +821,11 @@ public ApiResponse< RestApiResultBankAccountDetail > CreateBankAccountWithHttpIn } /// - /// Create a new Bank Account and attach to this App + /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// Task of RestApiResultBankAccountDetail public async System.Threading.Tasks.Task CreateBankAccountAsync (string appId, BankAccountCreate account) { @@ -825,11 +835,11 @@ public async System.Threading.Tasks.Task CreateB } /// - /// Create a new Bank Account and attach to this App + /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// Task of ApiResponse (RestApiResultBankAccountDetail) public async System.Threading.Tasks.Task> CreateBankAccountAsyncWithHttpInfo (string appId, BankAccountCreate account) { @@ -905,11 +915,11 @@ public async System.Threading.Tasks.Task - /// Delete BankAccount + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be marked as deleted + /// + /// /// public void DeleteBankAccount (string appId, int? bankAccountId) { @@ -917,11 +927,11 @@ public void DeleteBankAccount (string appId, int? bankAccountId) } /// - /// Delete BankAccount + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be marked as deleted + /// + /// /// ApiResponse of Object(void) public ApiResponse DeleteBankAccountWithHttpInfo (string appId, int? bankAccountId) { @@ -985,11 +995,11 @@ public ApiResponse DeleteBankAccountWithHttpInfo (string appId, int? ban } /// - /// Delete BankAccount + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be marked as deleted + /// + /// /// Task of void public async System.Threading.Tasks.Task DeleteBankAccountAsync (string appId, int? bankAccountId) { @@ -998,11 +1008,11 @@ public async System.Threading.Tasks.Task DeleteBankAccountAsync (string appId, i } /// - /// Delete BankAccount + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be marked as deleted + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> DeleteBankAccountAsyncWithHttpInfo (string appId, int? bankAccountId) { @@ -1066,10 +1076,10 @@ public async System.Threading.Tasks.Task> DeleteBankAccountA } /// - /// Get BankAccount Detail by Id + /// /// /// Thrown when fails to make API call - /// Id of account + /// /// /// RestApiResultBankAccountDetail public RestApiResultBankAccountDetail GetBankAccountById (int? bankAccountId, string appId) @@ -1079,10 +1089,10 @@ public RestApiResultBankAccountDetail GetBankAccountById (int? bankAccountId, st } /// - /// Get BankAccount Detail by Id + /// /// /// Thrown when fails to make API call - /// Id of account + /// /// /// ApiResponse of RestApiResultBankAccountDetail public ApiResponse< RestApiResultBankAccountDetail > GetBankAccountByIdWithHttpInfo (int? bankAccountId, string appId) @@ -1147,10 +1157,10 @@ public ApiResponse< RestApiResultBankAccountDetail > GetBankAccountByIdWithHttpI } /// - /// Get BankAccount Detail by Id + /// /// /// Thrown when fails to make API call - /// Id of account + /// /// /// Task of RestApiResultBankAccountDetail public async System.Threading.Tasks.Task GetBankAccountByIdAsync (int? bankAccountId, string appId) @@ -1161,10 +1171,10 @@ public async System.Threading.Tasks.Task GetBank } /// - /// Get BankAccount Detail by Id + /// /// /// Thrown when fails to make API call - /// Id of account + /// /// /// Task of ApiResponse (RestApiResultBankAccountDetail) public async System.Threading.Tasks.Task> GetBankAccountByIdAsyncWithHttpInfo (int? bankAccountId, string appId) @@ -1229,10 +1239,10 @@ public async System.Threading.Tasks.Task - /// Get List of BankAccounts for WL + /// /// /// Thrown when fails to make API call - /// App Name + /// /// RestApiArrayResultBankAccountSummary public RestApiArrayResultBankAccountSummary GetBankAccounts (string appId) { @@ -1241,10 +1251,10 @@ public RestApiArrayResultBankAccountSummary GetBankAccounts (string appId) } /// - /// Get List of BankAccounts for WL + /// /// /// Thrown when fails to make API call - /// App Name + /// /// ApiResponse of RestApiArrayResultBankAccountSummary public ApiResponse< RestApiArrayResultBankAccountSummary > GetBankAccountsWithHttpInfo (string appId) { @@ -1304,10 +1314,10 @@ public ApiResponse< RestApiArrayResultBankAccountSummary > GetBankAccountsWithHt } /// - /// Get List of BankAccounts for WL + /// /// /// Thrown when fails to make API call - /// App Name + /// /// Task of RestApiArrayResultBankAccountSummary public async System.Threading.Tasks.Task GetBankAccountsAsync (string appId) { @@ -1317,10 +1327,10 @@ public async System.Threading.Tasks.Task G } /// - /// Get List of BankAccounts for WL + /// /// /// Thrown when fails to make API call - /// App Name + /// /// Task of ApiResponse (RestApiArrayResultBankAccountSummary) public async System.Threading.Tasks.Task> GetBankAccountsAsyncWithHttpInfo (string appId) { @@ -1380,7 +1390,7 @@ public async System.Threading.Tasks.Task - /// Get bank account fields definitions + /// /// /// Thrown when fails to make API call /// @@ -1392,7 +1402,7 @@ public RestApiArrayResultCountryWithAccountFieldsDefinitions GetCountriesWithFie } /// - /// Get bank account fields definitions + /// /// /// Thrown when fails to make API call /// @@ -1455,7 +1465,7 @@ public ApiResponse< RestApiArrayResultCountryWithAccountFieldsDefinitions > GetC } /// - /// Get bank account fields definitions + /// /// /// Thrown when fails to make API call /// @@ -1468,7 +1478,7 @@ public async System.Threading.Tasks.Task - /// Get bank account fields definitions + /// /// /// Thrown when fails to make API call /// @@ -1531,7 +1541,7 @@ public async System.Threading.Tasks.Task - /// Get bank account fields definitions + /// /// /// Thrown when fails to make API call /// @@ -1543,7 +1553,7 @@ public RestApiResultAccountFieldsDefinitions GetFieldDefinitions (string appId) } /// - /// Get bank account fields definitions + /// /// /// Thrown when fails to make API call /// @@ -1606,7 +1616,7 @@ public ApiResponse< RestApiResultAccountFieldsDefinitions > GetFieldDefinitionsW } /// - /// Get bank account fields definitions + /// /// /// Thrown when fails to make API call /// @@ -1619,7 +1629,7 @@ public async System.Threading.Tasks.Task } /// - /// Get bank account fields definitions + /// /// /// Thrown when fails to make API call /// @@ -1682,12 +1692,12 @@ public async System.Threading.Tasks.Task - /// Update BankAccount + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Details to update account with + /// + /// + /// /// public void UpdateBankAccount (string appId, int? bankAccountId, BankAccountCreate account) { @@ -1695,12 +1705,12 @@ public void UpdateBankAccount (string appId, int? bankAccountId, BankAccountCrea } /// - /// Update BankAccount + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Details to update account with + /// + /// + /// /// ApiResponse of Object(void) public ApiResponse UpdateBankAccountWithHttpInfo (string appId, int? bankAccountId, BankAccountCreate account) { @@ -1780,12 +1790,12 @@ public ApiResponse UpdateBankAccountWithHttpInfo (string appId, int? ban } /// - /// Update BankAccount + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Details to update account with + /// + /// + /// /// Task of void public async System.Threading.Tasks.Task UpdateBankAccountAsync (string appId, int? bankAccountId, BankAccountCreate account) { @@ -1794,12 +1804,12 @@ public async System.Threading.Tasks.Task UpdateBankAccountAsync (string appId, i } /// - /// Update BankAccount + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// Details to update account with + /// + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateBankAccountAsyncWithHttpInfo (string appId, int? bankAccountId, BankAccountCreate account) { @@ -1879,13 +1889,13 @@ public async System.Threading.Tasks.Task> UpdateBankAccountA } /// - /// [PRIVATE API] Update State of Bank Account + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// New state - /// Reason for state change, Mandatory for rejections + /// + /// + /// + /// /// public void UpdateBankAccountState (string appId, int? bankAccountId, string state, string reason) { @@ -1893,13 +1903,13 @@ public void UpdateBankAccountState (string appId, int? bankAccountId, string sta } /// - /// [PRIVATE API] Update State of Bank Account + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// New state - /// Reason for state change, Mandatory for rejections + /// + /// + /// + /// /// ApiResponse of Object(void) public ApiResponse UpdateBankAccountStateWithHttpInfo (string appId, int? bankAccountId, string state, string reason) { @@ -1983,13 +1993,13 @@ public ApiResponse UpdateBankAccountStateWithHttpInfo (string appId, int } /// - /// [PRIVATE API] Update State of Bank Account + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// New state - /// Reason for state change, Mandatory for rejections + /// + /// + /// + /// /// Task of void public async System.Threading.Tasks.Task UpdateBankAccountStateAsync (string appId, int? bankAccountId, string state, string reason) { @@ -1998,13 +2008,13 @@ public async System.Threading.Tasks.Task UpdateBankAccountStateAsync (string app } /// - /// [PRIVATE API] Update State of Bank Account + /// /// /// Thrown when fails to make API call - /// App Name - /// Id of account to be updated - /// New state - /// Reason for state change, Mandatory for rejections + /// + /// + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateBankAccountStateAsyncWithHttpInfo (string appId, int? bankAccountId, string state, string reason) { diff --git a/src/Flipdish/Api/CampaignsApi.cs b/src/Flipdish/Api/CampaignsApi.cs index 288ad4ac..a6ed0dee 100644 --- a/src/Flipdish/Api/CampaignsApi.cs +++ b/src/Flipdish/Api/CampaignsApi.cs @@ -25,465 +25,465 @@ public interface ICampaignsApi : IApiAccessor { #region Synchronous Operations /// - /// Creates loyalty campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign details + /// + /// /// RestApiResultLoyaltyCampaign RestApiResultLoyaltyCampaign CreateLoyaltyCampaign (string appId, LoyaltyCampaignBase campaign); /// - /// Creates loyalty campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign details + /// + /// /// ApiResponse of RestApiResultLoyaltyCampaign ApiResponse CreateLoyaltyCampaignWithHttpInfo (string appId, LoyaltyCampaignBase campaign); /// - /// Creates retention campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign details + /// + /// /// RestApiResultRetentionCampaign RestApiResultRetentionCampaign CreateRetentionCampaign (string appId, RetentionCampaignBase campaign); /// - /// Creates retention campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign details + /// + /// /// ApiResponse of RestApiResultRetentionCampaign ApiResponse CreateRetentionCampaignWithHttpInfo (string appId, RetentionCampaignBase campaign); /// - /// Gets loyalty campaigns for app + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// RestApiArrayResultLoyaltyCampaign RestApiArrayResultLoyaltyCampaign GetLoyaltyCampaignsForApp (string appId); /// - /// Gets loyalty campaigns for app + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// ApiResponse of RestApiArrayResultLoyaltyCampaign ApiResponse GetLoyaltyCampaignsForAppWithHttpInfo (string appId); /// - /// Gets loyalty campaigns for store + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// RestApiArrayResultLoyaltyCampaign RestApiArrayResultLoyaltyCampaign GetLoyaltyCampaignsForStore (string appId, int? storeId); /// - /// Gets loyalty campaigns for store + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// ApiResponse of RestApiArrayResultLoyaltyCampaign ApiResponse GetLoyaltyCampaignsForStoreWithHttpInfo (string appId, int? storeId); /// - /// Gets retention campaigns for app + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// RestApiArrayResultRetentionCampaign RestApiArrayResultRetentionCampaign GetRetentionCampaignsForApp (string appId); /// - /// Gets retention campaigns for app + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// ApiResponse of RestApiArrayResultRetentionCampaign ApiResponse GetRetentionCampaignsForAppWithHttpInfo (string appId); /// - /// Gets retention campaigns for store + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// RestApiArrayResultRetentionCampaign RestApiArrayResultRetentionCampaign GetRetentionCampaignsForStore (string appId, int? storeId); /// - /// Gets retention campaigns for store + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// ApiResponse of RestApiArrayResultRetentionCampaign ApiResponse GetRetentionCampaignsForStoreWithHttpInfo (string appId, int? storeId); /// - /// Gets list of stores for app + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// (optional) /// RestApiArrayResultStoreListItem RestApiArrayResultStoreListItem GetStoreList (string appId, bool? onlyPublished = null); /// - /// Gets list of stores for app + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// (optional) /// ApiResponse of RestApiArrayResultStoreListItem ApiResponse GetStoreListWithHttpInfo (string appId, bool? onlyPublished = null); /// - /// Deletes a campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Campaign Id + /// + /// /// void RemoveCampaign (string appId, int? campaignId); /// - /// Deletes a campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Campaign Id + /// + /// /// ApiResponse of Object(void) ApiResponse RemoveCampaignWithHttpInfo (string appId, int? campaignId); /// - /// Updates loyalty campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign Id - /// Loyalty campaign details + /// + /// + /// /// RestApiResultLoyaltyCampaign RestApiResultLoyaltyCampaign UpdateLoyaltyCampaign (string appId, int? campaignId, LoyaltyCampaignBase campaign); /// - /// Updates loyalty campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign Id - /// Loyalty campaign details + /// + /// + /// /// ApiResponse of RestApiResultLoyaltyCampaign ApiResponse UpdateLoyaltyCampaignWithHttpInfo (string appId, int? campaignId, LoyaltyCampaignBase campaign); /// - /// Updates retention campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign Id - /// Retention campaign details + /// + /// + /// /// RestApiResultRetentionCampaign RestApiResultRetentionCampaign UpdateRetentionCampaign (string appId, int? campaignId, RetentionCampaignBase campaign); /// - /// Updates retention campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign Id - /// Retention campaign details + /// + /// + /// /// ApiResponse of RestApiResultRetentionCampaign ApiResponse UpdateRetentionCampaignWithHttpInfo (string appId, int? campaignId, RetentionCampaignBase campaign); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Creates loyalty campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign details + /// + /// /// Task of RestApiResultLoyaltyCampaign System.Threading.Tasks.Task CreateLoyaltyCampaignAsync (string appId, LoyaltyCampaignBase campaign); /// - /// Creates loyalty campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign details + /// + /// /// Task of ApiResponse (RestApiResultLoyaltyCampaign) System.Threading.Tasks.Task> CreateLoyaltyCampaignAsyncWithHttpInfo (string appId, LoyaltyCampaignBase campaign); /// - /// Creates retention campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign details + /// + /// /// Task of RestApiResultRetentionCampaign System.Threading.Tasks.Task CreateRetentionCampaignAsync (string appId, RetentionCampaignBase campaign); /// - /// Creates retention campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign details + /// + /// /// Task of ApiResponse (RestApiResultRetentionCampaign) System.Threading.Tasks.Task> CreateRetentionCampaignAsyncWithHttpInfo (string appId, RetentionCampaignBase campaign); /// - /// Gets loyalty campaigns for app + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// Task of RestApiArrayResultLoyaltyCampaign System.Threading.Tasks.Task GetLoyaltyCampaignsForAppAsync (string appId); /// - /// Gets loyalty campaigns for app + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// Task of ApiResponse (RestApiArrayResultLoyaltyCampaign) System.Threading.Tasks.Task> GetLoyaltyCampaignsForAppAsyncWithHttpInfo (string appId); /// - /// Gets loyalty campaigns for store + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// Task of RestApiArrayResultLoyaltyCampaign System.Threading.Tasks.Task GetLoyaltyCampaignsForStoreAsync (string appId, int? storeId); /// - /// Gets loyalty campaigns for store + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// Task of ApiResponse (RestApiArrayResultLoyaltyCampaign) System.Threading.Tasks.Task> GetLoyaltyCampaignsForStoreAsyncWithHttpInfo (string appId, int? storeId); /// - /// Gets retention campaigns for app + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// Task of RestApiArrayResultRetentionCampaign System.Threading.Tasks.Task GetRetentionCampaignsForAppAsync (string appId); /// - /// Gets retention campaigns for app + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// Task of ApiResponse (RestApiArrayResultRetentionCampaign) System.Threading.Tasks.Task> GetRetentionCampaignsForAppAsyncWithHttpInfo (string appId); /// - /// Gets retention campaigns for store + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// Task of RestApiArrayResultRetentionCampaign System.Threading.Tasks.Task GetRetentionCampaignsForStoreAsync (string appId, int? storeId); /// - /// Gets retention campaigns for store + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// Task of ApiResponse (RestApiArrayResultRetentionCampaign) System.Threading.Tasks.Task> GetRetentionCampaignsForStoreAsyncWithHttpInfo (string appId, int? storeId); /// - /// Gets list of stores for app + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// (optional) /// Task of RestApiArrayResultStoreListItem System.Threading.Tasks.Task GetStoreListAsync (string appId, bool? onlyPublished = null); /// - /// Gets list of stores for app + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// (optional) /// Task of ApiResponse (RestApiArrayResultStoreListItem) System.Threading.Tasks.Task> GetStoreListAsyncWithHttpInfo (string appId, bool? onlyPublished = null); /// - /// Deletes a campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Campaign Id + /// + /// /// Task of void System.Threading.Tasks.Task RemoveCampaignAsync (string appId, int? campaignId); /// - /// Deletes a campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Campaign Id + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> RemoveCampaignAsyncWithHttpInfo (string appId, int? campaignId); /// - /// Updates loyalty campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign Id - /// Loyalty campaign details + /// + /// + /// /// Task of RestApiResultLoyaltyCampaign System.Threading.Tasks.Task UpdateLoyaltyCampaignAsync (string appId, int? campaignId, LoyaltyCampaignBase campaign); /// - /// Updates loyalty campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign Id - /// Loyalty campaign details + /// + /// + /// /// Task of ApiResponse (RestApiResultLoyaltyCampaign) System.Threading.Tasks.Task> UpdateLoyaltyCampaignAsyncWithHttpInfo (string appId, int? campaignId, LoyaltyCampaignBase campaign); /// - /// Updates retention campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign Id - /// Retention campaign details + /// + /// + /// /// Task of RestApiResultRetentionCampaign System.Threading.Tasks.Task UpdateRetentionCampaignAsync (string appId, int? campaignId, RetentionCampaignBase campaign); /// - /// Updates retention campaign + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign Id - /// Retention campaign details + /// + /// + /// /// Task of ApiResponse (RestApiResultRetentionCampaign) System.Threading.Tasks.Task> UpdateRetentionCampaignAsyncWithHttpInfo (string appId, int? campaignId, RetentionCampaignBase campaign); #endregion Asynchronous Operations @@ -587,11 +587,11 @@ public void AddDefaultHeader(string key, string value) } /// - /// Creates loyalty campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign details + /// + /// /// RestApiResultLoyaltyCampaign public RestApiResultLoyaltyCampaign CreateLoyaltyCampaign (string appId, LoyaltyCampaignBase campaign) { @@ -600,11 +600,11 @@ public RestApiResultLoyaltyCampaign CreateLoyaltyCampaign (string appId, Loyalty } /// - /// Creates loyalty campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign details + /// + /// /// ApiResponse of RestApiResultLoyaltyCampaign public ApiResponse< RestApiResultLoyaltyCampaign > CreateLoyaltyCampaignWithHttpInfo (string appId, LoyaltyCampaignBase campaign) { @@ -680,11 +680,11 @@ public ApiResponse< RestApiResultLoyaltyCampaign > CreateLoyaltyCampaignWithHttp } /// - /// Creates loyalty campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign details + /// + /// /// Task of RestApiResultLoyaltyCampaign public async System.Threading.Tasks.Task CreateLoyaltyCampaignAsync (string appId, LoyaltyCampaignBase campaign) { @@ -694,11 +694,11 @@ public async System.Threading.Tasks.Task CreateLoy } /// - /// Creates loyalty campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign details + /// + /// /// Task of ApiResponse (RestApiResultLoyaltyCampaign) public async System.Threading.Tasks.Task> CreateLoyaltyCampaignAsyncWithHttpInfo (string appId, LoyaltyCampaignBase campaign) { @@ -774,11 +774,11 @@ public async System.Threading.Tasks.Task - /// Creates retention campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign details + /// + /// /// RestApiResultRetentionCampaign public RestApiResultRetentionCampaign CreateRetentionCampaign (string appId, RetentionCampaignBase campaign) { @@ -787,11 +787,11 @@ public RestApiResultRetentionCampaign CreateRetentionCampaign (string appId, Ret } /// - /// Creates retention campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign details + /// + /// /// ApiResponse of RestApiResultRetentionCampaign public ApiResponse< RestApiResultRetentionCampaign > CreateRetentionCampaignWithHttpInfo (string appId, RetentionCampaignBase campaign) { @@ -867,11 +867,11 @@ public ApiResponse< RestApiResultRetentionCampaign > CreateRetentionCampaignWith } /// - /// Creates retention campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign details + /// + /// /// Task of RestApiResultRetentionCampaign public async System.Threading.Tasks.Task CreateRetentionCampaignAsync (string appId, RetentionCampaignBase campaign) { @@ -881,11 +881,11 @@ public async System.Threading.Tasks.Task CreateR } /// - /// Creates retention campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign details + /// + /// /// Task of ApiResponse (RestApiResultRetentionCampaign) public async System.Threading.Tasks.Task> CreateRetentionCampaignAsyncWithHttpInfo (string appId, RetentionCampaignBase campaign) { @@ -961,10 +961,10 @@ public async System.Threading.Tasks.Task - /// Gets loyalty campaigns for app + /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// RestApiArrayResultLoyaltyCampaign public RestApiArrayResultLoyaltyCampaign GetLoyaltyCampaignsForApp (string appId) { @@ -973,10 +973,10 @@ public RestApiArrayResultLoyaltyCampaign GetLoyaltyCampaignsForApp (string appId } /// - /// Gets loyalty campaigns for app + /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// ApiResponse of RestApiArrayResultLoyaltyCampaign public ApiResponse< RestApiArrayResultLoyaltyCampaign > GetLoyaltyCampaignsForAppWithHttpInfo (string appId) { @@ -1036,10 +1036,10 @@ public ApiResponse< RestApiArrayResultLoyaltyCampaign > GetLoyaltyCampaignsForAp } /// - /// Gets loyalty campaigns for app + /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// Task of RestApiArrayResultLoyaltyCampaign public async System.Threading.Tasks.Task GetLoyaltyCampaignsForAppAsync (string appId) { @@ -1049,10 +1049,10 @@ public async System.Threading.Tasks.Task GetL } /// - /// Gets loyalty campaigns for app + /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// Task of ApiResponse (RestApiArrayResultLoyaltyCampaign) public async System.Threading.Tasks.Task> GetLoyaltyCampaignsForAppAsyncWithHttpInfo (string appId) { @@ -1112,11 +1112,11 @@ public async System.Threading.Tasks.Task - /// Gets loyalty campaigns for store + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// RestApiArrayResultLoyaltyCampaign public RestApiArrayResultLoyaltyCampaign GetLoyaltyCampaignsForStore (string appId, int? storeId) { @@ -1125,11 +1125,11 @@ public RestApiArrayResultLoyaltyCampaign GetLoyaltyCampaignsForStore (string app } /// - /// Gets loyalty campaigns for store + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// ApiResponse of RestApiArrayResultLoyaltyCampaign public ApiResponse< RestApiArrayResultLoyaltyCampaign > GetLoyaltyCampaignsForStoreWithHttpInfo (string appId, int? storeId) { @@ -1193,11 +1193,11 @@ public ApiResponse< RestApiArrayResultLoyaltyCampaign > GetLoyaltyCampaignsForSt } /// - /// Gets loyalty campaigns for store + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// Task of RestApiArrayResultLoyaltyCampaign public async System.Threading.Tasks.Task GetLoyaltyCampaignsForStoreAsync (string appId, int? storeId) { @@ -1207,11 +1207,11 @@ public async System.Threading.Tasks.Task GetL } /// - /// Gets loyalty campaigns for store + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// Task of ApiResponse (RestApiArrayResultLoyaltyCampaign) public async System.Threading.Tasks.Task> GetLoyaltyCampaignsForStoreAsyncWithHttpInfo (string appId, int? storeId) { @@ -1275,10 +1275,10 @@ public async System.Threading.Tasks.Task - /// Gets retention campaigns for app + /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// RestApiArrayResultRetentionCampaign public RestApiArrayResultRetentionCampaign GetRetentionCampaignsForApp (string appId) { @@ -1287,10 +1287,10 @@ public RestApiArrayResultRetentionCampaign GetRetentionCampaignsForApp (string a } /// - /// Gets retention campaigns for app + /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// ApiResponse of RestApiArrayResultRetentionCampaign public ApiResponse< RestApiArrayResultRetentionCampaign > GetRetentionCampaignsForAppWithHttpInfo (string appId) { @@ -1350,10 +1350,10 @@ public ApiResponse< RestApiArrayResultRetentionCampaign > GetRetentionCampaignsF } /// - /// Gets retention campaigns for app + /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// Task of RestApiArrayResultRetentionCampaign public async System.Threading.Tasks.Task GetRetentionCampaignsForAppAsync (string appId) { @@ -1363,10 +1363,10 @@ public async System.Threading.Tasks.Task Ge } /// - /// Gets retention campaigns for app + /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// Task of ApiResponse (RestApiArrayResultRetentionCampaign) public async System.Threading.Tasks.Task> GetRetentionCampaignsForAppAsyncWithHttpInfo (string appId) { @@ -1426,11 +1426,11 @@ public async System.Threading.Tasks.Task - /// Gets retention campaigns for store + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// RestApiArrayResultRetentionCampaign public RestApiArrayResultRetentionCampaign GetRetentionCampaignsForStore (string appId, int? storeId) { @@ -1439,11 +1439,11 @@ public RestApiArrayResultRetentionCampaign GetRetentionCampaignsForStore (string } /// - /// Gets retention campaigns for store + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// ApiResponse of RestApiArrayResultRetentionCampaign public ApiResponse< RestApiArrayResultRetentionCampaign > GetRetentionCampaignsForStoreWithHttpInfo (string appId, int? storeId) { @@ -1507,11 +1507,11 @@ public ApiResponse< RestApiArrayResultRetentionCampaign > GetRetentionCampaignsF } /// - /// Gets retention campaigns for store + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// Task of RestApiArrayResultRetentionCampaign public async System.Threading.Tasks.Task GetRetentionCampaignsForStoreAsync (string appId, int? storeId) { @@ -1521,11 +1521,11 @@ public async System.Threading.Tasks.Task Ge } /// - /// Gets retention campaigns for store + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id + /// + /// /// Task of ApiResponse (RestApiArrayResultRetentionCampaign) public async System.Threading.Tasks.Task> GetRetentionCampaignsForStoreAsyncWithHttpInfo (string appId, int? storeId) { @@ -1589,10 +1589,10 @@ public async System.Threading.Tasks.Task - /// Gets list of stores for app + /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// (optional) /// RestApiArrayResultStoreListItem public RestApiArrayResultStoreListItem GetStoreList (string appId, bool? onlyPublished = null) @@ -1602,10 +1602,10 @@ public RestApiArrayResultStoreListItem GetStoreList (string appId, bool? onlyPub } /// - /// Gets list of stores for app + /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// (optional) /// ApiResponse of RestApiArrayResultStoreListItem public ApiResponse< RestApiArrayResultStoreListItem > GetStoreListWithHttpInfo (string appId, bool? onlyPublished = null) @@ -1667,10 +1667,10 @@ public ApiResponse< RestApiArrayResultStoreListItem > GetStoreListWithHttpInfo ( } /// - /// Gets list of stores for app + /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// (optional) /// Task of RestApiArrayResultStoreListItem public async System.Threading.Tasks.Task GetStoreListAsync (string appId, bool? onlyPublished = null) @@ -1681,10 +1681,10 @@ public async System.Threading.Tasks.Task GetSto } /// - /// Gets list of stores for app + /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// (optional) /// Task of ApiResponse (RestApiArrayResultStoreListItem) public async System.Threading.Tasks.Task> GetStoreListAsyncWithHttpInfo (string appId, bool? onlyPublished = null) @@ -1746,11 +1746,11 @@ public async System.Threading.Tasks.Task - /// Deletes a campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Campaign Id + /// + /// /// public void RemoveCampaign (string appId, int? campaignId) { @@ -1758,11 +1758,11 @@ public void RemoveCampaign (string appId, int? campaignId) } /// - /// Deletes a campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Campaign Id + /// + /// /// ApiResponse of Object(void) public ApiResponse RemoveCampaignWithHttpInfo (string appId, int? campaignId) { @@ -1826,11 +1826,11 @@ public ApiResponse RemoveCampaignWithHttpInfo (string appId, int? campai } /// - /// Deletes a campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Campaign Id + /// + /// /// Task of void public async System.Threading.Tasks.Task RemoveCampaignAsync (string appId, int? campaignId) { @@ -1839,11 +1839,11 @@ public async System.Threading.Tasks.Task RemoveCampaignAsync (string appId, int? } /// - /// Deletes a campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Campaign Id + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> RemoveCampaignAsyncWithHttpInfo (string appId, int? campaignId) { @@ -1907,12 +1907,12 @@ public async System.Threading.Tasks.Task> RemoveCampaignAsyn } /// - /// Updates loyalty campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign Id - /// Loyalty campaign details + /// + /// + /// /// RestApiResultLoyaltyCampaign public RestApiResultLoyaltyCampaign UpdateLoyaltyCampaign (string appId, int? campaignId, LoyaltyCampaignBase campaign) { @@ -1921,12 +1921,12 @@ public RestApiResultLoyaltyCampaign UpdateLoyaltyCampaign (string appId, int? ca } /// - /// Updates loyalty campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign Id - /// Loyalty campaign details + /// + /// + /// /// ApiResponse of RestApiResultLoyaltyCampaign public ApiResponse< RestApiResultLoyaltyCampaign > UpdateLoyaltyCampaignWithHttpInfo (string appId, int? campaignId, LoyaltyCampaignBase campaign) { @@ -2006,12 +2006,12 @@ public ApiResponse< RestApiResultLoyaltyCampaign > UpdateLoyaltyCampaignWithHttp } /// - /// Updates loyalty campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign Id - /// Loyalty campaign details + /// + /// + /// /// Task of RestApiResultLoyaltyCampaign public async System.Threading.Tasks.Task UpdateLoyaltyCampaignAsync (string appId, int? campaignId, LoyaltyCampaignBase campaign) { @@ -2021,12 +2021,12 @@ public async System.Threading.Tasks.Task UpdateLoy } /// - /// Updates loyalty campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Loyalty campaign Id - /// Loyalty campaign details + /// + /// + /// /// Task of ApiResponse (RestApiResultLoyaltyCampaign) public async System.Threading.Tasks.Task> UpdateLoyaltyCampaignAsyncWithHttpInfo (string appId, int? campaignId, LoyaltyCampaignBase campaign) { @@ -2106,12 +2106,12 @@ public async System.Threading.Tasks.Task - /// Updates retention campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign Id - /// Retention campaign details + /// + /// + /// /// RestApiResultRetentionCampaign public RestApiResultRetentionCampaign UpdateRetentionCampaign (string appId, int? campaignId, RetentionCampaignBase campaign) { @@ -2120,12 +2120,12 @@ public RestApiResultRetentionCampaign UpdateRetentionCampaign (string appId, int } /// - /// Updates retention campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign Id - /// Retention campaign details + /// + /// + /// /// ApiResponse of RestApiResultRetentionCampaign public ApiResponse< RestApiResultRetentionCampaign > UpdateRetentionCampaignWithHttpInfo (string appId, int? campaignId, RetentionCampaignBase campaign) { @@ -2205,12 +2205,12 @@ public ApiResponse< RestApiResultRetentionCampaign > UpdateRetentionCampaignWith } /// - /// Updates retention campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign Id - /// Retention campaign details + /// + /// + /// /// Task of RestApiResultRetentionCampaign public async System.Threading.Tasks.Task UpdateRetentionCampaignAsync (string appId, int? campaignId, RetentionCampaignBase campaign) { @@ -2220,12 +2220,12 @@ public async System.Threading.Tasks.Task UpdateR } /// - /// Updates retention campaign + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Retention campaign Id - /// Retention campaign details + /// + /// + /// /// Task of ApiResponse (RestApiResultRetentionCampaign) public async System.Threading.Tasks.Task> UpdateRetentionCampaignAsyncWithHttpInfo (string appId, int? campaignId, RetentionCampaignBase campaign) { diff --git a/src/Flipdish/Api/CardReadersApi.cs b/src/Flipdish/Api/CardReadersApi.cs index f162a835..14346b3c 100644 --- a/src/Flipdish/Api/CardReadersApi.cs +++ b/src/Flipdish/Api/CardReadersApi.cs @@ -25,31 +25,10 @@ public interface ICardReadersApi : IApiAccessor { #region Synchronous Operations /// - /// Get Authorization Key for Stripe Terminal - /// - /// - /// Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] - /// - /// Thrown when fails to make API call - /// - /// RestApiResultStripeTerminalPrivateKey - RestApiResultStripeTerminalPrivateKey AuthorizeStripeTerminal (string appId); - - /// - /// Get Authorization Key for Stripe Terminal - /// - /// - /// Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of RestApiResultStripeTerminalPrivateKey - ApiResponse AuthorizeStripeTerminalWithHttpInfo (string appId); - /// - /// Cancel currently initiated install update for bluetooth terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -59,10 +38,10 @@ public interface ICardReadersApi : IApiAccessor void CancelCurrentlyInitiatedBluetoothDeviceUpdate (string appId, string deviceId, string terminalType); /// - /// Cancel currently initiated install update for bluetooth terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -71,10 +50,10 @@ public interface ICardReadersApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse CancelCurrentlyInitiatedBluetoothDeviceUpdateWithHttpInfo (string appId, string deviceId, string terminalType); /// - /// Cancel terminals action + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -83,10 +62,10 @@ public interface ICardReadersApi : IApiAccessor RestApiResultCardReader CancelReaderAction (string readerId, string appId); /// - /// Cancel terminals action + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -94,10 +73,10 @@ public interface ICardReadersApi : IApiAccessor /// ApiResponse of RestApiResultCardReader ApiResponse CancelReaderActionWithHttpInfo (string readerId, string appId); /// - /// Get reader + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -106,10 +85,10 @@ public interface ICardReadersApi : IApiAccessor RestApiResultCardReader CardReadersGetReader (string readerId, string appId); /// - /// Get reader + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -117,10 +96,10 @@ public interface ICardReadersApi : IApiAccessor /// ApiResponse of RestApiResultCardReader ApiResponse CardReadersGetReaderWithHttpInfo (string readerId, string appId); /// - /// Get Location ID for Stripe Terminal + /// /// /// - /// Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -129,10 +108,10 @@ public interface ICardReadersApi : IApiAccessor RestApiResultStripeTerminalLocation GenerateStripeTerminalLocation (GeoPointRequest geoPointRequest, string appId); /// - /// Get Location ID for Stripe Terminal + /// /// /// - /// Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -140,10 +119,10 @@ public interface ICardReadersApi : IApiAccessor /// ApiResponse of RestApiResultStripeTerminalLocation ApiResponse GenerateStripeTerminalLocationWithHttpInfo (GeoPointRequest geoPointRequest, string appId); /// - /// Get the status of the bluetooth terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -152,10 +131,10 @@ public interface ICardReadersApi : IApiAccessor RestApiResultBluetoothTerminalStatus GetBluetoothTerminalStatus (string appId, string deviceId); /// - /// Get the status of the bluetooth terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -163,10 +142,33 @@ public interface ICardReadersApi : IApiAccessor /// ApiResponse of RestApiResultBluetoothTerminalStatus ApiResponse GetBluetoothTerminalStatusWithHttpInfo (string appId, string deviceId); /// - /// Get Connection Token For a Stripe Terminal + /// + /// + /// + /// + /// + /// 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); + /// + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -174,20 +176,20 @@ public interface ICardReadersApi : IApiAccessor RestApiResultStripeTerminalConnectionToken GetStripeConnectionToken (string appId); /// - /// Get Connection Token For a Stripe Terminal + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// /// ApiResponse of RestApiResultStripeTerminalConnectionToken ApiResponse GetStripeConnectionTokenWithHttpInfo (string appId); /// - /// Trigger check for Bluetooth device update on Kiosk + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -197,10 +199,10 @@ public interface ICardReadersApi : IApiAccessor void InitiateBluetoothTerminalDeviceUpdateCheck (string appId, string deviceId, string terminalType); /// - /// Trigger check for Bluetooth device update on Kiosk + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -209,10 +211,10 @@ public interface ICardReadersApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse InitiateBluetoothTerminalDeviceUpdateCheckWithHttpInfo (string appId, string deviceId, string terminalType); /// - /// Initiate stripe terminal pairing mode + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -222,10 +224,10 @@ public interface ICardReadersApi : IApiAccessor void InitiateKioskBluetoothPairingMode (string appId, string deviceId, string terminalType); /// - /// Initiate stripe terminal pairing mode + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -234,10 +236,10 @@ public interface ICardReadersApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse InitiateKioskBluetoothPairingModeWithHttpInfo (string appId, string deviceId, string terminalType); /// - /// Initiate Kiosk Update Install for bluetooth terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -247,10 +249,10 @@ public interface ICardReadersApi : IApiAccessor void InitiateKioskBluetoothUpdateInstall (string appId, string deviceId, string terminalType); /// - /// Initiate Kiosk Update Install for bluetooth terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -259,10 +261,10 @@ public interface ICardReadersApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse InitiateKioskBluetoothUpdateInstallWithHttpInfo (string appId, string deviceId, string terminalType); /// - /// Initiate Stripe terminal to Process Payment Intent + /// /// /// - /// Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -272,10 +274,10 @@ public interface ICardReadersApi : IApiAccessor RestApiResultCardReader InitiateReaderProcessPaymentIntent (ProcessPaymentIntentRequest request, string readerId, string appId); /// - /// Initiate Stripe terminal to Process Payment Intent + /// /// /// - /// Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -307,10 +309,10 @@ public interface ICardReadersApi : IApiAccessor /// ApiResponse of RestApiResultCardReader ApiResponse RegisterStripeTerminalWithHttpInfo (CardReaderRegistrationRequest request, string appId); /// - /// Un-register terminal by deleting it from stripe + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -319,10 +321,10 @@ public interface ICardReadersApi : IApiAccessor RestApiResultCardReader UnRegisterTerminal (UnRegisterCardReaderRequest request, string appId); /// - /// Un-register terminal by deleting it from stripe + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -330,10 +332,10 @@ public interface ICardReadersApi : IApiAccessor /// ApiResponse of RestApiResultCardReader ApiResponse UnRegisterTerminalWithHttpInfo (UnRegisterCardReaderRequest request, string appId); /// - /// Unpair the currently paired stripe terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -342,10 +344,10 @@ public interface ICardReadersApi : IApiAccessor void UnpairCurrentlyPairedBluetoothDevice (string appId, string deviceId); /// - /// Unpair the currently paired stripe terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -355,31 +357,10 @@ public interface ICardReadersApi : IApiAccessor #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get Authorization Key for Stripe Terminal - /// - /// - /// Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] - /// - /// Thrown when fails to make API call - /// - /// Task of RestApiResultStripeTerminalPrivateKey - System.Threading.Tasks.Task AuthorizeStripeTerminalAsync (string appId); - - /// - /// Get Authorization Key for Stripe Terminal - /// - /// - /// Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (RestApiResultStripeTerminalPrivateKey) - System.Threading.Tasks.Task> AuthorizeStripeTerminalAsyncWithHttpInfo (string appId); - /// - /// Cancel currently initiated install update for bluetooth terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -389,10 +370,10 @@ public interface ICardReadersApi : IApiAccessor System.Threading.Tasks.Task CancelCurrentlyInitiatedBluetoothDeviceUpdateAsync (string appId, string deviceId, string terminalType); /// - /// Cancel currently initiated install update for bluetooth terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -401,10 +382,10 @@ public interface ICardReadersApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> CancelCurrentlyInitiatedBluetoothDeviceUpdateAsyncWithHttpInfo (string appId, string deviceId, string terminalType); /// - /// Cancel terminals action + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -413,10 +394,10 @@ public interface ICardReadersApi : IApiAccessor System.Threading.Tasks.Task CancelReaderActionAsync (string readerId, string appId); /// - /// Cancel terminals action + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -424,10 +405,10 @@ public interface ICardReadersApi : IApiAccessor /// Task of ApiResponse (RestApiResultCardReader) System.Threading.Tasks.Task> CancelReaderActionAsyncWithHttpInfo (string readerId, string appId); /// - /// Get reader + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -436,10 +417,10 @@ public interface ICardReadersApi : IApiAccessor System.Threading.Tasks.Task CardReadersGetReaderAsync (string readerId, string appId); /// - /// Get reader + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -447,10 +428,10 @@ public interface ICardReadersApi : IApiAccessor /// Task of ApiResponse (RestApiResultCardReader) System.Threading.Tasks.Task> CardReadersGetReaderAsyncWithHttpInfo (string readerId, string appId); /// - /// Get Location ID for Stripe Terminal + /// /// /// - /// Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -459,10 +440,10 @@ public interface ICardReadersApi : IApiAccessor System.Threading.Tasks.Task GenerateStripeTerminalLocationAsync (GeoPointRequest geoPointRequest, string appId); /// - /// Get Location ID for Stripe Terminal + /// /// /// - /// Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -470,10 +451,10 @@ public interface ICardReadersApi : IApiAccessor /// Task of ApiResponse (RestApiResultStripeTerminalLocation) System.Threading.Tasks.Task> GenerateStripeTerminalLocationAsyncWithHttpInfo (GeoPointRequest geoPointRequest, string appId); /// - /// Get the status of the bluetooth terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -482,10 +463,10 @@ public interface ICardReadersApi : IApiAccessor System.Threading.Tasks.Task GetBluetoothTerminalStatusAsync (string appId, string deviceId); /// - /// Get the status of the bluetooth terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -493,10 +474,33 @@ public interface ICardReadersApi : IApiAccessor /// Task of ApiResponse (RestApiResultBluetoothTerminalStatus) System.Threading.Tasks.Task> GetBluetoothTerminalStatusAsyncWithHttpInfo (string appId, string deviceId); /// - /// Get Connection Token For a Stripe Terminal + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// Task of RestApiResultKioskStripeLocation + System.Threading.Tasks.Task GetKioskStripeLocationAsync (string appId, string deviceId); + + /// + /// /// /// - /// Can only be called by Kiosk + /// + /// + /// 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 /// @@ -504,20 +508,20 @@ public interface ICardReadersApi : IApiAccessor System.Threading.Tasks.Task GetStripeConnectionTokenAsync (string appId); /// - /// Get Connection Token For a Stripe Terminal + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (RestApiResultStripeTerminalConnectionToken) System.Threading.Tasks.Task> GetStripeConnectionTokenAsyncWithHttpInfo (string appId); /// - /// Trigger check for Bluetooth device update on Kiosk + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -527,10 +531,10 @@ public interface ICardReadersApi : IApiAccessor System.Threading.Tasks.Task InitiateBluetoothTerminalDeviceUpdateCheckAsync (string appId, string deviceId, string terminalType); /// - /// Trigger check for Bluetooth device update on Kiosk + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -539,10 +543,10 @@ public interface ICardReadersApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> InitiateBluetoothTerminalDeviceUpdateCheckAsyncWithHttpInfo (string appId, string deviceId, string terminalType); /// - /// Initiate stripe terminal pairing mode + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -552,10 +556,10 @@ public interface ICardReadersApi : IApiAccessor System.Threading.Tasks.Task InitiateKioskBluetoothPairingModeAsync (string appId, string deviceId, string terminalType); /// - /// Initiate stripe terminal pairing mode + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -564,10 +568,10 @@ public interface ICardReadersApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> InitiateKioskBluetoothPairingModeAsyncWithHttpInfo (string appId, string deviceId, string terminalType); /// - /// Initiate Kiosk Update Install for bluetooth terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -577,10 +581,10 @@ public interface ICardReadersApi : IApiAccessor System.Threading.Tasks.Task InitiateKioskBluetoothUpdateInstallAsync (string appId, string deviceId, string terminalType); /// - /// Initiate Kiosk Update Install for bluetooth terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -589,10 +593,10 @@ public interface ICardReadersApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> InitiateKioskBluetoothUpdateInstallAsyncWithHttpInfo (string appId, string deviceId, string terminalType); /// - /// Initiate Stripe terminal to Process Payment Intent + /// /// /// - /// Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -602,10 +606,10 @@ public interface ICardReadersApi : IApiAccessor System.Threading.Tasks.Task InitiateReaderProcessPaymentIntentAsync (ProcessPaymentIntentRequest request, string readerId, string appId); /// - /// Initiate Stripe terminal to Process Payment Intent + /// /// /// - /// Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -637,10 +641,10 @@ public interface ICardReadersApi : IApiAccessor /// Task of ApiResponse (RestApiResultCardReader) System.Threading.Tasks.Task> RegisterStripeTerminalAsyncWithHttpInfo (CardReaderRegistrationRequest request, string appId); /// - /// Un-register terminal by deleting it from stripe + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -649,10 +653,10 @@ public interface ICardReadersApi : IApiAccessor System.Threading.Tasks.Task UnRegisterTerminalAsync (UnRegisterCardReaderRequest request, string appId); /// - /// Un-register terminal by deleting it from stripe + /// /// /// - /// Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -660,10 +664,10 @@ public interface ICardReadersApi : IApiAccessor /// Task of ApiResponse (RestApiResultCardReader) System.Threading.Tasks.Task> UnRegisterTerminalAsyncWithHttpInfo (UnRegisterCardReaderRequest request, string appId); /// - /// Unpair the currently paired stripe terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -672,10 +676,10 @@ public interface ICardReadersApi : IApiAccessor System.Threading.Tasks.Task UnpairCurrentlyPairedBluetoothDeviceAsync (string appId, string deviceId); /// - /// Unpair the currently paired stripe terminal + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -783,158 +787,7 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get Authorization Key for Stripe Terminal Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] - /// - /// Thrown when fails to make API call - /// - /// RestApiResultStripeTerminalPrivateKey - public RestApiResultStripeTerminalPrivateKey AuthorizeStripeTerminal (string appId) - { - ApiResponse localVarResponse = AuthorizeStripeTerminalWithHttpInfo(appId); - return localVarResponse.Data; - } - - /// - /// Get Authorization Key for Stripe Terminal Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] - /// - /// Thrown when fails to make API call - /// - /// ApiResponse of RestApiResultStripeTerminalPrivateKey - public ApiResponse< RestApiResultStripeTerminalPrivateKey > AuthorizeStripeTerminalWithHttpInfo (string appId) - { - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->AuthorizeStripeTerminal"); - - var localVarPath = "./api/v1.0/{appId}/stripeterminal/authorize"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.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.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthorizeStripeTerminal", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultStripeTerminalPrivateKey) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStripeTerminalPrivateKey))); - } - - /// - /// Get Authorization Key for Stripe Terminal Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] - /// - /// Thrown when fails to make API call - /// - /// Task of RestApiResultStripeTerminalPrivateKey - public async System.Threading.Tasks.Task AuthorizeStripeTerminalAsync (string appId) - { - ApiResponse localVarResponse = await AuthorizeStripeTerminalAsyncWithHttpInfo(appId); - return localVarResponse.Data; - - } - - /// - /// Get Authorization Key for Stripe Terminal Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] - /// - /// Thrown when fails to make API call - /// - /// Task of ApiResponse (RestApiResultStripeTerminalPrivateKey) - public async System.Threading.Tasks.Task> AuthorizeStripeTerminalAsyncWithHttpInfo (string appId) - { - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling CardReadersApi->AuthorizeStripeTerminal"); - - var localVarPath = "./api/v1.0/{appId}/stripeterminal/authorize"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.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.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("AuthorizeStripeTerminal", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultStripeTerminalPrivateKey) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStripeTerminalPrivateKey))); - } - - /// - /// Cancel currently initiated install update for bluetooth terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -947,7 +800,7 @@ public void CancelCurrentlyInitiatedBluetoothDeviceUpdate (string appId, string } /// - /// Cancel currently initiated install update for bluetooth terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1020,7 +873,7 @@ public ApiResponse CancelCurrentlyInitiatedBluetoothDeviceUpdateWithHttp } /// - /// Cancel currently initiated install update for bluetooth terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1034,7 +887,7 @@ public async System.Threading.Tasks.Task CancelCurrentlyInitiatedBluetoothDevice } /// - /// Cancel currently initiated install update for bluetooth terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1107,7 +960,7 @@ public async System.Threading.Tasks.Task> CancelCurrentlyIni } /// - /// Cancel terminals action Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -1120,7 +973,7 @@ public RestApiResultCardReader CancelReaderAction (string readerId, string appId } /// - /// Cancel terminals action Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -1188,7 +1041,7 @@ public ApiResponse< RestApiResultCardReader > CancelReaderActionWithHttpInfo (st } /// - /// Cancel terminals action Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -1202,7 +1055,7 @@ public async System.Threading.Tasks.Task CancelReaderAc } /// - /// Cancel terminals action Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -1270,7 +1123,7 @@ public async System.Threading.Tasks.Task> C } /// - /// Get reader Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -1283,7 +1136,7 @@ public RestApiResultCardReader CardReadersGetReader (string readerId, string app } /// - /// Get reader Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -1351,7 +1204,7 @@ public ApiResponse< RestApiResultCardReader > CardReadersGetReaderWithHttpInfo ( } /// - /// Get reader Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -1365,7 +1218,7 @@ public async System.Threading.Tasks.Task CardReadersGet } /// - /// Get reader Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -1433,7 +1286,7 @@ public async System.Threading.Tasks.Task> C } /// - /// Get Location ID for Stripe Terminal Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1446,7 +1299,7 @@ public RestApiResultStripeTerminalLocation GenerateStripeTerminalLocation (GeoPo } /// - /// Get Location ID for Stripe Terminal Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1526,7 +1379,7 @@ public ApiResponse< RestApiResultStripeTerminalLocation > GenerateStripeTerminal } /// - /// Get Location ID for Stripe Terminal Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1540,7 +1393,7 @@ public async System.Threading.Tasks.Task Ge } /// - /// Get Location ID for Stripe Terminal Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1620,7 +1473,7 @@ public async System.Threading.Tasks.Task - /// Get the status of the bluetooth terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1633,7 +1486,7 @@ public RestApiResultBluetoothTerminalStatus GetBluetoothTerminalStatus (string a } /// - /// Get the status of the bluetooth terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1701,7 +1554,7 @@ public ApiResponse< RestApiResultBluetoothTerminalStatus > GetBluetoothTerminalS } /// - /// Get the status of the bluetooth terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1715,7 +1568,7 @@ public async System.Threading.Tasks.Task G } /// - /// Get the status of the bluetooth terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1783,7 +1636,170 @@ public async System.Threading.Tasks.Task - /// Get Connection Token For a Stripe Terminal Can only be called by Kiosk + /// + /// + /// 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 /// @@ -1795,7 +1811,7 @@ public RestApiResultStripeTerminalConnectionToken GetStripeConnectionToken (stri } /// - /// Get Connection Token For a Stripe Terminal Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -1858,7 +1874,7 @@ public ApiResponse< RestApiResultStripeTerminalConnectionToken > GetStripeConnec } /// - /// Get Connection Token For a Stripe Terminal Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -1871,7 +1887,7 @@ public async System.Threading.Tasks.Task - /// Get Connection Token For a Stripe Terminal Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -1934,7 +1950,7 @@ public async System.Threading.Tasks.Task - /// Trigger check for Bluetooth device update on Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1947,7 +1963,7 @@ public void InitiateBluetoothTerminalDeviceUpdateCheck (string appId, string dev } /// - /// Trigger check for Bluetooth device update on Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2020,7 +2036,7 @@ public ApiResponse InitiateBluetoothTerminalDeviceUpdateCheckWithHttpInf } /// - /// Trigger check for Bluetooth device update on Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2034,7 +2050,7 @@ public async System.Threading.Tasks.Task InitiateBluetoothTerminalDeviceUpdateCh } /// - /// Trigger check for Bluetooth device update on Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2107,7 +2123,7 @@ public async System.Threading.Tasks.Task> InitiateBluetoothT } /// - /// Initiate stripe terminal pairing mode [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2120,7 +2136,7 @@ public void InitiateKioskBluetoothPairingMode (string appId, string deviceId, st } /// - /// Initiate stripe terminal pairing mode [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2193,7 +2209,7 @@ public ApiResponse InitiateKioskBluetoothPairingModeWithHttpInfo (string } /// - /// Initiate stripe terminal pairing mode [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2207,7 +2223,7 @@ public async System.Threading.Tasks.Task InitiateKioskBluetoothPairingModeAsync } /// - /// Initiate stripe terminal pairing mode [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2280,7 +2296,7 @@ public async System.Threading.Tasks.Task> InitiateKioskBluet } /// - /// Initiate Kiosk Update Install for bluetooth terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2293,7 +2309,7 @@ public void InitiateKioskBluetoothUpdateInstall (string appId, string deviceId, } /// - /// Initiate Kiosk Update Install for bluetooth terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2366,7 +2382,7 @@ public ApiResponse InitiateKioskBluetoothUpdateInstallWithHttpInfo (stri } /// - /// Initiate Kiosk Update Install for bluetooth terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2380,7 +2396,7 @@ public async System.Threading.Tasks.Task InitiateKioskBluetoothUpdateInstallAsyn } /// - /// Initiate Kiosk Update Install for bluetooth terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2453,7 +2469,7 @@ public async System.Threading.Tasks.Task> InitiateKioskBluet } /// - /// Initiate Stripe terminal to Process Payment Intent Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2467,7 +2483,7 @@ public RestApiResultCardReader InitiateReaderProcessPaymentIntent (ProcessPaymen } /// - /// Initiate Stripe terminal to Process Payment Intent Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2552,7 +2568,7 @@ public ApiResponse< RestApiResultCardReader > InitiateReaderProcessPaymentIntent } /// - /// Initiate Stripe terminal to Process Payment Intent Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2567,7 +2583,7 @@ public async System.Threading.Tasks.Task InitiateReader } /// - /// Initiate Stripe terminal to Process Payment Intent Can only be called by Kiosk [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -2839,7 +2855,7 @@ public async System.Threading.Tasks.Task> R } /// - /// Un-register terminal by deleting it from stripe Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -2852,7 +2868,7 @@ public RestApiResultCardReader UnRegisterTerminal (UnRegisterCardReaderRequest r } /// - /// Un-register terminal by deleting it from stripe Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -2932,7 +2948,7 @@ public ApiResponse< RestApiResultCardReader > UnRegisterTerminalWithHttpInfo (Un } /// - /// Un-register terminal by deleting it from stripe Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -2946,7 +2962,7 @@ public async System.Threading.Tasks.Task UnRegisterTerm } /// - /// Un-register terminal by deleting it from stripe Can only be called by Kiosk + /// /// /// Thrown when fails to make API call /// @@ -3026,7 +3042,7 @@ public async System.Threading.Tasks.Task> U } /// - /// Unpair the currently paired stripe terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -3038,7 +3054,7 @@ public void UnpairCurrentlyPairedBluetoothDevice (string appId, string deviceId) } /// - /// Unpair the currently paired stripe terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -3106,7 +3122,7 @@ public ApiResponse UnpairCurrentlyPairedBluetoothDeviceWithHttpInfo (str } /// - /// Unpair the currently paired stripe terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -3119,7 +3135,7 @@ public async System.Threading.Tasks.Task UnpairCurrentlyPairedBluetoothDeviceAsy } /// - /// Unpair the currently paired stripe terminal [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// diff --git a/src/Flipdish/Api/ChannelsApi.cs b/src/Flipdish/Api/ChannelsApi.cs index 86a3dad7..0b907603 100644 --- a/src/Flipdish/Api/ChannelsApi.cs +++ b/src/Flipdish/Api/ChannelsApi.cs @@ -25,193 +25,193 @@ public interface IChannelsApi : IApiAccessor { #region Synchronous Operations /// - /// Assign a given AppId to a Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// /// Object Object AssignAppIdToSalesChannel (string appId, int? channelId); /// - /// Assign a given AppId to a Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// /// ApiResponse of Object ApiResponse AssignAppIdToSalesChannelWithHttpInfo (string appId, int? channelId); /// - /// Assign a Store to a Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// Object Object AssignStoreToChannel (int? storeId, string appId, int? channelId); /// - /// Assign a Store to a Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// ApiResponse of Object ApiResponse AssignStoreToChannelWithHttpInfo (int? storeId, string appId, int? channelId); /// - /// Attachs the specified store to the given sales channel. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to attach. + /// + /// + /// /// Object Object AttachStoreToSalesChannel (string appId, int? channelId, int? storeId); /// - /// Attachs the specified store to the given sales channel. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to attach. + /// + /// + /// /// ApiResponse of Object ApiResponse AttachStoreToSalesChannelWithHttpInfo (string appId, int? channelId, int? storeId); /// - /// Detaches all the stores from the given sales channel. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// Object Object DetachAllStoresFromSalesChannel (string appId, int? channelId); /// - /// Detaches all the stores from the given sales channel. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// ApiResponse of Object ApiResponse DetachAllStoresFromSalesChannelWithHttpInfo (string appId, int? channelId); /// - /// Detaches the specified store from the given sales channel. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to detach. + /// + /// + /// /// Object Object DetachStoreFromSalesChannel (string appId, int? channelId, int? storeId); /// - /// Detaches the specified store from the given sales channel. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to detach. + /// + /// + /// /// ApiResponse of Object ApiResponse DetachStoreFromSalesChannelWithHttpInfo (string appId, int? channelId, int? storeId); /// - /// Returns a list of sales channels that are assigned to a given AppId + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// RestApiArrayResultChannel RestApiArrayResultChannel GetAssignedChannels (string appId); /// - /// Returns a list of sales channels that are assigned to a given AppId + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// ApiResponse of RestApiArrayResultChannel ApiResponse GetAssignedChannelsWithHttpInfo (string appId); /// - /// Returns a list of sales channels that are not yet assigned to a given AppId + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// RestApiArrayResultChannel RestApiArrayResultChannel GetAvailableChannels (string appId); /// - /// Returns a list of sales channels that are not yet assigned to a given AppId + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// ApiResponse of RestApiArrayResultChannel ApiResponse GetAvailableChannelsWithHttpInfo (string appId); /// - /// Returns a Sales Channel by Id. + /// /// /// /// /// /// Thrown when fails to make API call - /// ChannelId - /// AppId + /// + /// /// RestApiResultChannel RestApiResultChannel GetChannel (int? id, string appId); /// - /// Returns a Sales Channel by Id. + /// /// /// /// /// /// Thrown when fails to make API call - /// ChannelId - /// AppId + /// + /// /// ApiResponse of RestApiResultChannel ApiResponse GetChannelWithHttpInfo (int? id, string appId); /// - /// Returns a list of enabled Channels + /// /// /// /// @@ -222,7 +222,7 @@ public interface IChannelsApi : IApiAccessor RestApiArrayResultChannel GetChannels (string appId); /// - /// Returns a list of enabled Channels + /// /// /// /// @@ -232,266 +232,266 @@ public interface IChannelsApi : IApiAccessor /// ApiResponse of RestApiArrayResultChannel ApiResponse GetChannelsWithHttpInfo (string appId); /// - /// Returns a list of stores of an AppId that are assigned to a given Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Sales channel (Android, IOS, Web, etc.) + /// + /// /// RestApiArrayResultStoreChannelAssignment RestApiArrayResultStoreChannelAssignment GetStoresAssignedToChannel (string appId, int? channelId); /// - /// Returns a list of stores of an AppId that are assigned to a given Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Sales channel (Android, IOS, Web, etc.) + /// + /// /// ApiResponse of RestApiArrayResultStoreChannelAssignment ApiResponse GetStoresAssignedToChannelWithHttpInfo (string appId, int? channelId); /// - /// Returns a list of store ids attached to the given channel type for the specified app. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// Response Response GetStoresBySalesChannel (string appId, int? channelId); /// - /// Returns a list of store ids attached to the given channel type for the specified app. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// ApiResponse of Response ApiResponse GetStoresBySalesChannelWithHttpInfo (string appId, int? channelId); /// - /// Unassign a Store from a Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// Object Object UnassignStoreFromChannel (int? storeId, string appId, int? channelId); /// - /// Unassign a Store from a Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// ApiResponse of Object ApiResponse UnassignStoreFromChannelWithHttpInfo (int? storeId, string appId, int? channelId); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Assign a given AppId to a Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// /// Task of Object System.Threading.Tasks.Task AssignAppIdToSalesChannelAsync (string appId, int? channelId); /// - /// Assign a given AppId to a Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// /// Task of ApiResponse (Object) System.Threading.Tasks.Task> AssignAppIdToSalesChannelAsyncWithHttpInfo (string appId, int? channelId); /// - /// Assign a Store to a Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// Task of Object System.Threading.Tasks.Task AssignStoreToChannelAsync (int? storeId, string appId, int? channelId); /// - /// Assign a Store to a Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// Task of ApiResponse (Object) System.Threading.Tasks.Task> AssignStoreToChannelAsyncWithHttpInfo (int? storeId, string appId, int? channelId); /// - /// Attachs the specified store to the given sales channel. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to attach. + /// + /// + /// /// Task of Object System.Threading.Tasks.Task AttachStoreToSalesChannelAsync (string appId, int? channelId, int? storeId); /// - /// Attachs the specified store to the given sales channel. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to attach. + /// + /// + /// /// Task of ApiResponse (Object) System.Threading.Tasks.Task> AttachStoreToSalesChannelAsyncWithHttpInfo (string appId, int? channelId, int? storeId); /// - /// Detaches all the stores from the given sales channel. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// Task of Object System.Threading.Tasks.Task DetachAllStoresFromSalesChannelAsync (string appId, int? channelId); /// - /// Detaches all the stores from the given sales channel. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// Task of ApiResponse (Object) System.Threading.Tasks.Task> DetachAllStoresFromSalesChannelAsyncWithHttpInfo (string appId, int? channelId); /// - /// Detaches the specified store from the given sales channel. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to detach. + /// + /// + /// /// Task of Object System.Threading.Tasks.Task DetachStoreFromSalesChannelAsync (string appId, int? channelId, int? storeId); /// - /// Detaches the specified store from the given sales channel. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to detach. + /// + /// + /// /// Task of ApiResponse (Object) System.Threading.Tasks.Task> DetachStoreFromSalesChannelAsyncWithHttpInfo (string appId, int? channelId, int? storeId); /// - /// Returns a list of sales channels that are assigned to a given AppId + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// Task of RestApiArrayResultChannel System.Threading.Tasks.Task GetAssignedChannelsAsync (string appId); /// - /// Returns a list of sales channels that are assigned to a given AppId + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// Task of ApiResponse (RestApiArrayResultChannel) System.Threading.Tasks.Task> GetAssignedChannelsAsyncWithHttpInfo (string appId); /// - /// Returns a list of sales channels that are not yet assigned to a given AppId + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// Task of RestApiArrayResultChannel System.Threading.Tasks.Task GetAvailableChannelsAsync (string appId); /// - /// Returns a list of sales channels that are not yet assigned to a given AppId + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// Task of ApiResponse (RestApiArrayResultChannel) System.Threading.Tasks.Task> GetAvailableChannelsAsyncWithHttpInfo (string appId); /// - /// Returns a Sales Channel by Id. + /// /// /// /// /// /// Thrown when fails to make API call - /// ChannelId - /// AppId + /// + /// /// Task of RestApiResultChannel System.Threading.Tasks.Task GetChannelAsync (int? id, string appId); /// - /// Returns a Sales Channel by Id. + /// /// /// /// /// /// Thrown when fails to make API call - /// ChannelId - /// AppId + /// + /// /// Task of ApiResponse (RestApiResultChannel) System.Threading.Tasks.Task> GetChannelAsyncWithHttpInfo (int? id, string appId); /// - /// Returns a list of enabled Channels + /// /// /// /// @@ -502,7 +502,7 @@ public interface IChannelsApi : IApiAccessor System.Threading.Tasks.Task GetChannelsAsync (string appId); /// - /// Returns a list of enabled Channels + /// /// /// /// @@ -512,74 +512,74 @@ public interface IChannelsApi : IApiAccessor /// Task of ApiResponse (RestApiArrayResultChannel) System.Threading.Tasks.Task> GetChannelsAsyncWithHttpInfo (string appId); /// - /// Returns a list of stores of an AppId that are assigned to a given Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Sales channel (Android, IOS, Web, etc.) + /// + /// /// Task of RestApiArrayResultStoreChannelAssignment System.Threading.Tasks.Task GetStoresAssignedToChannelAsync (string appId, int? channelId); /// - /// Returns a list of stores of an AppId that are assigned to a given Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Sales channel (Android, IOS, Web, etc.) + /// + /// /// Task of ApiResponse (RestApiArrayResultStoreChannelAssignment) System.Threading.Tasks.Task> GetStoresAssignedToChannelAsyncWithHttpInfo (string appId, int? channelId); /// - /// Returns a list of store ids attached to the given channel type for the specified app. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// Task of Response System.Threading.Tasks.Task GetStoresBySalesChannelAsync (string appId, int? channelId); /// - /// Returns a list of store ids attached to the given channel type for the specified app. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// Task of ApiResponse (Response) System.Threading.Tasks.Task> GetStoresBySalesChannelAsyncWithHttpInfo (string appId, int? channelId); /// - /// Unassign a Store from a Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// Task of Object System.Threading.Tasks.Task UnassignStoreFromChannelAsync (int? storeId, string appId, int? channelId); /// - /// Unassign a Store from a Sales Channel + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// Task of ApiResponse (Object) System.Threading.Tasks.Task> UnassignStoreFromChannelAsyncWithHttpInfo (int? storeId, string appId, int? channelId); #endregion Asynchronous Operations @@ -683,11 +683,11 @@ public void AddDefaultHeader(string key, string value) } /// - /// Assign a given AppId to a Sales Channel + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// /// Object public Object AssignAppIdToSalesChannel (string appId, int? channelId) { @@ -696,11 +696,11 @@ public Object AssignAppIdToSalesChannel (string appId, int? channelId) } /// - /// Assign a given AppId to a Sales Channel + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// /// ApiResponse of Object public ApiResponse< Object > AssignAppIdToSalesChannelWithHttpInfo (string appId, int? channelId) { @@ -764,11 +764,11 @@ public ApiResponse< Object > AssignAppIdToSalesChannelWithHttpInfo (string appId } /// - /// Assign a given AppId to a Sales Channel + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// /// Task of Object public async System.Threading.Tasks.Task AssignAppIdToSalesChannelAsync (string appId, int? channelId) { @@ -778,11 +778,11 @@ public async System.Threading.Tasks.Task AssignAppIdToSalesChannelAsync } /// - /// Assign a given AppId to a Sales Channel + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// /// Task of ApiResponse (Object) public async System.Threading.Tasks.Task> AssignAppIdToSalesChannelAsyncWithHttpInfo (string appId, int? channelId) { @@ -846,12 +846,12 @@ public async System.Threading.Tasks.Task> AssignAppIdToSales } /// - /// Assign a Store to a Sales Channel + /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// Object public Object AssignStoreToChannel (int? storeId, string appId, int? channelId) { @@ -860,12 +860,12 @@ public Object AssignStoreToChannel (int? storeId, string appId, int? channelId) } /// - /// Assign a Store to a Sales Channel + /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// ApiResponse of Object public ApiResponse< Object > AssignStoreToChannelWithHttpInfo (int? storeId, string appId, int? channelId) { @@ -933,12 +933,12 @@ public ApiResponse< Object > AssignStoreToChannelWithHttpInfo (int? storeId, str } /// - /// Assign a Store to a Sales Channel + /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// Task of Object public async System.Threading.Tasks.Task AssignStoreToChannelAsync (int? storeId, string appId, int? channelId) { @@ -948,12 +948,12 @@ public async System.Threading.Tasks.Task AssignStoreToChannelAsync (int? } /// - /// Assign a Store to a Sales Channel + /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// Task of ApiResponse (Object) public async System.Threading.Tasks.Task> AssignStoreToChannelAsyncWithHttpInfo (int? storeId, string appId, int? channelId) { @@ -1021,12 +1021,12 @@ public async System.Threading.Tasks.Task> AssignStoreToChann } /// - /// Attachs the specified store to the given sales channel. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to attach. + /// + /// + /// /// Object public Object AttachStoreToSalesChannel (string appId, int? channelId, int? storeId) { @@ -1035,12 +1035,12 @@ public Object AttachStoreToSalesChannel (string appId, int? channelId, int? stor } /// - /// Attachs the specified store to the given sales channel. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to attach. + /// + /// + /// /// ApiResponse of Object public ApiResponse< Object > AttachStoreToSalesChannelWithHttpInfo (string appId, int? channelId, int? storeId) { @@ -1108,12 +1108,12 @@ public ApiResponse< Object > AttachStoreToSalesChannelWithHttpInfo (string appId } /// - /// Attachs the specified store to the given sales channel. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to attach. + /// + /// + /// /// Task of Object public async System.Threading.Tasks.Task AttachStoreToSalesChannelAsync (string appId, int? channelId, int? storeId) { @@ -1123,12 +1123,12 @@ public async System.Threading.Tasks.Task AttachStoreToSalesChannelAsync } /// - /// Attachs the specified store to the given sales channel. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to attach. + /// + /// + /// /// Task of ApiResponse (Object) public async System.Threading.Tasks.Task> AttachStoreToSalesChannelAsyncWithHttpInfo (string appId, int? channelId, int? storeId) { @@ -1196,11 +1196,11 @@ public async System.Threading.Tasks.Task> AttachStoreToSales } /// - /// Detaches all the stores from the given sales channel. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// Object public Object DetachAllStoresFromSalesChannel (string appId, int? channelId) { @@ -1209,11 +1209,11 @@ public Object DetachAllStoresFromSalesChannel (string appId, int? channelId) } /// - /// Detaches all the stores from the given sales channel. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// ApiResponse of Object public ApiResponse< Object > DetachAllStoresFromSalesChannelWithHttpInfo (string appId, int? channelId) { @@ -1277,11 +1277,11 @@ public ApiResponse< Object > DetachAllStoresFromSalesChannelWithHttpInfo (string } /// - /// Detaches all the stores from the given sales channel. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// Task of Object public async System.Threading.Tasks.Task DetachAllStoresFromSalesChannelAsync (string appId, int? channelId) { @@ -1291,11 +1291,11 @@ public async System.Threading.Tasks.Task DetachAllStoresFromSalesChannel } /// - /// Detaches all the stores from the given sales channel. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// Task of ApiResponse (Object) public async System.Threading.Tasks.Task> DetachAllStoresFromSalesChannelAsyncWithHttpInfo (string appId, int? channelId) { @@ -1359,12 +1359,12 @@ public async System.Threading.Tasks.Task> DetachAllStoresFro } /// - /// Detaches the specified store from the given sales channel. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to detach. + /// + /// + /// /// Object public Object DetachStoreFromSalesChannel (string appId, int? channelId, int? storeId) { @@ -1373,12 +1373,12 @@ public Object DetachStoreFromSalesChannel (string appId, int? channelId, int? st } /// - /// Detaches the specified store from the given sales channel. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to detach. + /// + /// + /// /// ApiResponse of Object public ApiResponse< Object > DetachStoreFromSalesChannelWithHttpInfo (string appId, int? channelId, int? storeId) { @@ -1446,12 +1446,12 @@ public ApiResponse< Object > DetachStoreFromSalesChannelWithHttpInfo (string app } /// - /// Detaches the specified store from the given sales channel. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to detach. + /// + /// + /// /// Task of Object public async System.Threading.Tasks.Task DetachStoreFromSalesChannelAsync (string appId, int? channelId, int? storeId) { @@ -1461,12 +1461,12 @@ public async System.Threading.Tasks.Task DetachStoreFromSalesChannelAsyn } /// - /// Detaches the specified store from the given sales channel. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) - /// Store Id (Phyisical Restaurant) to detach. + /// + /// + /// /// Task of ApiResponse (Object) public async System.Threading.Tasks.Task> DetachStoreFromSalesChannelAsyncWithHttpInfo (string appId, int? channelId, int? storeId) { @@ -1534,10 +1534,10 @@ public async System.Threading.Tasks.Task> DetachStoreFromSal } /// - /// Returns a list of sales channels that are assigned to a given AppId + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// RestApiArrayResultChannel public RestApiArrayResultChannel GetAssignedChannels (string appId) { @@ -1546,10 +1546,10 @@ public RestApiArrayResultChannel GetAssignedChannels (string appId) } /// - /// Returns a list of sales channels that are assigned to a given AppId + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// ApiResponse of RestApiArrayResultChannel public ApiResponse< RestApiArrayResultChannel > GetAssignedChannelsWithHttpInfo (string appId) { @@ -1609,10 +1609,10 @@ public ApiResponse< RestApiArrayResultChannel > GetAssignedChannelsWithHttpInfo } /// - /// Returns a list of sales channels that are assigned to a given AppId + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// Task of RestApiArrayResultChannel public async System.Threading.Tasks.Task GetAssignedChannelsAsync (string appId) { @@ -1622,10 +1622,10 @@ public async System.Threading.Tasks.Task GetAssignedC } /// - /// Returns a list of sales channels that are assigned to a given AppId + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// Task of ApiResponse (RestApiArrayResultChannel) public async System.Threading.Tasks.Task> GetAssignedChannelsAsyncWithHttpInfo (string appId) { @@ -1685,10 +1685,10 @@ public async System.Threading.Tasks.Task> } /// - /// Returns a list of sales channels that are not yet assigned to a given AppId + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// RestApiArrayResultChannel public RestApiArrayResultChannel GetAvailableChannels (string appId) { @@ -1697,10 +1697,10 @@ public RestApiArrayResultChannel GetAvailableChannels (string appId) } /// - /// Returns a list of sales channels that are not yet assigned to a given AppId + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// ApiResponse of RestApiArrayResultChannel public ApiResponse< RestApiArrayResultChannel > GetAvailableChannelsWithHttpInfo (string appId) { @@ -1760,10 +1760,10 @@ public ApiResponse< RestApiArrayResultChannel > GetAvailableChannelsWithHttpInfo } /// - /// Returns a list of sales channels that are not yet assigned to a given AppId + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// Task of RestApiArrayResultChannel public async System.Threading.Tasks.Task GetAvailableChannelsAsync (string appId) { @@ -1773,10 +1773,10 @@ public async System.Threading.Tasks.Task GetAvailable } /// - /// Returns a list of sales channels that are not yet assigned to a given AppId + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameIdxxx) + /// /// Task of ApiResponse (RestApiArrayResultChannel) public async System.Threading.Tasks.Task> GetAvailableChannelsAsyncWithHttpInfo (string appId) { @@ -1836,11 +1836,11 @@ public async System.Threading.Tasks.Task> } /// - /// Returns a Sales Channel by Id. + /// /// /// Thrown when fails to make API call - /// ChannelId - /// AppId + /// + /// /// RestApiResultChannel public RestApiResultChannel GetChannel (int? id, string appId) { @@ -1849,11 +1849,11 @@ public RestApiResultChannel GetChannel (int? id, string appId) } /// - /// Returns a Sales Channel by Id. + /// /// /// Thrown when fails to make API call - /// ChannelId - /// AppId + /// + /// /// ApiResponse of RestApiResultChannel public ApiResponse< RestApiResultChannel > GetChannelWithHttpInfo (int? id, string appId) { @@ -1917,11 +1917,11 @@ public ApiResponse< RestApiResultChannel > GetChannelWithHttpInfo (int? id, stri } /// - /// Returns a Sales Channel by Id. + /// /// /// Thrown when fails to make API call - /// ChannelId - /// AppId + /// + /// /// Task of RestApiResultChannel public async System.Threading.Tasks.Task GetChannelAsync (int? id, string appId) { @@ -1931,11 +1931,11 @@ public async System.Threading.Tasks.Task GetChannelAsync ( } /// - /// Returns a Sales Channel by Id. + /// /// /// Thrown when fails to make API call - /// ChannelId - /// AppId + /// + /// /// Task of ApiResponse (RestApiResultChannel) public async System.Threading.Tasks.Task> GetChannelAsyncWithHttpInfo (int? id, string appId) { @@ -1999,7 +1999,7 @@ public async System.Threading.Tasks.Task> GetC } /// - /// Returns a list of enabled Channels + /// /// /// Thrown when fails to make API call /// @@ -2011,7 +2011,7 @@ public RestApiArrayResultChannel GetChannels (string appId) } /// - /// Returns a list of enabled Channels + /// /// /// Thrown when fails to make API call /// @@ -2074,7 +2074,7 @@ public ApiResponse< RestApiArrayResultChannel > GetChannelsWithHttpInfo (string } /// - /// Returns a list of enabled Channels + /// /// /// Thrown when fails to make API call /// @@ -2087,7 +2087,7 @@ public async System.Threading.Tasks.Task GetChannelsA } /// - /// Returns a list of enabled Channels + /// /// /// Thrown when fails to make API call /// @@ -2150,11 +2150,11 @@ public async System.Threading.Tasks.Task> } /// - /// Returns a list of stores of an AppId that are assigned to a given Sales Channel + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Sales channel (Android, IOS, Web, etc.) + /// + /// /// RestApiArrayResultStoreChannelAssignment public RestApiArrayResultStoreChannelAssignment GetStoresAssignedToChannel (string appId, int? channelId) { @@ -2163,11 +2163,11 @@ public RestApiArrayResultStoreChannelAssignment GetStoresAssignedToChannel (stri } /// - /// Returns a list of stores of an AppId that are assigned to a given Sales Channel + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Sales channel (Android, IOS, Web, etc.) + /// + /// /// ApiResponse of RestApiArrayResultStoreChannelAssignment public ApiResponse< RestApiArrayResultStoreChannelAssignment > GetStoresAssignedToChannelWithHttpInfo (string appId, int? channelId) { @@ -2231,11 +2231,11 @@ public ApiResponse< RestApiArrayResultStoreChannelAssignment > GetStoresAssigned } /// - /// Returns a list of stores of an AppId that are assigned to a given Sales Channel + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Sales channel (Android, IOS, Web, etc.) + /// + /// /// Task of RestApiArrayResultStoreChannelAssignment public async System.Threading.Tasks.Task GetStoresAssignedToChannelAsync (string appId, int? channelId) { @@ -2245,11 +2245,11 @@ public async System.Threading.Tasks.Task - /// Returns a list of stores of an AppId that are assigned to a given Sales Channel + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Sales channel (Android, IOS, Web, etc.) + /// + /// /// Task of ApiResponse (RestApiArrayResultStoreChannelAssignment) public async System.Threading.Tasks.Task> GetStoresAssignedToChannelAsyncWithHttpInfo (string appId, int? channelId) { @@ -2313,11 +2313,11 @@ public async System.Threading.Tasks.Task - /// Returns a list of store ids attached to the given channel type for the specified app. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// Response public Response GetStoresBySalesChannel (string appId, int? channelId) { @@ -2326,11 +2326,11 @@ public Response GetStoresBySalesChannel (string appId, int? channelId) } /// - /// Returns a list of store ids attached to the given channel type for the specified app. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// ApiResponse of Response public ApiResponse< Response > GetStoresBySalesChannelWithHttpInfo (string appId, int? channelId) { @@ -2394,11 +2394,11 @@ public ApiResponse< Response > GetStoresBySalesChannelWithHttpInfo (string appId } /// - /// Returns a list of store ids attached to the given channel type for the specified app. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// Task of Response public async System.Threading.Tasks.Task GetStoresBySalesChannelAsync (string appId, int? channelId) { @@ -2408,11 +2408,11 @@ public async System.Threading.Tasks.Task GetStoresBySalesChannelAsync } /// - /// Returns a list of store ids attached to the given channel type for the specified app. + /// /// /// Thrown when fails to make API call - /// Application Id (AppNameId) - /// Type of sales channel (Android, IOS, Web, etc.) + /// + /// /// Task of ApiResponse (Response) public async System.Threading.Tasks.Task> GetStoresBySalesChannelAsyncWithHttpInfo (string appId, int? channelId) { @@ -2476,12 +2476,12 @@ public async System.Threading.Tasks.Task> GetStoresBySales } /// - /// Unassign a Store from a Sales Channel + /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// Object public Object UnassignStoreFromChannel (int? storeId, string appId, int? channelId) { @@ -2490,12 +2490,12 @@ public Object UnassignStoreFromChannel (int? storeId, string appId, int? channel } /// - /// Unassign a Store from a Sales Channel + /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// ApiResponse of Object public ApiResponse< Object > UnassignStoreFromChannelWithHttpInfo (int? storeId, string appId, int? channelId) { @@ -2563,12 +2563,12 @@ public ApiResponse< Object > UnassignStoreFromChannelWithHttpInfo (int? storeId, } /// - /// Unassign a Store from a Sales Channel + /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// Task of Object public async System.Threading.Tasks.Task UnassignStoreFromChannelAsync (int? storeId, string appId, int? channelId) { @@ -2578,12 +2578,12 @@ public async System.Threading.Tasks.Task UnassignStoreFromChannelAsync ( } /// - /// Unassign a Store from a Sales Channel + /// /// /// Thrown when fails to make API call - /// Store Id (123, 456) - /// AppId (AppNameIdxxx) - /// Channel Id (123, 456) + /// + /// + /// /// Task of ApiResponse (Object) public async System.Threading.Tasks.Task> UnassignStoreFromChannelAsyncWithHttpInfo (int? storeId, string appId, int? channelId) { 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/HttpRequestResponseLogsApi.cs b/src/Flipdish/Api/CrossSellApi.cs similarity index 54% rename from src/Flipdish/Api/HttpRequestResponseLogsApi.cs rename to src/Flipdish/Api/CrossSellApi.cs index 07b66a40..3525d0b5 100644 --- a/src/Flipdish/Api/HttpRequestResponseLogsApi.cs +++ b/src/Flipdish/Api/CrossSellApi.cs @@ -21,92 +21,84 @@ namespace Flipdish.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IHttpRequestResponseLogsApi : IApiAccessor + public interface ICrossSellApi : IApiAccessor { #region Synchronous Operations /// - /// Get API interaction logs + /// /// /// /// /// /// Thrown when fails to make API call - /// Start date time - /// End date time /// - /// User id (optional) (optional) - /// Id of the log (optional) - /// Page number (optional) - /// Page size (optional) - /// RestApiPaginationResultHttpRequestAndResponseLog - RestApiPaginationResultHttpRequestAndResponseLog GetLogs (DateTime? start, DateTime? end, string appId, int? filterByUserId = null, string guid = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// RestApiResultCrossSellMenuItems + RestApiResultCrossSellMenuItems GetCrossSellMenuItems (string appId, int? menuId, List menuItemId, int? limit, double? totalValue); /// - /// Get API interaction logs + /// /// /// /// /// /// Thrown when fails to make API call - /// Start date time - /// End date time /// - /// User id (optional) (optional) - /// Id of the log (optional) - /// Page number (optional) - /// Page size (optional) - /// ApiResponse of RestApiPaginationResultHttpRequestAndResponseLog - ApiResponse GetLogsWithHttpInfo (DateTime? start, DateTime? end, string appId, int? filterByUserId = null, string guid = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// ApiResponse of RestApiResultCrossSellMenuItems + ApiResponse GetCrossSellMenuItemsWithHttpInfo (string appId, int? menuId, List menuItemId, int? limit, double? totalValue); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get API interaction logs + /// /// /// /// /// /// Thrown when fails to make API call - /// Start date time - /// End date time /// - /// User id (optional) (optional) - /// Id of the log (optional) - /// Page number (optional) - /// Page size (optional) - /// Task of RestApiPaginationResultHttpRequestAndResponseLog - System.Threading.Tasks.Task GetLogsAsync (DateTime? start, DateTime? end, string appId, int? filterByUserId = null, string guid = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// Task of RestApiResultCrossSellMenuItems + System.Threading.Tasks.Task GetCrossSellMenuItemsAsync (string appId, int? menuId, List menuItemId, int? limit, double? totalValue); /// - /// Get API interaction logs + /// /// /// /// /// /// Thrown when fails to make API call - /// Start date time - /// End date time /// - /// User id (optional) (optional) - /// Id of the log (optional) - /// Page number (optional) - /// Page size (optional) - /// Task of ApiResponse (RestApiPaginationResultHttpRequestAndResponseLog) - System.Threading.Tasks.Task> GetLogsAsyncWithHttpInfo (DateTime? start, DateTime? end, string appId, int? filterByUserId = null, string guid = null, int? page = null, int? limit = null); + /// + /// + /// + /// + /// 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 HttpRequestResponseLogsApi : IHttpRequestResponseLogsApi + public partial class CrossSellApi : ICrossSellApi { private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - public HttpRequestResponseLogsApi(String basePath) + public CrossSellApi(String basePath) { this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; @@ -114,12 +106,12 @@ public HttpRequestResponseLogsApi(String basePath) } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// - public HttpRequestResponseLogsApi(Flipdish.Client.Configuration configuration = null) + public CrossSellApi(Flipdish.Client.Configuration configuration = null) { if (configuration == null) // use the default one in Configuration this.Configuration = Flipdish.Client.Configuration.Default; @@ -193,48 +185,50 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get API interaction logs + /// /// /// Thrown when fails to make API call - /// Start date time - /// End date time /// - /// User id (optional) (optional) - /// Id of the log (optional) - /// Page number (optional) - /// Page size (optional) - /// RestApiPaginationResultHttpRequestAndResponseLog - public RestApiPaginationResultHttpRequestAndResponseLog GetLogs (DateTime? start, DateTime? end, string appId, int? filterByUserId = null, string guid = null, int? page = null, int? limit = null) + /// + /// + /// + /// + /// RestApiResultCrossSellMenuItems + public RestApiResultCrossSellMenuItems GetCrossSellMenuItems (string appId, int? menuId, List menuItemId, int? limit, double? totalValue) { - ApiResponse localVarResponse = GetLogsWithHttpInfo(start, end, appId, filterByUserId, guid, page, limit); + ApiResponse localVarResponse = GetCrossSellMenuItemsWithHttpInfo(appId, menuId, menuItemId, limit, totalValue); return localVarResponse.Data; } /// - /// Get API interaction logs + /// /// /// Thrown when fails to make API call - /// Start date time - /// End date time /// - /// User id (optional) (optional) - /// Id of the log (optional) - /// Page number (optional) - /// Page size (optional) - /// ApiResponse of RestApiPaginationResultHttpRequestAndResponseLog - public ApiResponse< RestApiPaginationResultHttpRequestAndResponseLog > GetLogsWithHttpInfo (DateTime? start, DateTime? end, string appId, int? filterByUserId = null, string guid = null, int? page = null, int? limit = null) + /// + /// + /// + /// + /// ApiResponse of RestApiResultCrossSellMenuItems + public ApiResponse< RestApiResultCrossSellMenuItems > GetCrossSellMenuItemsWithHttpInfo (string appId, int? menuId, List menuItemId, int? limit, double? totalValue) { - // verify the required parameter 'start' is set - if (start == null) - throw new ApiException(400, "Missing required parameter 'start' when calling HttpRequestResponseLogsApi->GetLogs"); - // verify the required parameter 'end' is set - if (end == null) - throw new ApiException(400, "Missing required parameter 'end' when calling HttpRequestResponseLogsApi->GetLogs"); // verify the required parameter 'appId' is set if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling HttpRequestResponseLogsApi->GetLogs"); - - var localVarPath = "./api/v1.0/{appId}/interactions/logs"; + 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); @@ -259,12 +253,10 @@ public ApiResponse< RestApiPaginationResultHttpRequestAndResponseLog > GetLogsWi localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); 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 (filterByUserId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "filterByUserId", filterByUserId)); // query parameter - if (guid != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "guid", guid)); // query parameter - if (page != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "page", page)); // query 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 @@ -282,59 +274,61 @@ public ApiResponse< RestApiPaginationResultHttpRequestAndResponseLog > GetLogsWi if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetLogs", localVarResponse); + Exception exception = ExceptionFactory("GetCrossSellMenuItems", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiPaginationResultHttpRequestAndResponseLog) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultHttpRequestAndResponseLog))); + (RestApiResultCrossSellMenuItems) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCrossSellMenuItems))); } /// - /// Get API interaction logs + /// /// /// Thrown when fails to make API call - /// Start date time - /// End date time /// - /// User id (optional) (optional) - /// Id of the log (optional) - /// Page number (optional) - /// Page size (optional) - /// Task of RestApiPaginationResultHttpRequestAndResponseLog - public async System.Threading.Tasks.Task GetLogsAsync (DateTime? start, DateTime? end, string appId, int? filterByUserId = null, string guid = null, int? page = null, int? limit = null) + /// + /// + /// + /// + /// Task of RestApiResultCrossSellMenuItems + public async System.Threading.Tasks.Task GetCrossSellMenuItemsAsync (string appId, int? menuId, List menuItemId, int? limit, double? totalValue) { - ApiResponse localVarResponse = await GetLogsAsyncWithHttpInfo(start, end, appId, filterByUserId, guid, page, limit); + ApiResponse localVarResponse = await GetCrossSellMenuItemsAsyncWithHttpInfo(appId, menuId, menuItemId, limit, totalValue); return localVarResponse.Data; } /// - /// Get API interaction logs + /// /// /// Thrown when fails to make API call - /// Start date time - /// End date time /// - /// User id (optional) (optional) - /// Id of the log (optional) - /// Page number (optional) - /// Page size (optional) - /// Task of ApiResponse (RestApiPaginationResultHttpRequestAndResponseLog) - public async System.Threading.Tasks.Task> GetLogsAsyncWithHttpInfo (DateTime? start, DateTime? end, string appId, int? filterByUserId = null, string guid = null, int? page = null, int? limit = null) + /// + /// + /// + /// + /// 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 'start' is set - if (start == null) - throw new ApiException(400, "Missing required parameter 'start' when calling HttpRequestResponseLogsApi->GetLogs"); - // verify the required parameter 'end' is set - if (end == null) - throw new ApiException(400, "Missing required parameter 'end' when calling HttpRequestResponseLogsApi->GetLogs"); // verify the required parameter 'appId' is set if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling HttpRequestResponseLogsApi->GetLogs"); - - var localVarPath = "./api/v1.0/{appId}/interactions/logs"; + 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); @@ -359,12 +353,10 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiPaginationResultHttpRequestAndResponseLog) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultHttpRequestAndResponseLog))); + (RestApiResultCrossSellMenuItems) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultCrossSellMenuItems))); } } diff --git a/src/Flipdish/Api/CustomersApi.cs b/src/Flipdish/Api/CustomersApi.cs index 1e0cd613..8dc9681d 100644 --- a/src/Flipdish/Api/CustomersApi.cs +++ b/src/Flipdish/Api/CustomersApi.cs @@ -25,101 +25,193 @@ public interface ICustomersApi : IApiAccessor { #region Synchronous Operations /// - /// Get customer of an app by Id + /// + /// + /// + /// + /// + /// 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 - /// App Name Id - /// Customer Id + /// + /// /// RestApiResultCustomer RestApiResultCustomer GetCustomerById (string appId, int? customerId); /// - /// Get customer of an app by Id + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Customer Id + /// + /// /// ApiResponse of RestApiResultCustomer ApiResponse GetCustomerByIdWithHttpInfo (string appId, int? customerId); /// - /// Update customer of an app by Id + /// + /// + /// + /// + /// + /// 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 - /// App Name Id - /// Customer Id - /// Updated customer information + /// + /// + /// /// RestApiResultCustomer RestApiResultCustomer UpdateCustomerById (string appId, int? customerId, CustomerUpdateModel updateCustomer); /// - /// Update customer of an app by Id + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Customer Id - /// Updated customer information + /// + /// + /// /// ApiResponse of RestApiResultCustomer ApiResponse UpdateCustomerByIdWithHttpInfo (string appId, int? customerId, CustomerUpdateModel updateCustomer); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get customer of an app by Id + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Customer Id + /// + /// + /// 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); /// - /// Get customer of an app by Id + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Customer Id + /// + /// /// Task of ApiResponse (RestApiResultCustomer) System.Threading.Tasks.Task> GetCustomerByIdAsyncWithHttpInfo (string appId, int? customerId); /// - /// Update customer of an app by Id + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Customer Id - /// Updated customer information + /// + /// + /// 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); /// - /// Update customer of an app by Id + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Customer Id - /// Updated customer information + /// + /// + /// /// Task of ApiResponse (RestApiResultCustomer) System.Threading.Tasks.Task> UpdateCustomerByIdAsyncWithHttpInfo (string appId, int? customerId, CustomerUpdateModel updateCustomer); #endregion Asynchronous Operations @@ -223,11 +315,198 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get customer of an app by Id + /// + /// + /// 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 - /// App Name Id - /// Customer Id + /// + /// /// RestApiResultCustomer public RestApiResultCustomer GetCustomerById (string appId, int? customerId) { @@ -236,11 +515,11 @@ public RestApiResultCustomer GetCustomerById (string appId, int? customerId) } /// - /// Get customer of an app by Id + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Customer Id + /// + /// /// ApiResponse of RestApiResultCustomer public ApiResponse< RestApiResultCustomer > GetCustomerByIdWithHttpInfo (string appId, int? customerId) { @@ -304,11 +583,11 @@ public ApiResponse< RestApiResultCustomer > GetCustomerByIdWithHttpInfo (string } /// - /// Get customer of an app by Id + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Customer Id + /// + /// /// Task of RestApiResultCustomer public async System.Threading.Tasks.Task GetCustomerByIdAsync (string appId, int? customerId) { @@ -318,11 +597,11 @@ public async System.Threading.Tasks.Task GetCustomerByIdA } /// - /// Get customer of an app by Id + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Customer Id + /// + /// /// Task of ApiResponse (RestApiResultCustomer) public async System.Threading.Tasks.Task> GetCustomerByIdAsyncWithHttpInfo (string appId, int? customerId) { @@ -386,12 +665,175 @@ public async System.Threading.Tasks.Task> Get } /// - /// Update customer of an app by Id + /// + /// + /// 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 - /// App Name Id - /// Customer Id - /// Updated customer information + /// + /// + /// /// RestApiResultCustomer public RestApiResultCustomer UpdateCustomerById (string appId, int? customerId, CustomerUpdateModel updateCustomer) { @@ -400,12 +842,12 @@ public RestApiResultCustomer UpdateCustomerById (string appId, int? customerId, } /// - /// Update customer of an app by Id + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Customer Id - /// Updated customer information + /// + /// + /// /// ApiResponse of RestApiResultCustomer public ApiResponse< RestApiResultCustomer > UpdateCustomerByIdWithHttpInfo (string appId, int? customerId, CustomerUpdateModel updateCustomer) { @@ -485,12 +927,12 @@ public ApiResponse< RestApiResultCustomer > UpdateCustomerByIdWithHttpInfo (stri } /// - /// Update customer of an app by Id + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Customer Id - /// Updated customer information + /// + /// + /// /// Task of RestApiResultCustomer public async System.Threading.Tasks.Task UpdateCustomerByIdAsync (string appId, int? customerId, CustomerUpdateModel updateCustomer) { @@ -500,12 +942,12 @@ public async System.Threading.Tasks.Task UpdateCustomerBy } /// - /// Update customer of an app by Id + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Customer Id - /// Updated customer information + /// + /// + /// /// Task of ApiResponse (RestApiResultCustomer) public async System.Threading.Tasks.Task> UpdateCustomerByIdAsyncWithHttpInfo (string appId, int? customerId, CustomerUpdateModel updateCustomer) { diff --git a/src/Flipdish/Api/DeliveryZoneApi.cs b/src/Flipdish/Api/DeliveryZoneApi.cs index 64d5ec85..6f4f7002 100644 --- a/src/Flipdish/Api/DeliveryZoneApi.cs +++ b/src/Flipdish/Api/DeliveryZoneApi.cs @@ -25,189 +25,189 @@ public interface IDeliveryZoneApi : IApiAccessor { #region Synchronous Operations /// - /// Adds a delivery zone to the store id + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone will be added - /// Optional delivery zone, if not supplied will create a default zone + /// + /// /// RestApiResultDeliveryZone RestApiResultDeliveryZone AddDeliveryZone (int? storeId, DeliveryZoneBase deliveryZoneBase); /// - /// Adds a delivery zone to the store id + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone will be added - /// Optional delivery zone, if not supplied will create a default zone + /// + /// /// ApiResponse of RestApiResultDeliveryZone ApiResponse AddDeliveryZoneWithHttpInfo (int? storeId, DeliveryZoneBase deliveryZoneBase); /// - /// Get all the delivery zones associated with a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zones are associated + /// /// RestApiArrayResultDeliveryZone RestApiArrayResultDeliveryZone GetDeliveryZones (int? storeId); /// - /// Get all the delivery zones associated with a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zones are associated + /// /// ApiResponse of RestApiArrayResultDeliveryZone ApiResponse GetDeliveryZonesWithHttpInfo (int? storeId); /// - /// Removes the existing delivery zone + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be removed + /// + /// /// void RemoveDeliveryZone (int? storeId, int? deliveryZoneId); /// - /// Removes the existing delivery zone + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be removed + /// + /// /// ApiResponse of Object(void) ApiResponse RemoveDeliveryZoneWithHttpInfo (int? storeId, int? deliveryZoneId); /// - /// Updates the existing delivery zone + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be updated - /// Delta of delivery zone parameters that need to be changed + /// + /// + /// /// RestApiResultDeliveryZone RestApiResultDeliveryZone UpdateDeliveryZone (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone); /// - /// Updates the existing delivery zone + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be updated - /// Delta of delivery zone parameters that need to be changed + /// + /// + /// /// ApiResponse of RestApiResultDeliveryZone ApiResponse UpdateDeliveryZoneWithHttpInfo (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Adds a delivery zone to the store id + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone will be added - /// Optional delivery zone, if not supplied will create a default zone + /// + /// /// Task of RestApiResultDeliveryZone System.Threading.Tasks.Task AddDeliveryZoneAsync (int? storeId, DeliveryZoneBase deliveryZoneBase); /// - /// Adds a delivery zone to the store id + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone will be added - /// Optional delivery zone, if not supplied will create a default zone + /// + /// /// Task of ApiResponse (RestApiResultDeliveryZone) System.Threading.Tasks.Task> AddDeliveryZoneAsyncWithHttpInfo (int? storeId, DeliveryZoneBase deliveryZoneBase); /// - /// Get all the delivery zones associated with a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zones are associated + /// /// Task of RestApiArrayResultDeliveryZone System.Threading.Tasks.Task GetDeliveryZonesAsync (int? storeId); /// - /// Get all the delivery zones associated with a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zones are associated + /// /// Task of ApiResponse (RestApiArrayResultDeliveryZone) System.Threading.Tasks.Task> GetDeliveryZonesAsyncWithHttpInfo (int? storeId); /// - /// Removes the existing delivery zone + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be removed + /// + /// /// Task of void System.Threading.Tasks.Task RemoveDeliveryZoneAsync (int? storeId, int? deliveryZoneId); /// - /// Removes the existing delivery zone + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be removed + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> RemoveDeliveryZoneAsyncWithHttpInfo (int? storeId, int? deliveryZoneId); /// - /// Updates the existing delivery zone + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be updated - /// Delta of delivery zone parameters that need to be changed + /// + /// + /// /// Task of RestApiResultDeliveryZone System.Threading.Tasks.Task UpdateDeliveryZoneAsync (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone); /// - /// Updates the existing delivery zone + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be updated - /// Delta of delivery zone parameters that need to be changed + /// + /// + /// /// Task of ApiResponse (RestApiResultDeliveryZone) System.Threading.Tasks.Task> UpdateDeliveryZoneAsyncWithHttpInfo (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone); #endregion Asynchronous Operations @@ -311,11 +311,11 @@ public void AddDefaultHeader(string key, string value) } /// - /// Adds a delivery zone to the store id + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone will be added - /// Optional delivery zone, if not supplied will create a default zone + /// + /// /// RestApiResultDeliveryZone public RestApiResultDeliveryZone AddDeliveryZone (int? storeId, DeliveryZoneBase deliveryZoneBase) { @@ -324,11 +324,11 @@ public RestApiResultDeliveryZone AddDeliveryZone (int? storeId, DeliveryZoneBase } /// - /// Adds a delivery zone to the store id + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone will be added - /// Optional delivery zone, if not supplied will create a default zone + /// + /// /// ApiResponse of RestApiResultDeliveryZone public ApiResponse< RestApiResultDeliveryZone > AddDeliveryZoneWithHttpInfo (int? storeId, DeliveryZoneBase deliveryZoneBase) { @@ -404,11 +404,11 @@ public ApiResponse< RestApiResultDeliveryZone > AddDeliveryZoneWithHttpInfo (int } /// - /// Adds a delivery zone to the store id + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone will be added - /// Optional delivery zone, if not supplied will create a default zone + /// + /// /// Task of RestApiResultDeliveryZone public async System.Threading.Tasks.Task AddDeliveryZoneAsync (int? storeId, DeliveryZoneBase deliveryZoneBase) { @@ -418,11 +418,11 @@ public async System.Threading.Tasks.Task AddDeliveryZ } /// - /// Adds a delivery zone to the store id + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone will be added - /// Optional delivery zone, if not supplied will create a default zone + /// + /// /// Task of ApiResponse (RestApiResultDeliveryZone) public async System.Threading.Tasks.Task> AddDeliveryZoneAsyncWithHttpInfo (int? storeId, DeliveryZoneBase deliveryZoneBase) { @@ -498,10 +498,10 @@ public async System.Threading.Tasks.Task> } /// - /// Get all the delivery zones associated with a store + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zones are associated + /// /// RestApiArrayResultDeliveryZone public RestApiArrayResultDeliveryZone GetDeliveryZones (int? storeId) { @@ -510,10 +510,10 @@ public RestApiArrayResultDeliveryZone GetDeliveryZones (int? storeId) } /// - /// Get all the delivery zones associated with a store + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zones are associated + /// /// ApiResponse of RestApiArrayResultDeliveryZone public ApiResponse< RestApiArrayResultDeliveryZone > GetDeliveryZonesWithHttpInfo (int? storeId) { @@ -573,10 +573,10 @@ public ApiResponse< RestApiArrayResultDeliveryZone > GetDeliveryZonesWithHttpInf } /// - /// Get all the delivery zones associated with a store + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zones are associated + /// /// Task of RestApiArrayResultDeliveryZone public async System.Threading.Tasks.Task GetDeliveryZonesAsync (int? storeId) { @@ -586,10 +586,10 @@ public async System.Threading.Tasks.Task GetDeli } /// - /// Get all the delivery zones associated with a store + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zones are associated + /// /// Task of ApiResponse (RestApiArrayResultDeliveryZone) public async System.Threading.Tasks.Task> GetDeliveryZonesAsyncWithHttpInfo (int? storeId) { @@ -649,11 +649,11 @@ public async System.Threading.Tasks.Task - /// Removes the existing delivery zone + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be removed + /// + /// /// public void RemoveDeliveryZone (int? storeId, int? deliveryZoneId) { @@ -661,11 +661,11 @@ public void RemoveDeliveryZone (int? storeId, int? deliveryZoneId) } /// - /// Removes the existing delivery zone + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be removed + /// + /// /// ApiResponse of Object(void) public ApiResponse RemoveDeliveryZoneWithHttpInfo (int? storeId, int? deliveryZoneId) { @@ -729,11 +729,11 @@ public ApiResponse RemoveDeliveryZoneWithHttpInfo (int? storeId, int? de } /// - /// Removes the existing delivery zone + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be removed + /// + /// /// Task of void public async System.Threading.Tasks.Task RemoveDeliveryZoneAsync (int? storeId, int? deliveryZoneId) { @@ -742,11 +742,11 @@ public async System.Threading.Tasks.Task RemoveDeliveryZoneAsync (int? storeId, } /// - /// Removes the existing delivery zone + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be removed + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> RemoveDeliveryZoneAsyncWithHttpInfo (int? storeId, int? deliveryZoneId) { @@ -810,12 +810,12 @@ public async System.Threading.Tasks.Task> RemoveDeliveryZone } /// - /// Updates the existing delivery zone + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be updated - /// Delta of delivery zone parameters that need to be changed + /// + /// + /// /// RestApiResultDeliveryZone public RestApiResultDeliveryZone UpdateDeliveryZone (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone) { @@ -824,12 +824,12 @@ public RestApiResultDeliveryZone UpdateDeliveryZone (int? storeId, int? delivery } /// - /// Updates the existing delivery zone + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be updated - /// Delta of delivery zone parameters that need to be changed + /// + /// + /// /// ApiResponse of RestApiResultDeliveryZone public ApiResponse< RestApiResultDeliveryZone > UpdateDeliveryZoneWithHttpInfo (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone) { @@ -909,12 +909,12 @@ public ApiResponse< RestApiResultDeliveryZone > UpdateDeliveryZoneWithHttpInfo ( } /// - /// Updates the existing delivery zone + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be updated - /// Delta of delivery zone parameters that need to be changed + /// + /// + /// /// Task of RestApiResultDeliveryZone public async System.Threading.Tasks.Task UpdateDeliveryZoneAsync (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone) { @@ -924,12 +924,12 @@ public async System.Threading.Tasks.Task UpdateDelive } /// - /// Updates the existing delivery zone + /// /// /// Thrown when fails to make API call - /// Store Id to which the delivery zone belongs - /// Delivery zone id to be updated - /// Delta of delivery zone parameters that need to be changed + /// + /// + /// /// Task of ApiResponse (RestApiResultDeliveryZone) public async System.Threading.Tasks.Task> UpdateDeliveryZoneAsyncWithHttpInfo (int? storeId, int? deliveryZoneId, DeliveryZoneBase deliveryZone) { 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 index 7323afc9..1416f5f1 100644 --- a/src/Flipdish/Api/DriversApi.cs +++ b/src/Flipdish/Api/DriversApi.cs @@ -25,146 +25,146 @@ public interface IDriversApi : IApiAccessor { #region Synchronous Operations /// - /// Add driver token + /// /// /// /// /// /// Thrown when fails to make API call /// - /// - void AddDriverNotificationToken (UpdateDriverNotificationToken updateDriverToken); + /// Object + Object DriversAddDriverNotificationToken (UpdateDriverNotificationToken updateDriverToken); /// - /// Add driver token + /// /// /// /// /// /// Thrown when fails to make API call /// - /// ApiResponse of Object(void) - ApiResponse AddDriverNotificationTokenWithHttpInfo (UpdateDriverNotificationToken updateDriverToken); + /// ApiResponse of Object + ApiResponse DriversAddDriverNotificationTokenWithHttpInfo (UpdateDriverNotificationToken updateDriverToken); /// - /// Delete driver profile image + /// /// /// /// /// /// Thrown when fails to make API call - /// - void DeleteDriverProfileImage (); + /// Object + Object DriversDeleteDriverProfileImage (); /// - /// Delete driver profile image + /// /// /// /// /// /// Thrown when fails to make API call - /// ApiResponse of Object(void) - ApiResponse DeleteDriverProfileImageWithHttpInfo (); + /// ApiResponse of Object + ApiResponse DriversDeleteDriverProfileImageWithHttpInfo (); /// - /// [PRIVATE] Login with phone number and pin + /// /// /// /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// - void DriverLogin (DriverLoginModel driverLoginModel); + /// + /// Object + Object DriversDriverLogin (DriverLoginModel driverLoginModel); /// - /// [PRIVATE] Login with phone number and pin + /// /// /// /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// ApiResponse of Object(void) - ApiResponse DriverLoginWithHttpInfo (DriverLoginModel driverLoginModel); + /// + /// ApiResponse of Object + ApiResponse DriversDriverLoginWithHttpInfo (DriverLoginModel driverLoginModel); /// - /// [PRIVATE] Request an SMS to be sent to the driver with their login code + /// /// /// /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// - void DriverRequestLoginCodeSms (DriverRequestLoginPinModel driverRequestLoginPinModel); + /// + /// Object + Object DriversDriverRequestLoginCodeSms (DriverRequestLoginPinModel driverRequestLoginPinModel); /// - /// [PRIVATE] Request an SMS to be sent to the driver with their login code + /// /// /// /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// ApiResponse of Object(void) - ApiResponse DriverRequestLoginCodeSmsWithHttpInfo (DriverRequestLoginPinModel driverRequestLoginPinModel); + /// + /// ApiResponse of Object + ApiResponse DriversDriverRequestLoginCodeSmsWithHttpInfo (DriverRequestLoginPinModel driverRequestLoginPinModel); /// - /// Get driver profile + /// /// /// /// /// /// Thrown when fails to make API call - /// RestApiResultDriver - RestApiResultDriver GetDriverProfile (); + /// Object + Object DriversGetDriverProfile (); /// - /// Get driver profile + /// /// /// /// /// /// Thrown when fails to make API call - /// ApiResponse of RestApiResultDriver - ApiResponse GetDriverProfileWithHttpInfo (); + /// ApiResponse of Object + ApiResponse DriversGetDriverProfileWithHttpInfo (); /// - /// Get stores for driver + /// /// /// /// /// /// Thrown when fails to make API call - /// RestApiArrayResultDriverStore - RestApiArrayResultDriverStore GetStoresForDriver (); + /// Object + Object DriversGetStoresForDriver (); /// - /// Get stores for driver + /// /// /// /// /// /// Thrown when fails to make API call - /// ApiResponse of RestApiArrayResultDriverStore - ApiResponse GetStoresForDriverWithHttpInfo (); + /// ApiResponse of Object + ApiResponse DriversGetStoresForDriverWithHttpInfo (); /// - /// Delete driver token + /// /// /// /// /// /// Thrown when fails to make API call /// - /// - void RemoveDriverNotificationToken (UpdateDriverNotificationToken removeDriverToken); + /// Object + Object DriversRemoveDriverNotificationToken (UpdateDriverNotificationToken removeDriverToken); /// - /// Delete driver token + /// /// /// /// /// /// Thrown when fails to make API call /// - /// ApiResponse of Object(void) - ApiResponse RemoveDriverNotificationTokenWithHttpInfo (UpdateDriverNotificationToken removeDriverToken); + /// ApiResponse of Object + ApiResponse DriversRemoveDriverNotificationTokenWithHttpInfo (UpdateDriverNotificationToken removeDriverToken); /// /// /// @@ -174,8 +174,8 @@ public interface IDriversApi : IApiAccessor /// Thrown when fails to make API call /// /// - /// - void SetDriverPresenceForStore (int? storeId, string presence); + /// Object + Object DriversSetDriverPresenceForStore (int? storeId, string presence); /// /// @@ -186,214 +186,214 @@ public interface IDriversApi : IApiAccessor /// Thrown when fails to make API call /// /// - /// ApiResponse of Object(void) - ApiResponse SetDriverPresenceForStoreWithHttpInfo (int? storeId, string presence); + /// ApiResponse of Object + ApiResponse DriversSetDriverPresenceForStoreWithHttpInfo (int? storeId, string presence); /// - /// Set driver profile image and returns it's url + /// /// /// /// /// /// Thrown when fails to make API call - /// RestApiStringResult - RestApiStringResult SetDriverProfileImage (); + /// Object + Object DriversSetDriverProfileImage (); /// - /// Set driver profile image and returns it's url + /// /// /// /// /// /// Thrown when fails to make API call - /// ApiResponse of RestApiStringResult - ApiResponse SetDriverProfileImageWithHttpInfo (); + /// ApiResponse of Object + ApiResponse DriversSetDriverProfileImageWithHttpInfo (); /// - /// Change delivery tracking status and return the updated status. + /// /// /// - /// ... + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// - /// RestApiStringResult - RestApiStringResult UpdateDeliveryTrackingStatus (int? orderId, string deliveryTrackingStatus); + /// Object + Object DriversUpdateDeliveryTrackingStatus (int? orderId, string deliveryTrackingStatus); /// - /// Change delivery tracking status and return the updated status. + /// /// /// - /// ... + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// - /// ApiResponse of RestApiStringResult - ApiResponse UpdateDeliveryTrackingStatusWithHttpInfo (int? orderId, string deliveryTrackingStatus); + /// ApiResponse of Object + ApiResponse DriversUpdateDeliveryTrackingStatusWithHttpInfo (int? orderId, string deliveryTrackingStatus); /// - /// Update driver profile + /// /// /// /// /// /// Thrown when fails to make API call - /// Update the driver profile (i.e Name) - /// - void UpdateDriverProfile (UpdateDriverProfileModel updateDriverProfile); + /// + /// Object + Object DriversUpdateDriverProfile (UpdateDriverProfileModel updateDriverProfile); /// - /// Update driver profile + /// /// /// /// /// /// Thrown when fails to make API call - /// Update the driver profile (i.e Name) - /// ApiResponse of Object(void) - ApiResponse UpdateDriverProfileWithHttpInfo (UpdateDriverProfileModel updateDriverProfile); + /// + /// ApiResponse of Object + ApiResponse DriversUpdateDriverProfileWithHttpInfo (UpdateDriverProfileModel updateDriverProfile); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Add driver token + /// /// /// /// /// /// Thrown when fails to make API call /// - /// Task of void - System.Threading.Tasks.Task AddDriverNotificationTokenAsync (UpdateDriverNotificationToken updateDriverToken); + /// Task of Object + System.Threading.Tasks.Task DriversAddDriverNotificationTokenAsync (UpdateDriverNotificationToken updateDriverToken); /// - /// Add driver token + /// /// /// /// /// /// Thrown when fails to make API call /// - /// Task of ApiResponse - System.Threading.Tasks.Task> AddDriverNotificationTokenAsyncWithHttpInfo (UpdateDriverNotificationToken updateDriverToken); + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversAddDriverNotificationTokenAsyncWithHttpInfo (UpdateDriverNotificationToken updateDriverToken); /// - /// Delete driver profile image + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of void - System.Threading.Tasks.Task DeleteDriverProfileImageAsync (); + /// Task of Object + System.Threading.Tasks.Task DriversDeleteDriverProfileImageAsync (); /// - /// Delete driver profile image + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteDriverProfileImageAsyncWithHttpInfo (); + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversDeleteDriverProfileImageAsyncWithHttpInfo (); /// - /// [PRIVATE] Login with phone number and pin + /// /// /// /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// Task of void - System.Threading.Tasks.Task DriverLoginAsync (DriverLoginModel driverLoginModel); + /// + /// Task of Object + System.Threading.Tasks.Task DriversDriverLoginAsync (DriverLoginModel driverLoginModel); /// - /// [PRIVATE] Login with phone number and pin + /// /// /// /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// Task of ApiResponse - System.Threading.Tasks.Task> DriverLoginAsyncWithHttpInfo (DriverLoginModel driverLoginModel); + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversDriverLoginAsyncWithHttpInfo (DriverLoginModel driverLoginModel); /// - /// [PRIVATE] Request an SMS to be sent to the driver with their login code + /// /// /// /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// Task of void - System.Threading.Tasks.Task DriverRequestLoginCodeSmsAsync (DriverRequestLoginPinModel driverRequestLoginPinModel); + /// + /// Task of Object + System.Threading.Tasks.Task DriversDriverRequestLoginCodeSmsAsync (DriverRequestLoginPinModel driverRequestLoginPinModel); /// - /// [PRIVATE] Request an SMS to be sent to the driver with their login code + /// /// /// /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// Task of ApiResponse - System.Threading.Tasks.Task> DriverRequestLoginCodeSmsAsyncWithHttpInfo (DriverRequestLoginPinModel driverRequestLoginPinModel); + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversDriverRequestLoginCodeSmsAsyncWithHttpInfo (DriverRequestLoginPinModel driverRequestLoginPinModel); /// - /// Get driver profile + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of RestApiResultDriver - System.Threading.Tasks.Task GetDriverProfileAsync (); + /// Task of Object + System.Threading.Tasks.Task DriversGetDriverProfileAsync (); /// - /// Get driver profile + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of ApiResponse (RestApiResultDriver) - System.Threading.Tasks.Task> GetDriverProfileAsyncWithHttpInfo (); + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversGetDriverProfileAsyncWithHttpInfo (); /// - /// Get stores for driver + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of RestApiArrayResultDriverStore - System.Threading.Tasks.Task GetStoresForDriverAsync (); + /// Task of Object + System.Threading.Tasks.Task DriversGetStoresForDriverAsync (); /// - /// Get stores for driver + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of ApiResponse (RestApiArrayResultDriverStore) - System.Threading.Tasks.Task> GetStoresForDriverAsyncWithHttpInfo (); + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversGetStoresForDriverAsyncWithHttpInfo (); /// - /// Delete driver token + /// /// /// /// /// /// Thrown when fails to make API call /// - /// Task of void - System.Threading.Tasks.Task RemoveDriverNotificationTokenAsync (UpdateDriverNotificationToken removeDriverToken); + /// Task of Object + System.Threading.Tasks.Task DriversRemoveDriverNotificationTokenAsync (UpdateDriverNotificationToken removeDriverToken); /// - /// Delete driver token + /// /// /// /// /// /// Thrown when fails to make API call /// - /// Task of ApiResponse - System.Threading.Tasks.Task> RemoveDriverNotificationTokenAsyncWithHttpInfo (UpdateDriverNotificationToken removeDriverToken); + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversRemoveDriverNotificationTokenAsyncWithHttpInfo (UpdateDriverNotificationToken removeDriverToken); /// /// /// @@ -403,8 +403,8 @@ public interface IDriversApi : IApiAccessor /// Thrown when fails to make API call /// /// - /// Task of void - System.Threading.Tasks.Task SetDriverPresenceForStoreAsync (int? storeId, string presence); + /// Task of Object + System.Threading.Tasks.Task DriversSetDriverPresenceForStoreAsync (int? storeId, string presence); /// /// @@ -415,71 +415,71 @@ public interface IDriversApi : IApiAccessor /// Thrown when fails to make API call /// /// - /// Task of ApiResponse - System.Threading.Tasks.Task> SetDriverPresenceForStoreAsyncWithHttpInfo (int? storeId, string presence); + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversSetDriverPresenceForStoreAsyncWithHttpInfo (int? storeId, string presence); /// - /// Set driver profile image and returns it's url + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of RestApiStringResult - System.Threading.Tasks.Task SetDriverProfileImageAsync (); + /// Task of Object + System.Threading.Tasks.Task DriversSetDriverProfileImageAsync (); /// - /// Set driver profile image and returns it's url + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of ApiResponse (RestApiStringResult) - System.Threading.Tasks.Task> SetDriverProfileImageAsyncWithHttpInfo (); + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversSetDriverProfileImageAsyncWithHttpInfo (); /// - /// Change delivery tracking status and return the updated status. + /// /// /// - /// ... + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// - /// Task of RestApiStringResult - System.Threading.Tasks.Task UpdateDeliveryTrackingStatusAsync (int? orderId, string deliveryTrackingStatus); + /// Task of Object + System.Threading.Tasks.Task DriversUpdateDeliveryTrackingStatusAsync (int? orderId, string deliveryTrackingStatus); /// - /// Change delivery tracking status and return the updated status. + /// /// /// - /// ... + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// - /// Task of ApiResponse (RestApiStringResult) - System.Threading.Tasks.Task> UpdateDeliveryTrackingStatusAsyncWithHttpInfo (int? orderId, string deliveryTrackingStatus); + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversUpdateDeliveryTrackingStatusAsyncWithHttpInfo (int? orderId, string deliveryTrackingStatus); /// - /// Update driver profile + /// /// /// /// /// /// Thrown when fails to make API call - /// Update the driver profile (i.e Name) - /// Task of void - System.Threading.Tasks.Task UpdateDriverProfileAsync (UpdateDriverProfileModel updateDriverProfile); + /// + /// Task of Object + System.Threading.Tasks.Task DriversUpdateDriverProfileAsync (UpdateDriverProfileModel updateDriverProfile); /// - /// Update driver profile + /// /// /// /// /// /// Thrown when fails to make API call - /// Update the driver profile (i.e Name) - /// Task of ApiResponse - System.Threading.Tasks.Task> UpdateDriverProfileAsyncWithHttpInfo (UpdateDriverProfileModel updateDriverProfile); + /// + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DriversUpdateDriverProfileAsyncWithHttpInfo (UpdateDriverProfileModel updateDriverProfile); #endregion Asynchronous Operations } @@ -581,27 +581,28 @@ public void AddDefaultHeader(string key, string value) } /// - /// Add driver token + /// /// /// Thrown when fails to make API call /// - /// - public void AddDriverNotificationToken (UpdateDriverNotificationToken updateDriverToken) + /// Object + public Object DriversAddDriverNotificationToken (UpdateDriverNotificationToken updateDriverToken) { - AddDriverNotificationTokenWithHttpInfo(updateDriverToken); + ApiResponse localVarResponse = DriversAddDriverNotificationTokenWithHttpInfo(updateDriverToken); + return localVarResponse.Data; } /// - /// Add driver token + /// /// /// Thrown when fails to make API call /// - /// ApiResponse of Object(void) - public ApiResponse AddDriverNotificationTokenWithHttpInfo (UpdateDriverNotificationToken updateDriverToken) + /// 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->AddDriverNotificationToken"); + throw new ApiException(400, "Missing required parameter 'updateDriverToken' when calling DriversApi->DriversAddDriverNotificationToken"); var localVarPath = "./api/v1.0/drivers/token"; var localVarPathParams = new Dictionary(); @@ -657,38 +658,39 @@ public ApiResponse AddDriverNotificationTokenWithHttpInfo (UpdateDriverN if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("AddDriverNotificationToken", localVarResponse); + Exception exception = ExceptionFactory("DriversAddDriverNotificationToken", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Add driver token + /// /// /// Thrown when fails to make API call /// - /// Task of void - public async System.Threading.Tasks.Task AddDriverNotificationTokenAsync (UpdateDriverNotificationToken updateDriverToken) + /// Task of Object + public async System.Threading.Tasks.Task DriversAddDriverNotificationTokenAsync (UpdateDriverNotificationToken updateDriverToken) { - await AddDriverNotificationTokenAsyncWithHttpInfo(updateDriverToken); + ApiResponse localVarResponse = await DriversAddDriverNotificationTokenAsyncWithHttpInfo(updateDriverToken); + return localVarResponse.Data; } /// - /// Add driver token + /// /// /// Thrown when fails to make API call /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddDriverNotificationTokenAsyncWithHttpInfo (UpdateDriverNotificationToken updateDriverToken) + /// 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->AddDriverNotificationToken"); + throw new ApiException(400, "Missing required parameter 'updateDriverToken' when calling DriversApi->DriversAddDriverNotificationToken"); var localVarPath = "./api/v1.0/drivers/token"; var localVarPathParams = new Dictionary(); @@ -744,31 +746,32 @@ public async System.Threading.Tasks.Task> AddDriverNotificat if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("AddDriverNotificationToken", localVarResponse); + Exception exception = ExceptionFactory("DriversAddDriverNotificationToken", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Delete driver profile image + /// /// /// Thrown when fails to make API call - /// - public void DeleteDriverProfileImage () + /// Object + public Object DriversDeleteDriverProfileImage () { - DeleteDriverProfileImageWithHttpInfo(); + ApiResponse localVarResponse = DriversDeleteDriverProfileImageWithHttpInfo(); + return localVarResponse.Data; } /// - /// Delete driver profile image + /// /// /// Thrown when fails to make API call - /// ApiResponse of Object(void) - public ApiResponse DeleteDriverProfileImageWithHttpInfo () + /// ApiResponse of Object + public ApiResponse< Object > DriversDeleteDriverProfileImageWithHttpInfo () { var localVarPath = "./api/v1.0/drivers/profile/image"; @@ -812,32 +815,33 @@ public ApiResponse DeleteDriverProfileImageWithHttpInfo () if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("DeleteDriverProfileImage", localVarResponse); + Exception exception = ExceptionFactory("DriversDeleteDriverProfileImage", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Delete driver profile image + /// /// /// Thrown when fails to make API call - /// Task of void - public async System.Threading.Tasks.Task DeleteDriverProfileImageAsync () + /// Task of Object + public async System.Threading.Tasks.Task DriversDeleteDriverProfileImageAsync () { - await DeleteDriverProfileImageAsyncWithHttpInfo(); + ApiResponse localVarResponse = await DriversDeleteDriverProfileImageAsyncWithHttpInfo(); + return localVarResponse.Data; } /// - /// Delete driver profile image + /// /// /// Thrown when fails to make API call - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteDriverProfileImageAsyncWithHttpInfo () + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversDeleteDriverProfileImageAsyncWithHttpInfo () { var localVarPath = "./api/v1.0/drivers/profile/image"; @@ -881,37 +885,38 @@ public async System.Threading.Tasks.Task> DeleteDriverProfil if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("DeleteDriverProfileImage", localVarResponse); + Exception exception = ExceptionFactory("DriversDeleteDriverProfileImage", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// [PRIVATE] Login with phone number and pin + /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// - public void DriverLogin (DriverLoginModel driverLoginModel) + /// + /// Object + public Object DriversDriverLogin (DriverLoginModel driverLoginModel) { - DriverLoginWithHttpInfo(driverLoginModel); + ApiResponse localVarResponse = DriversDriverLoginWithHttpInfo(driverLoginModel); + return localVarResponse.Data; } /// - /// [PRIVATE] Login with phone number and pin + /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// ApiResponse of Object(void) - public ApiResponse DriverLoginWithHttpInfo (DriverLoginModel driverLoginModel) + /// + /// 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->DriverLogin"); + throw new ApiException(400, "Missing required parameter 'driverLoginModel' when calling DriversApi->DriversDriverLogin"); var localVarPath = "./api/v1.0/drivers/login"; var localVarPathParams = new Dictionary(); @@ -967,38 +972,39 @@ public ApiResponse DriverLoginWithHttpInfo (DriverLoginModel driverLogin if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("DriverLogin", localVarResponse); + Exception exception = ExceptionFactory("DriversDriverLogin", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// [PRIVATE] Login with phone number and pin + /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// Task of void - public async System.Threading.Tasks.Task DriverLoginAsync (DriverLoginModel driverLoginModel) + /// + /// Task of Object + public async System.Threading.Tasks.Task DriversDriverLoginAsync (DriverLoginModel driverLoginModel) { - await DriverLoginAsyncWithHttpInfo(driverLoginModel); + ApiResponse localVarResponse = await DriversDriverLoginAsyncWithHttpInfo(driverLoginModel); + return localVarResponse.Data; } /// - /// [PRIVATE] Login with phone number and pin + /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DriverLoginAsyncWithHttpInfo (DriverLoginModel driverLoginModel) + /// + /// 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->DriverLogin"); + throw new ApiException(400, "Missing required parameter 'driverLoginModel' when calling DriversApi->DriversDriverLogin"); var localVarPath = "./api/v1.0/drivers/login"; var localVarPathParams = new Dictionary(); @@ -1054,37 +1060,38 @@ public async System.Threading.Tasks.Task> DriverLoginAsyncWi if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("DriverLogin", localVarResponse); + Exception exception = ExceptionFactory("DriversDriverLogin", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// [PRIVATE] Request an SMS to be sent to the driver with their login code + /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// - public void DriverRequestLoginCodeSms (DriverRequestLoginPinModel driverRequestLoginPinModel) + /// + /// Object + public Object DriversDriverRequestLoginCodeSms (DriverRequestLoginPinModel driverRequestLoginPinModel) { - DriverRequestLoginCodeSmsWithHttpInfo(driverRequestLoginPinModel); + ApiResponse localVarResponse = DriversDriverRequestLoginCodeSmsWithHttpInfo(driverRequestLoginPinModel); + return localVarResponse.Data; } /// - /// [PRIVATE] Request an SMS to be sent to the driver with their login code + /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// ApiResponse of Object(void) - public ApiResponse DriverRequestLoginCodeSmsWithHttpInfo (DriverRequestLoginPinModel driverRequestLoginPinModel) + /// + /// 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->DriverRequestLoginCodeSms"); + throw new ApiException(400, "Missing required parameter 'driverRequestLoginPinModel' when calling DriversApi->DriversDriverRequestLoginCodeSms"); var localVarPath = "./api/v1.0/drivers/pin"; var localVarPathParams = new Dictionary(); @@ -1140,38 +1147,39 @@ public ApiResponse DriverRequestLoginCodeSmsWithHttpInfo (DriverRequestL if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("DriverRequestLoginCodeSms", localVarResponse); + Exception exception = ExceptionFactory("DriversDriverRequestLoginCodeSms", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// [PRIVATE] Request an SMS to be sent to the driver with their login code + /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// Task of void - public async System.Threading.Tasks.Task DriverRequestLoginCodeSmsAsync (DriverRequestLoginPinModel driverRequestLoginPinModel) + /// + /// Task of Object + public async System.Threading.Tasks.Task DriversDriverRequestLoginCodeSmsAsync (DriverRequestLoginPinModel driverRequestLoginPinModel) { - await DriverRequestLoginCodeSmsAsyncWithHttpInfo(driverRequestLoginPinModel); + ApiResponse localVarResponse = await DriversDriverRequestLoginCodeSmsAsyncWithHttpInfo(driverRequestLoginPinModel); + return localVarResponse.Data; } /// - /// [PRIVATE] Request an SMS to be sent to the driver with their login code + /// /// /// Thrown when fails to make API call - /// Driver request login code model - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DriverRequestLoginCodeSmsAsyncWithHttpInfo (DriverRequestLoginPinModel driverRequestLoginPinModel) + /// + /// 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->DriverRequestLoginCodeSms"); + throw new ApiException(400, "Missing required parameter 'driverRequestLoginPinModel' when calling DriversApi->DriversDriverRequestLoginCodeSms"); var localVarPath = "./api/v1.0/drivers/pin"; var localVarPathParams = new Dictionary(); @@ -1227,32 +1235,32 @@ public async System.Threading.Tasks.Task> DriverRequestLogin if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("DriverRequestLoginCodeSms", localVarResponse); + Exception exception = ExceptionFactory("DriversDriverRequestLoginCodeSms", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Get driver profile + /// /// /// Thrown when fails to make API call - /// RestApiResultDriver - public RestApiResultDriver GetDriverProfile () + /// Object + public Object DriversGetDriverProfile () { - ApiResponse localVarResponse = GetDriverProfileWithHttpInfo(); + ApiResponse localVarResponse = DriversGetDriverProfileWithHttpInfo(); return localVarResponse.Data; } /// - /// Get driver profile + /// /// /// Thrown when fails to make API call - /// ApiResponse of RestApiResultDriver - public ApiResponse< RestApiResultDriver > GetDriverProfileWithHttpInfo () + /// ApiResponse of Object + public ApiResponse< Object > DriversGetDriverProfileWithHttpInfo () { var localVarPath = "./api/v1.0/drivers/profile"; @@ -1296,33 +1304,33 @@ public ApiResponse< RestApiResultDriver > GetDriverProfileWithHttpInfo () if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetDriverProfile", localVarResponse); + Exception exception = ExceptionFactory("DriversGetDriverProfile", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultDriver) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultDriver))); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Get driver profile + /// /// /// Thrown when fails to make API call - /// Task of RestApiResultDriver - public async System.Threading.Tasks.Task GetDriverProfileAsync () + /// Task of Object + public async System.Threading.Tasks.Task DriversGetDriverProfileAsync () { - ApiResponse localVarResponse = await GetDriverProfileAsyncWithHttpInfo(); + ApiResponse localVarResponse = await DriversGetDriverProfileAsyncWithHttpInfo(); return localVarResponse.Data; } /// - /// Get driver profile + /// /// /// Thrown when fails to make API call - /// Task of ApiResponse (RestApiResultDriver) - public async System.Threading.Tasks.Task> GetDriverProfileAsyncWithHttpInfo () + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversGetDriverProfileAsyncWithHttpInfo () { var localVarPath = "./api/v1.0/drivers/profile"; @@ -1366,32 +1374,32 @@ public async System.Threading.Tasks.Task> GetDr if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetDriverProfile", localVarResponse); + Exception exception = ExceptionFactory("DriversGetDriverProfile", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultDriver) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultDriver))); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Get stores for driver + /// /// /// Thrown when fails to make API call - /// RestApiArrayResultDriverStore - public RestApiArrayResultDriverStore GetStoresForDriver () + /// Object + public Object DriversGetStoresForDriver () { - ApiResponse localVarResponse = GetStoresForDriverWithHttpInfo(); + ApiResponse localVarResponse = DriversGetStoresForDriverWithHttpInfo(); return localVarResponse.Data; } /// - /// Get stores for driver + /// /// /// Thrown when fails to make API call - /// ApiResponse of RestApiArrayResultDriverStore - public ApiResponse< RestApiArrayResultDriverStore > GetStoresForDriverWithHttpInfo () + /// ApiResponse of Object + public ApiResponse< Object > DriversGetStoresForDriverWithHttpInfo () { var localVarPath = "./api/v1.0/drivers/assignedstores"; @@ -1435,33 +1443,33 @@ public ApiResponse< RestApiArrayResultDriverStore > GetStoresForDriverWithHttpIn if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetStoresForDriver", localVarResponse); + Exception exception = ExceptionFactory("DriversGetStoresForDriver", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultDriverStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultDriverStore))); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Get stores for driver + /// /// /// Thrown when fails to make API call - /// Task of RestApiArrayResultDriverStore - public async System.Threading.Tasks.Task GetStoresForDriverAsync () + /// Task of Object + public async System.Threading.Tasks.Task DriversGetStoresForDriverAsync () { - ApiResponse localVarResponse = await GetStoresForDriverAsyncWithHttpInfo(); + ApiResponse localVarResponse = await DriversGetStoresForDriverAsyncWithHttpInfo(); return localVarResponse.Data; } /// - /// Get stores for driver + /// /// /// Thrown when fails to make API call - /// Task of ApiResponse (RestApiArrayResultDriverStore) - public async System.Threading.Tasks.Task> GetStoresForDriverAsyncWithHttpInfo () + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversGetStoresForDriverAsyncWithHttpInfo () { var localVarPath = "./api/v1.0/drivers/assignedstores"; @@ -1505,37 +1513,38 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultDriverStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultDriverStore))); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Delete driver token + /// /// /// Thrown when fails to make API call /// - /// - public void RemoveDriverNotificationToken (UpdateDriverNotificationToken removeDriverToken) + /// Object + public Object DriversRemoveDriverNotificationToken (UpdateDriverNotificationToken removeDriverToken) { - RemoveDriverNotificationTokenWithHttpInfo(removeDriverToken); + ApiResponse localVarResponse = DriversRemoveDriverNotificationTokenWithHttpInfo(removeDriverToken); + return localVarResponse.Data; } /// - /// Delete driver token + /// /// /// Thrown when fails to make API call /// - /// ApiResponse of Object(void) - public ApiResponse RemoveDriverNotificationTokenWithHttpInfo (UpdateDriverNotificationToken removeDriverToken) + /// 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->RemoveDriverNotificationToken"); + throw new ApiException(400, "Missing required parameter 'removeDriverToken' when calling DriversApi->DriversRemoveDriverNotificationToken"); var localVarPath = "./api/v1.0/drivers/token"; var localVarPathParams = new Dictionary(); @@ -1591,38 +1600,39 @@ public ApiResponse RemoveDriverNotificationTokenWithHttpInfo (UpdateDriv if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("RemoveDriverNotificationToken", localVarResponse); + Exception exception = ExceptionFactory("DriversRemoveDriverNotificationToken", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Delete driver token + /// /// /// Thrown when fails to make API call /// - /// Task of void - public async System.Threading.Tasks.Task RemoveDriverNotificationTokenAsync (UpdateDriverNotificationToken removeDriverToken) + /// Task of Object + public async System.Threading.Tasks.Task DriversRemoveDriverNotificationTokenAsync (UpdateDriverNotificationToken removeDriverToken) { - await RemoveDriverNotificationTokenAsyncWithHttpInfo(removeDriverToken); + ApiResponse localVarResponse = await DriversRemoveDriverNotificationTokenAsyncWithHttpInfo(removeDriverToken); + return localVarResponse.Data; } /// - /// Delete driver token + /// /// /// Thrown when fails to make API call /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> RemoveDriverNotificationTokenAsyncWithHttpInfo (UpdateDriverNotificationToken removeDriverToken) + /// 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->RemoveDriverNotificationToken"); + throw new ApiException(400, "Missing required parameter 'removeDriverToken' when calling DriversApi->DriversRemoveDriverNotificationToken"); var localVarPath = "./api/v1.0/drivers/token"; var localVarPathParams = new Dictionary(); @@ -1678,13 +1688,13 @@ public async System.Threading.Tasks.Task> RemoveDriverNotifi if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("RemoveDriverNotificationToken", localVarResponse); + Exception exception = ExceptionFactory("DriversRemoveDriverNotificationToken", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// @@ -1693,10 +1703,11 @@ public async System.Threading.Tasks.Task> RemoveDriverNotifi /// Thrown when fails to make API call /// /// - /// - public void SetDriverPresenceForStore (int? storeId, string presence) + /// Object + public Object DriversSetDriverPresenceForStore (int? storeId, string presence) { - SetDriverPresenceForStoreWithHttpInfo(storeId, presence); + ApiResponse localVarResponse = DriversSetDriverPresenceForStoreWithHttpInfo(storeId, presence); + return localVarResponse.Data; } /// @@ -1705,15 +1716,15 @@ public void SetDriverPresenceForStore (int? storeId, string presence) /// Thrown when fails to make API call /// /// - /// ApiResponse of Object(void) - public ApiResponse SetDriverPresenceForStoreWithHttpInfo (int? storeId, string presence) + /// 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->SetDriverPresenceForStore"); + 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->SetDriverPresenceForStore"); + 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(); @@ -1758,13 +1769,13 @@ public ApiResponse SetDriverPresenceForStoreWithHttpInfo (int? storeId, if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetDriverPresenceForStore", localVarResponse); + Exception exception = ExceptionFactory("DriversSetDriverPresenceForStore", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// @@ -1773,10 +1784,11 @@ public ApiResponse SetDriverPresenceForStoreWithHttpInfo (int? storeId, /// Thrown when fails to make API call /// /// - /// Task of void - public async System.Threading.Tasks.Task SetDriverPresenceForStoreAsync (int? storeId, string presence) + /// Task of Object + public async System.Threading.Tasks.Task DriversSetDriverPresenceForStoreAsync (int? storeId, string presence) { - await SetDriverPresenceForStoreAsyncWithHttpInfo(storeId, presence); + ApiResponse localVarResponse = await DriversSetDriverPresenceForStoreAsyncWithHttpInfo(storeId, presence); + return localVarResponse.Data; } @@ -1786,15 +1798,15 @@ public async System.Threading.Tasks.Task SetDriverPresenceForStoreAsync (int? st /// Thrown when fails to make API call /// /// - /// Task of ApiResponse - public async System.Threading.Tasks.Task> SetDriverPresenceForStoreAsyncWithHttpInfo (int? storeId, string presence) + /// 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->SetDriverPresenceForStore"); + 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->SetDriverPresenceForStore"); + 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(); @@ -1839,32 +1851,32 @@ public async System.Threading.Tasks.Task> SetDriverPresenceF if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetDriverPresenceForStore", localVarResponse); + Exception exception = ExceptionFactory("DriversSetDriverPresenceForStore", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Set driver profile image and returns it's url + /// /// /// Thrown when fails to make API call - /// RestApiStringResult - public RestApiStringResult SetDriverProfileImage () + /// Object + public Object DriversSetDriverProfileImage () { - ApiResponse localVarResponse = SetDriverProfileImageWithHttpInfo(); + ApiResponse localVarResponse = DriversSetDriverProfileImageWithHttpInfo(); return localVarResponse.Data; } /// - /// Set driver profile image and returns it's url + /// /// /// Thrown when fails to make API call - /// ApiResponse of RestApiStringResult - public ApiResponse< RestApiStringResult > SetDriverProfileImageWithHttpInfo () + /// ApiResponse of Object + public ApiResponse< Object > DriversSetDriverProfileImageWithHttpInfo () { var localVarPath = "./api/v1.0/drivers/profile/image"; @@ -1908,33 +1920,33 @@ public ApiResponse< RestApiStringResult > SetDriverProfileImageWithHttpInfo () if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetDriverProfileImage", localVarResponse); + Exception exception = ExceptionFactory("DriversSetDriverProfileImage", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Set driver profile image and returns it's url + /// /// /// Thrown when fails to make API call - /// Task of RestApiStringResult - public async System.Threading.Tasks.Task SetDriverProfileImageAsync () + /// Task of Object + public async System.Threading.Tasks.Task DriversSetDriverProfileImageAsync () { - ApiResponse localVarResponse = await SetDriverProfileImageAsyncWithHttpInfo(); + ApiResponse localVarResponse = await DriversSetDriverProfileImageAsyncWithHttpInfo(); return localVarResponse.Data; } /// - /// Set driver profile image and returns it's url + /// /// /// Thrown when fails to make API call - /// Task of ApiResponse (RestApiStringResult) - public async System.Threading.Tasks.Task> SetDriverProfileImageAsyncWithHttpInfo () + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DriversSetDriverProfileImageAsyncWithHttpInfo () { var localVarPath = "./api/v1.0/drivers/profile/image"; @@ -1978,43 +1990,43 @@ public async System.Threading.Tasks.Task> SetDr if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetDriverProfileImage", localVarResponse); + Exception exception = ExceptionFactory("DriversSetDriverProfileImage", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Change delivery tracking status and return the updated status. ... + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// - /// RestApiStringResult - public RestApiStringResult UpdateDeliveryTrackingStatus (int? orderId, string deliveryTrackingStatus) + /// Object + public Object DriversUpdateDeliveryTrackingStatus (int? orderId, string deliveryTrackingStatus) { - ApiResponse localVarResponse = UpdateDeliveryTrackingStatusWithHttpInfo(orderId, deliveryTrackingStatus); + ApiResponse localVarResponse = DriversUpdateDeliveryTrackingStatusWithHttpInfo(orderId, deliveryTrackingStatus); return localVarResponse.Data; } /// - /// Change delivery tracking status and return the updated status. ... + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// - /// ApiResponse of RestApiStringResult - public ApiResponse< RestApiStringResult > UpdateDeliveryTrackingStatusWithHttpInfo (int? orderId, string deliveryTrackingStatus) + /// 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->UpdateDeliveryTrackingStatus"); + 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->UpdateDeliveryTrackingStatus"); + 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(); @@ -2059,44 +2071,44 @@ public ApiResponse< RestApiStringResult > UpdateDeliveryTrackingStatusWithHttpIn if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("UpdateDeliveryTrackingStatus", localVarResponse); + Exception exception = ExceptionFactory("DriversUpdateDeliveryTrackingStatus", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Change delivery tracking status and return the updated status. ... + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// - /// Task of RestApiStringResult - public async System.Threading.Tasks.Task UpdateDeliveryTrackingStatusAsync (int? orderId, string deliveryTrackingStatus) + /// Task of Object + public async System.Threading.Tasks.Task DriversUpdateDeliveryTrackingStatusAsync (int? orderId, string deliveryTrackingStatus) { - ApiResponse localVarResponse = await UpdateDeliveryTrackingStatusAsyncWithHttpInfo(orderId, deliveryTrackingStatus); + ApiResponse localVarResponse = await DriversUpdateDeliveryTrackingStatusAsyncWithHttpInfo(orderId, deliveryTrackingStatus); return localVarResponse.Data; } /// - /// Change delivery tracking status and return the updated status. ... + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// - /// Task of ApiResponse (RestApiStringResult) - public async System.Threading.Tasks.Task> UpdateDeliveryTrackingStatusAsyncWithHttpInfo (int? orderId, string deliveryTrackingStatus) + /// 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->UpdateDeliveryTrackingStatus"); + 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->UpdateDeliveryTrackingStatus"); + 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(); @@ -2141,37 +2153,38 @@ public async System.Threading.Tasks.Task> Updat if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("UpdateDeliveryTrackingStatus", localVarResponse); + Exception exception = ExceptionFactory("DriversUpdateDeliveryTrackingStatus", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Update driver profile + /// /// /// Thrown when fails to make API call - /// Update the driver profile (i.e Name) - /// - public void UpdateDriverProfile (UpdateDriverProfileModel updateDriverProfile) + /// + /// Object + public Object DriversUpdateDriverProfile (UpdateDriverProfileModel updateDriverProfile) { - UpdateDriverProfileWithHttpInfo(updateDriverProfile); + ApiResponse localVarResponse = DriversUpdateDriverProfileWithHttpInfo(updateDriverProfile); + return localVarResponse.Data; } /// - /// Update driver profile + /// /// /// Thrown when fails to make API call - /// Update the driver profile (i.e Name) - /// ApiResponse of Object(void) - public ApiResponse UpdateDriverProfileWithHttpInfo (UpdateDriverProfileModel updateDriverProfile) + /// + /// 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->UpdateDriverProfile"); + throw new ApiException(400, "Missing required parameter 'updateDriverProfile' when calling DriversApi->DriversUpdateDriverProfile"); var localVarPath = "./api/v1.0/drivers/profile"; var localVarPathParams = new Dictionary(); @@ -2227,38 +2240,39 @@ public ApiResponse UpdateDriverProfileWithHttpInfo (UpdateDriverProfileM if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("UpdateDriverProfile", localVarResponse); + Exception exception = ExceptionFactory("DriversUpdateDriverProfile", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Update driver profile + /// /// /// Thrown when fails to make API call - /// Update the driver profile (i.e Name) - /// Task of void - public async System.Threading.Tasks.Task UpdateDriverProfileAsync (UpdateDriverProfileModel updateDriverProfile) + /// + /// Task of Object + public async System.Threading.Tasks.Task DriversUpdateDriverProfileAsync (UpdateDriverProfileModel updateDriverProfile) { - await UpdateDriverProfileAsyncWithHttpInfo(updateDriverProfile); + ApiResponse localVarResponse = await DriversUpdateDriverProfileAsyncWithHttpInfo(updateDriverProfile); + return localVarResponse.Data; } /// - /// Update driver profile + /// /// /// Thrown when fails to make API call - /// Update the driver profile (i.e Name) - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateDriverProfileAsyncWithHttpInfo (UpdateDriverProfileModel updateDriverProfile) + /// + /// 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->UpdateDriverProfile"); + throw new ApiException(400, "Missing required parameter 'updateDriverProfile' when calling DriversApi->DriversUpdateDriverProfile"); var localVarPath = "./api/v1.0/drivers/profile"; var localVarPathParams = new Dictionary(); @@ -2314,13 +2328,13 @@ public async System.Threading.Tasks.Task> UpdateDriverProfil if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("UpdateDriverProfile", localVarResponse); + Exception exception = ExceptionFactory("DriversUpdateDriverProfile", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (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 index 342b8708..ff7f7f1f 100644 --- a/src/Flipdish/Api/EventsApi.cs +++ b/src/Flipdish/Api/EventsApi.cs @@ -25,805 +25,937 @@ public interface IEventsApi : IApiAccessor { #region Synchronous Operations /// - /// Get customer events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Customer identifier identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get customer events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Customer identifier identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// White Label Id (optional) - /// Customer Id (optional) + /// + /// (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 (int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// White Label Id (optional) - /// Customer Id (optional) + /// + /// (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 (int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get event by Id For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Event identifier (Guid) + /// + /// /// EventSearchResult - EventSearchResult GetEventsById (Guid? eventId); + EventSearchResult GetEventsById (Guid? eventId, string appId); /// - /// Get event by Id For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Event identifier (Guid) + /// + /// /// ApiResponse of EventSearchResult - ApiResponse GetEventsByIdWithHttpInfo (Guid? eventId); + ApiResponse GetEventsByIdWithHttpInfo (Guid? eventId, string appId); /// - /// Get menu events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Menu Identifier + /// + /// /// 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 (int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get menu events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Menu Identifier + /// + /// /// 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 (int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get order events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Order identifier + /// + /// /// 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 (int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get order events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Order identifier + /// + /// /// 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 (int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get order events by customer For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Customer identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get order events by customer For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Customer identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get store events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the store + /// + /// /// 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 (int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get store events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the store + /// + /// /// 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 (int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get user events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// User identifier + /// + /// /// 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 (int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId2 = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get user events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// User identifier + /// + /// /// 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 (int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId2 = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// White Label Identifier + /// + /// /// 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 (int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// White Label Identifier + /// + /// /// 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 (int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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 /// - /// Get customer events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Customer identifier identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get customer events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Customer identifier identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// White Label Id (optional) - /// Customer Id (optional) + /// + /// (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 (int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// White Label Id (optional) - /// Customer Id (optional) + /// + /// (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 (int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get event by Id For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Event identifier (Guid) + /// + /// /// Task of EventSearchResult - System.Threading.Tasks.Task GetEventsByIdAsync (Guid? eventId); + System.Threading.Tasks.Task GetEventsByIdAsync (Guid? eventId, string appId); /// - /// Get event by Id For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Event identifier (Guid) + /// + /// /// Task of ApiResponse (EventSearchResult) - System.Threading.Tasks.Task> GetEventsByIdAsyncWithHttpInfo (Guid? eventId); + System.Threading.Tasks.Task> GetEventsByIdAsyncWithHttpInfo (Guid? eventId, string appId); /// - /// Get menu events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Menu Identifier + /// + /// /// 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 (int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get menu events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Menu Identifier + /// + /// /// 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 (int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get order events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Order identifier + /// + /// /// 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 (int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get order events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Order identifier + /// + /// /// 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 (int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get order events by customer For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Customer identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get order events by customer For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Customer identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get store events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the store + /// + /// /// 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 (int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get store events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the store + /// + /// /// 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 (int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get user events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// User identifier + /// + /// /// 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 (int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId2 = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get user events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// User identifier + /// + /// /// 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 (int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId2 = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// White Label Identifier + /// + /// /// 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 (int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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); /// - /// Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. + /// /// /// /// /// /// Thrown when fails to make API call - /// White Label Identifier + /// + /// /// 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 (int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null); + 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 } @@ -925,56 +1057,67 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get customer events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Customer identifier identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(customerId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + ApiResponse localVarResponse = GetCustomerEventsWithHttpInfo(appId, customerId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); return localVarResponse.Data; } /// - /// Get customer events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Customer identifier identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events/customer/{customerId}"; + var localVarPath = "./api/v1.0/{appId}/events/customer/{customerId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -998,6 +1141,7 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetCustomerEventsWithHt 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 @@ -1005,8 +1149,11 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetCustomerEventsWithHt 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 @@ -1039,57 +1186,68 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetCustomerEventsWithHt } /// - /// Get customer events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Customer identifier identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(customerId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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; } /// - /// Get customer events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Customer identifier identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events/customer/{customerId}"; + var localVarPath = "./api/v1.0/{appId}/events/customer/{customerId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1113,6 +1271,7 @@ public async System.Threading.Tasks.Task - /// Get events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// White Label Id (optional) - /// Customer Id (optional) + /// + /// (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 (int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(whiteLabelId, customerId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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; } /// - /// Get events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// White Label Id (optional) - /// Customer Id (optional) + /// + /// (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 (int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events"; + var localVarPath = "./api/v1.0/{appId}/events"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1226,6 +1399,7 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetEventsWithHttpInfo ( 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 @@ -1234,8 +1408,11 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetEventsWithHttpInfo ( 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 @@ -1268,56 +1445,67 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetEventsWithHttpInfo ( } /// - /// Get events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// White Label Id (optional) - /// Customer Id (optional) + /// + /// (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 (int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(whiteLabelId, customerId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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; } /// - /// Get events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// White Label Id (optional) - /// Customer Id (optional) + /// + /// (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 (int? whiteLabelId = null, int? customerId = null, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events"; + var localVarPath = "./api/v1.0/{appId}/events"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1341,6 +1529,7 @@ public async System.Threading.Tasks.Task - /// Get event by Id For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Event identifier (Guid) + /// + /// /// EventSearchResult - public EventSearchResult GetEventsById (Guid? eventId) + public EventSearchResult GetEventsById (Guid? eventId, string appId) { - ApiResponse localVarResponse = GetEventsByIdWithHttpInfo(eventId); + ApiResponse localVarResponse = GetEventsByIdWithHttpInfo(eventId, appId); return localVarResponse.Data; } /// - /// Get event by Id For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Event identifier (Guid) + /// + /// /// ApiResponse of EventSearchResult - public ApiResponse< EventSearchResult > GetEventsByIdWithHttpInfo (Guid? eventId) + 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/events/{eventId}"; + var localVarPath = "./api/v1.0/{appId}/events/{eventId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1431,6 +1628,7 @@ public ApiResponse< EventSearchResult > GetEventsByIdWithHttpInfo (Guid? eventId 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 @@ -1458,31 +1656,36 @@ public ApiResponse< EventSearchResult > GetEventsByIdWithHttpInfo (Guid? eventId } /// - /// Get event by Id For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Event identifier (Guid) + /// + /// /// Task of EventSearchResult - public async System.Threading.Tasks.Task GetEventsByIdAsync (Guid? eventId) + public async System.Threading.Tasks.Task GetEventsByIdAsync (Guid? eventId, string appId) { - ApiResponse localVarResponse = await GetEventsByIdAsyncWithHttpInfo(eventId); + ApiResponse localVarResponse = await GetEventsByIdAsyncWithHttpInfo(eventId, appId); return localVarResponse.Data; } /// - /// Get event by Id For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Event identifier (Guid) + /// + /// /// Task of ApiResponse (EventSearchResult) - public async System.Threading.Tasks.Task> GetEventsByIdAsyncWithHttpInfo (Guid? eventId) + 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/events/{eventId}"; + var localVarPath = "./api/v1.0/{appId}/events/{eventId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1507,6 +1710,7 @@ public async System.Threading.Tasks.Task> GetEven 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 @@ -1534,56 +1738,67 @@ public async System.Threading.Tasks.Task> GetEven } /// - /// Get menu events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Menu Identifier + /// + /// /// 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 (int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(menuId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + ApiResponse localVarResponse = GetMenuEventsWithHttpInfo(appId, menuId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId2, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); return localVarResponse.Data; } /// - /// Get menu events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Menu Identifier + /// + /// /// 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 (int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events/menu/{menuId}"; + var localVarPath = "./api/v1.0/{appId}/events/menu/{menuId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1607,6 +1822,7 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetMenuEventsWithHttpIn 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 @@ -1614,8 +1830,11 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetMenuEventsWithHttpIn 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 @@ -1648,57 +1867,68 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetMenuEventsWithHttpIn } /// - /// Get menu events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Menu Identifier + /// + /// /// 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 (int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(menuId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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; } /// - /// Get menu events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Menu Identifier + /// + /// /// 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 (int? menuId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events/menu/{menuId}"; + var localVarPath = "./api/v1.0/{appId}/events/menu/{menuId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1722,6 +1952,7 @@ public async System.Threading.Tasks.Task - /// Get order events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// + /// /// 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 (int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(orderId, limit, page, start, end, orderId2, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + ApiResponse localVarResponse = GetOrderEventsWithHttpInfo(appId, orderId, limit, page, start, end, orderId2, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); return localVarResponse.Data; } /// - /// Get order events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// + /// /// 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 (int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events/order/{orderId}"; + var localVarPath = "./api/v1.0/{appId}/events/order/{orderId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1836,6 +2081,7 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetOrderEventsWithHttpI 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 @@ -1843,8 +2089,11 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetOrderEventsWithHttpI 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 @@ -1877,57 +2126,68 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetOrderEventsWithHttpI } /// - /// Get order events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// + /// /// 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 (int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(orderId, limit, page, start, end, orderId2, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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; } /// - /// Get order events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// + /// /// 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 (int? orderId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId2 = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events/order/{orderId}"; + var localVarPath = "./api/v1.0/{appId}/events/order/{orderId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1951,6 +2211,7 @@ public async System.Threading.Tasks.Task - /// Get order events by customer For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Customer identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(customerId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + ApiResponse localVarResponse = GetOrderEventsByCustomerWithHttpInfo(appId, customerId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); return localVarResponse.Data; } /// - /// Get order events by customer For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Customer identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events/order"; + var localVarPath = "./api/v1.0/{appId}/events/order"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2065,6 +2340,7 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetOrderEventsByCustome 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 @@ -2072,8 +2348,11 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetOrderEventsByCustome 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 @@ -2106,57 +2385,68 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetOrderEventsByCustome } /// - /// Get order events by customer For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Customer identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(customerId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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; } /// - /// Get order events by customer For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Customer identifier + /// + /// /// 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 (int? customerId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events/order"; + var localVarPath = "./api/v1.0/{appId}/events/order"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2180,6 +2470,7 @@ public async System.Threading.Tasks.Task - /// Get store events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Id of the store + /// + /// /// 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 (int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(storeId, limit, page, start, end, orderId, storeId2, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + ApiResponse localVarResponse = GetStoreEventsWithHttpInfo(appId, storeId, limit, page, start, end, orderId, storeId2, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); return localVarResponse.Data; } /// - /// Get store events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Id of the store + /// + /// /// 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 (int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events/store/{storeId}"; + var localVarPath = "./api/v1.0/{appId}/events/store/{storeId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2294,6 +2599,7 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetStoreEventsWithHttpI 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 @@ -2301,8 +2607,11 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetStoreEventsWithHttpI 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 @@ -2335,57 +2644,68 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetStoreEventsWithHttpI } /// - /// Get store events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Id of the store + /// + /// /// 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 (int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(storeId, limit, page, start, end, orderId, storeId2, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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; } /// - /// Get store events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// Id of the store + /// + /// /// 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 (int? storeId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId2 = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events/store/{storeId}"; + var localVarPath = "./api/v1.0/{appId}/events/store/{storeId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2409,6 +2729,7 @@ public async System.Threading.Tasks.Task - /// Get user events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// User identifier + /// + /// /// 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 (int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId2 = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(userId, limit, page, start, end, orderId, storeId, storeGroupId, userId2, userEmail, userName, voucherCode, eventType, flipdishEventId); + ApiResponse localVarResponse = GetUserEventsWithHttpInfo(appId, userId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId2, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); return localVarResponse.Data; } /// - /// Get user events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// User identifier + /// + /// /// 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 (int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId2 = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events/user/{userId}"; + var localVarPath = "./api/v1.0/{appId}/events/user/{userId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2523,6 +2858,7 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetUserEventsWithHttpIn 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 @@ -2530,8 +2866,11 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetUserEventsWithHttpIn 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 @@ -2564,57 +2903,68 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetUserEventsWithHttpIn } /// - /// Get user events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// User identifier + /// + /// /// 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 (int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId2 = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(userId, limit, page, start, end, orderId, storeId, storeGroupId, userId2, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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; } /// - /// Get user events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// User identifier + /// + /// /// 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 (int? userId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId2 = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events/user/{userId}"; + var localVarPath = "./api/v1.0/{appId}/events/user/{userId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2638,6 +2988,7 @@ public async System.Threading.Tasks.Task - /// Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// White Label Identifier + /// + /// /// 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 (int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(whitelabelId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + ApiResponse localVarResponse = GetWhiteLabelEventsWithHttpInfo(appId, whitelabelId, limit, page, start, end, orderId, storeId, storeIdList, storeGroupId, userId, menuId, campaignId, userEmail, userName, voucherCode, eventType, flipdishEventId); return localVarResponse.Data; } /// - /// Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// White Label Identifier + /// + /// /// 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 (int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events/whitelabel/{whitelabelId}"; + var localVarPath = "./api/v1.0/{appId}/events/whitelabel/{whitelabelId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2752,6 +3117,7 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetWhiteLabelEventsWith 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 @@ -2759,8 +3125,11 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetWhiteLabelEventsWith 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 @@ -2793,57 +3162,68 @@ public ApiResponse< RestApiEventSearchPaginationResult > GetWhiteLabelEventsWith } /// - /// Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// White Label Identifier + /// + /// /// 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 (int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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(whitelabelId, limit, page, start, end, orderId, storeId, storeGroupId, userId, userEmail, userName, voucherCode, eventType, flipdishEventId); + 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; } /// - /// Get WhiteLabel events For technical reasons, the number of records returned is limited to 100. + /// /// /// Thrown when fails to make API call - /// White Label Identifier + /// + /// /// 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 (int? whitelabelId, int? limit = null, int? page = null, DateTime? start = null, DateTime? end = null, int? orderId = null, int? storeId = null, int? storeGroupId = null, int? userId = null, string userEmail = null, string userName = null, string voucherCode = null, List eventType = null, string flipdishEventId = null) + 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/events/whitelabel/{whitelabelId}"; + var localVarPath = "./api/v1.0/{appId}/events/whitelabel/{whitelabelId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2867,6 +3247,7 @@ public async System.Threading.Tasks.Task /// Represents a collection of functions to interact with the API endpoints /// - public interface IChannelsStoreMappingApi : IApiAccessor + public interface IFeaturesApi : IApiAccessor { #region Synchronous Operations /// @@ -32,9 +32,9 @@ public interface IChannelsStoreMappingApi : IApiAccessor /// /// Thrown when fails to make API call /// - /// - /// RestApiArrayResultStoreChannelStoreMapping - RestApiArrayResultStoreChannelStoreMapping ChannelsGetStoreChannelStoreMapping (string appId, int? channelId); + /// + /// RestApiStringArrayResult + RestApiStringArrayResult DisableFeatures (string appId, List features); /// /// @@ -44,9 +44,9 @@ public interface IChannelsStoreMappingApi : IApiAccessor /// /// Thrown when fails to make API call /// - /// - /// ApiResponse of RestApiArrayResultStoreChannelStoreMapping - ApiResponse ChannelsGetStoreChannelStoreMappingWithHttpInfo (string appId, int? channelId); + /// + /// ApiResponse of RestApiStringArrayResult + ApiResponse DisableFeaturesWithHttpInfo (string appId, List features); /// /// /// @@ -55,10 +55,9 @@ public interface IChannelsStoreMappingApi : IApiAccessor /// /// Thrown when fails to make API call /// - /// - /// - /// RestApiArrayResultStoreChannelStoreMapping - RestApiArrayResultStoreChannelStoreMapping ChannelsSetStoreChannelStoreMapping (string appId, int? channelId, List stores); + /// + /// RestApiStringArrayResult + RestApiStringArrayResult EnableFeatures (string appId, List features); /// /// @@ -68,10 +67,9 @@ public interface IChannelsStoreMappingApi : IApiAccessor /// /// Thrown when fails to make API call /// - /// - /// - /// ApiResponse of RestApiArrayResultStoreChannelStoreMapping - ApiResponse ChannelsSetStoreChannelStoreMappingWithHttpInfo (string appId, int? channelId, List stores); + /// + /// ApiResponse of RestApiStringArrayResult + ApiResponse EnableFeaturesWithHttpInfo (string appId, List features); #endregion Synchronous Operations #region Asynchronous Operations /// @@ -82,9 +80,9 @@ public interface IChannelsStoreMappingApi : IApiAccessor /// /// Thrown when fails to make API call /// - /// - /// Task of RestApiArrayResultStoreChannelStoreMapping - System.Threading.Tasks.Task ChannelsGetStoreChannelStoreMappingAsync (string appId, int? channelId); + /// + /// Task of RestApiStringArrayResult + System.Threading.Tasks.Task DisableFeaturesAsync (string appId, List features); /// /// @@ -94,9 +92,9 @@ public interface IChannelsStoreMappingApi : IApiAccessor /// /// Thrown when fails to make API call /// - /// - /// Task of ApiResponse (RestApiArrayResultStoreChannelStoreMapping) - System.Threading.Tasks.Task> ChannelsGetStoreChannelStoreMappingAsyncWithHttpInfo (string appId, int? channelId); + /// + /// Task of ApiResponse (RestApiStringArrayResult) + System.Threading.Tasks.Task> DisableFeaturesAsyncWithHttpInfo (string appId, List features); /// /// /// @@ -105,10 +103,9 @@ public interface IChannelsStoreMappingApi : IApiAccessor /// /// Thrown when fails to make API call /// - /// - /// - /// Task of RestApiArrayResultStoreChannelStoreMapping - System.Threading.Tasks.Task ChannelsSetStoreChannelStoreMappingAsync (string appId, int? channelId, List stores); + /// + /// Task of RestApiStringArrayResult + System.Threading.Tasks.Task EnableFeaturesAsync (string appId, List features); /// /// @@ -118,25 +115,24 @@ public interface IChannelsStoreMappingApi : IApiAccessor /// /// Thrown when fails to make API call /// - /// - /// - /// Task of ApiResponse (RestApiArrayResultStoreChannelStoreMapping) - System.Threading.Tasks.Task> ChannelsSetStoreChannelStoreMappingAsyncWithHttpInfo (string appId, int? channelId, List stores); + /// + /// 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 ChannelsStoreMappingApi : IChannelsStoreMappingApi + public partial class FeaturesApi : IFeaturesApi { private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - public ChannelsStoreMappingApi(String basePath) + public FeaturesApi(String basePath) { this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; @@ -144,12 +140,12 @@ public ChannelsStoreMappingApi(String basePath) } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// - public ChannelsStoreMappingApi(Flipdish.Client.Configuration configuration = null) + public FeaturesApi(Flipdish.Client.Configuration configuration = null) { if (configuration == null) // use the default one in Configuration this.Configuration = Flipdish.Client.Configuration.Default; @@ -227,11 +223,11 @@ public void AddDefaultHeader(string key, string value) /// /// Thrown when fails to make API call /// - /// - /// RestApiArrayResultStoreChannelStoreMapping - public RestApiArrayResultStoreChannelStoreMapping ChannelsGetStoreChannelStoreMapping (string appId, int? channelId) + /// + /// RestApiStringArrayResult + public RestApiStringArrayResult DisableFeatures (string appId, List features) { - ApiResponse localVarResponse = ChannelsGetStoreChannelStoreMappingWithHttpInfo(appId, channelId); + ApiResponse localVarResponse = DisableFeaturesWithHttpInfo(appId, features); return localVarResponse.Data; } @@ -240,18 +236,18 @@ public RestApiArrayResultStoreChannelStoreMapping ChannelsGetStoreChannelStoreMa /// /// Thrown when fails to make API call /// - /// - /// ApiResponse of RestApiArrayResultStoreChannelStoreMapping - public ApiResponse< RestApiArrayResultStoreChannelStoreMapping > ChannelsGetStoreChannelStoreMappingWithHttpInfo (string appId, int? channelId) + /// + /// 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 ChannelsStoreMappingApi->ChannelsGetStoreChannelStoreMapping"); - // verify the required parameter 'channelId' is set - if (channelId == null) - throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsStoreMappingApi->ChannelsGetStoreChannelStoreMapping"); + 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}/channels/storemappings"; + var localVarPath = "./api/v1.0/{appId}/features/disable"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -261,6 +257,11 @@ public ApiResponse< RestApiArrayResultStoreChannelStoreMapping > ChannelsGetStor // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -276,7 +277,14 @@ public ApiResponse< RestApiArrayResultStoreChannelStoreMapping > ChannelsGetStor localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (channelId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "channelId", channelId)); // query 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 @@ -287,20 +295,20 @@ public ApiResponse< RestApiArrayResultStoreChannelStoreMapping > ChannelsGetStor // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("ChannelsGetStoreChannelStoreMapping", localVarResponse); + Exception exception = ExceptionFactory("DisableFeatures", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultStoreChannelStoreMapping) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreChannelStoreMapping))); + (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); } /// @@ -308,11 +316,11 @@ public ApiResponse< RestApiArrayResultStoreChannelStoreMapping > ChannelsGetStor /// /// Thrown when fails to make API call /// - /// - /// Task of RestApiArrayResultStoreChannelStoreMapping - public async System.Threading.Tasks.Task ChannelsGetStoreChannelStoreMappingAsync (string appId, int? channelId) + /// + /// Task of RestApiStringArrayResult + public async System.Threading.Tasks.Task DisableFeaturesAsync (string appId, List features) { - ApiResponse localVarResponse = await ChannelsGetStoreChannelStoreMappingAsyncWithHttpInfo(appId, channelId); + ApiResponse localVarResponse = await DisableFeaturesAsyncWithHttpInfo(appId, features); return localVarResponse.Data; } @@ -322,18 +330,18 @@ public async System.Threading.Tasks.Task /// Thrown when fails to make API call /// - /// - /// Task of ApiResponse (RestApiArrayResultStoreChannelStoreMapping) - public async System.Threading.Tasks.Task> ChannelsGetStoreChannelStoreMappingAsyncWithHttpInfo (string appId, int? channelId) + /// + /// 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 ChannelsStoreMappingApi->ChannelsGetStoreChannelStoreMapping"); - // verify the required parameter 'channelId' is set - if (channelId == null) - throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsStoreMappingApi->ChannelsGetStoreChannelStoreMapping"); + 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}/channels/storemappings"; + var localVarPath = "./api/v1.0/{appId}/features/disable"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -343,6 +351,11 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultStoreChannelStoreMapping) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreChannelStoreMapping))); + (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); } /// @@ -390,12 +410,11 @@ public async System.Threading.Tasks.Task /// Thrown when fails to make API call /// - /// - /// - /// RestApiArrayResultStoreChannelStoreMapping - public RestApiArrayResultStoreChannelStoreMapping ChannelsSetStoreChannelStoreMapping (string appId, int? channelId, List stores) + /// + /// RestApiStringArrayResult + public RestApiStringArrayResult EnableFeatures (string appId, List features) { - ApiResponse localVarResponse = ChannelsSetStoreChannelStoreMappingWithHttpInfo(appId, channelId, stores); + ApiResponse localVarResponse = EnableFeaturesWithHttpInfo(appId, features); return localVarResponse.Data; } @@ -404,22 +423,18 @@ public RestApiArrayResultStoreChannelStoreMapping ChannelsSetStoreChannelStoreMa /// /// Thrown when fails to make API call /// - /// - /// - /// ApiResponse of RestApiArrayResultStoreChannelStoreMapping - public ApiResponse< RestApiArrayResultStoreChannelStoreMapping > ChannelsSetStoreChannelStoreMappingWithHttpInfo (string appId, int? channelId, List stores) + /// + /// 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 ChannelsStoreMappingApi->ChannelsSetStoreChannelStoreMapping"); - // verify the required parameter 'channelId' is set - if (channelId == null) - throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsStoreMappingApi->ChannelsSetStoreChannelStoreMapping"); - // verify the required parameter 'stores' is set - if (stores == null) - throw new ApiException(400, "Missing required parameter 'stores' when calling ChannelsStoreMappingApi->ChannelsSetStoreChannelStoreMapping"); - - var localVarPath = "./api/v1.0/{appId}/channels/storemappings"; + 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); @@ -449,14 +464,13 @@ public ApiResponse< RestApiArrayResultStoreChannelStoreMapping > ChannelsSetStor localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (channelId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "channelId", channelId)); // query parameter - if (stores != null && stores.GetType() != typeof(byte[])) + if (features != null && features.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(stores); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(features); // http body (model) parameter } else { - localVarPostBody = stores; // byte array + localVarPostBody = features; // byte array } // authentication (oauth2) required @@ -475,13 +489,13 @@ public ApiResponse< RestApiArrayResultStoreChannelStoreMapping > ChannelsSetStor if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("ChannelsSetStoreChannelStoreMapping", localVarResponse); + Exception exception = ExceptionFactory("EnableFeatures", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultStoreChannelStoreMapping) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreChannelStoreMapping))); + (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); } /// @@ -489,12 +503,11 @@ public ApiResponse< RestApiArrayResultStoreChannelStoreMapping > ChannelsSetStor /// /// Thrown when fails to make API call /// - /// - /// - /// Task of RestApiArrayResultStoreChannelStoreMapping - public async System.Threading.Tasks.Task ChannelsSetStoreChannelStoreMappingAsync (string appId, int? channelId, List stores) + /// + /// Task of RestApiStringArrayResult + public async System.Threading.Tasks.Task EnableFeaturesAsync (string appId, List features) { - ApiResponse localVarResponse = await ChannelsSetStoreChannelStoreMappingAsyncWithHttpInfo(appId, channelId, stores); + ApiResponse localVarResponse = await EnableFeaturesAsyncWithHttpInfo(appId, features); return localVarResponse.Data; } @@ -504,22 +517,18 @@ public async System.Threading.Tasks.Task /// Thrown when fails to make API call /// - /// - /// - /// Task of ApiResponse (RestApiArrayResultStoreChannelStoreMapping) - public async System.Threading.Tasks.Task> ChannelsSetStoreChannelStoreMappingAsyncWithHttpInfo (string appId, int? channelId, List stores) + /// + /// 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 ChannelsStoreMappingApi->ChannelsSetStoreChannelStoreMapping"); - // verify the required parameter 'channelId' is set - if (channelId == null) - throw new ApiException(400, "Missing required parameter 'channelId' when calling ChannelsStoreMappingApi->ChannelsSetStoreChannelStoreMapping"); - // verify the required parameter 'stores' is set - if (stores == null) - throw new ApiException(400, "Missing required parameter 'stores' when calling ChannelsStoreMappingApi->ChannelsSetStoreChannelStoreMapping"); - - var localVarPath = "./api/v1.0/{appId}/channels/storemappings"; + 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); @@ -549,14 +558,13 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultStoreChannelStoreMapping) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreChannelStoreMapping))); + (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 index a0a58204..aeb65e67 100644 --- a/src/Flipdish/Api/FulfillmentStateConfigurationApi.cs +++ b/src/Flipdish/Api/FulfillmentStateConfigurationApi.cs @@ -25,235 +25,277 @@ public interface IFulfillmentStateConfigurationApi : IApiAccessor { #region Synchronous Operations /// - /// Create fulfillment configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment state configuration + /// + /// /// RestApiResultFulfillmentStatesConfiguration - RestApiResultFulfillmentStatesConfiguration CreateFulfillmentStatesConfig (string appId, FulfillmentStatesConfigurationCreateBase fulfillmentStateConfiguration); + RestApiResultFulfillmentStatesConfiguration CreateFulfillmentStatesConfig (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration); /// - /// Create fulfillment configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment state configuration + /// + /// /// ApiResponse of RestApiResultFulfillmentStatesConfiguration - ApiResponse CreateFulfillmentStatesConfigWithHttpInfo (string appId, FulfillmentStatesConfigurationCreateBase fulfillmentStateConfiguration); + ApiResponse CreateFulfillmentStatesConfigWithHttpInfo (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration); /// - /// Delete fulfillment states configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id + /// + /// /// RestApiStringResult RestApiStringResult DeleteFulfillmentStatesConfig (string appId, string configId); /// - /// Delete fulfillment states configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id + /// + /// /// ApiResponse of RestApiStringResult ApiResponse DeleteFulfillmentStatesConfigWithHttpInfo (string appId, string configId); /// - /// Get fulfillment configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app configuration id + /// + /// /// FulfillmentStatesConfiguration FulfillmentStatesConfiguration GetFulfillmentStatesConfiguration (string appId, string configId); /// - /// Get fulfillment configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app configuration id + /// + /// /// ApiResponse of FulfillmentStatesConfiguration ApiResponse GetFulfillmentStatesConfigurationWithHttpInfo (string appId, string configId); /// - /// List fulfillment configurations for AppId + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id + /// + /// 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); /// - /// List fulfillment configurations for AppId + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id + /// /// ApiResponse of RestApiArrayResultFulfillmentStatesConfigurationSummary ApiResponse SearchFulfillmentStatesConfigurationsWithHttpInfo (string appId); /// - /// Update fulfillment configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id - /// Update fulfillment states configuration + /// + /// + /// /// void UpdateFulfillmentStatesConfig (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration); /// - /// Update fulfillment configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id - /// Update fulfillment states configuration + /// + /// + /// /// ApiResponse of Object(void) ApiResponse UpdateFulfillmentStatesConfigWithHttpInfo (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Create fulfillment configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment state configuration + /// + /// /// Task of RestApiResultFulfillmentStatesConfiguration - System.Threading.Tasks.Task CreateFulfillmentStatesConfigAsync (string appId, FulfillmentStatesConfigurationCreateBase fulfillmentStateConfiguration); + System.Threading.Tasks.Task CreateFulfillmentStatesConfigAsync (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration); /// - /// Create fulfillment configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment state configuration + /// + /// /// Task of ApiResponse (RestApiResultFulfillmentStatesConfiguration) - System.Threading.Tasks.Task> CreateFulfillmentStatesConfigAsyncWithHttpInfo (string appId, FulfillmentStatesConfigurationCreateBase fulfillmentStateConfiguration); + System.Threading.Tasks.Task> CreateFulfillmentStatesConfigAsyncWithHttpInfo (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration); /// - /// Delete fulfillment states configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id + /// + /// /// Task of RestApiStringResult System.Threading.Tasks.Task DeleteFulfillmentStatesConfigAsync (string appId, string configId); /// - /// Delete fulfillment states configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id + /// + /// /// Task of ApiResponse (RestApiStringResult) System.Threading.Tasks.Task> DeleteFulfillmentStatesConfigAsyncWithHttpInfo (string appId, string configId); /// - /// Get fulfillment configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app configuration id + /// + /// /// Task of FulfillmentStatesConfiguration System.Threading.Tasks.Task GetFulfillmentStatesConfigurationAsync (string appId, string configId); /// - /// Get fulfillment configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app configuration id + /// + /// /// Task of ApiResponse (FulfillmentStatesConfiguration) System.Threading.Tasks.Task> GetFulfillmentStatesConfigurationAsyncWithHttpInfo (string appId, string configId); /// - /// List fulfillment configurations for AppId + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Task of FulfillmentStatesConfiguration + System.Threading.Tasks.Task GetFulfillmentStatesConfigurationTemplateAsync (string appId); + + /// + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id + /// + /// 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); /// - /// List fulfillment configurations for AppId + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id + /// /// Task of ApiResponse (RestApiArrayResultFulfillmentStatesConfigurationSummary) System.Threading.Tasks.Task> SearchFulfillmentStatesConfigurationsAsyncWithHttpInfo (string appId); /// - /// Update fulfillment configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id - /// Update fulfillment states configuration + /// + /// + /// /// Task of void System.Threading.Tasks.Task UpdateFulfillmentStatesConfigAsync (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration); /// - /// Update fulfillment configuration + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id - /// Update fulfillment states configuration + /// + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> UpdateFulfillmentStatesConfigAsyncWithHttpInfo (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration); #endregion Asynchronous Operations @@ -357,26 +399,26 @@ public void AddDefaultHeader(string key, string value) } /// - /// Create fulfillment configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment state configuration + /// + /// /// RestApiResultFulfillmentStatesConfiguration - public RestApiResultFulfillmentStatesConfiguration CreateFulfillmentStatesConfig (string appId, FulfillmentStatesConfigurationCreateBase fulfillmentStateConfiguration) + public RestApiResultFulfillmentStatesConfiguration CreateFulfillmentStatesConfig (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration) { ApiResponse localVarResponse = CreateFulfillmentStatesConfigWithHttpInfo(appId, fulfillmentStateConfiguration); return localVarResponse.Data; } /// - /// Create fulfillment configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment state configuration + /// + /// /// ApiResponse of RestApiResultFulfillmentStatesConfiguration - public ApiResponse< RestApiResultFulfillmentStatesConfiguration > CreateFulfillmentStatesConfigWithHttpInfo (string appId, FulfillmentStatesConfigurationCreateBase fulfillmentStateConfiguration) + public ApiResponse< RestApiResultFulfillmentStatesConfiguration > CreateFulfillmentStatesConfigWithHttpInfo (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration) { // verify the required parameter 'appId' is set if (appId == null) @@ -450,13 +492,13 @@ public ApiResponse< RestApiResultFulfillmentStatesConfiguration > CreateFulfillm } /// - /// Create fulfillment configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment state configuration + /// + /// /// Task of RestApiResultFulfillmentStatesConfiguration - public async System.Threading.Tasks.Task CreateFulfillmentStatesConfigAsync (string appId, FulfillmentStatesConfigurationCreateBase fulfillmentStateConfiguration) + public async System.Threading.Tasks.Task CreateFulfillmentStatesConfigAsync (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration) { ApiResponse localVarResponse = await CreateFulfillmentStatesConfigAsyncWithHttpInfo(appId, fulfillmentStateConfiguration); return localVarResponse.Data; @@ -464,13 +506,13 @@ public async System.Threading.Tasks.Task - /// Create fulfillment configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment state configuration + /// + /// /// Task of ApiResponse (RestApiResultFulfillmentStatesConfiguration) - public async System.Threading.Tasks.Task> CreateFulfillmentStatesConfigAsyncWithHttpInfo (string appId, FulfillmentStatesConfigurationCreateBase fulfillmentStateConfiguration) + public async System.Threading.Tasks.Task> CreateFulfillmentStatesConfigAsyncWithHttpInfo (string appId, CreateFulfillmentStatesConfiguration fulfillmentStateConfiguration) { // verify the required parameter 'appId' is set if (appId == null) @@ -544,11 +586,11 @@ public async System.Threading.Tasks.Task - /// Delete fulfillment states configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id + /// + /// /// RestApiStringResult public RestApiStringResult DeleteFulfillmentStatesConfig (string appId, string configId) { @@ -557,11 +599,11 @@ public RestApiStringResult DeleteFulfillmentStatesConfig (string appId, string c } /// - /// Delete fulfillment states configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id + /// + /// /// ApiResponse of RestApiStringResult public ApiResponse< RestApiStringResult > DeleteFulfillmentStatesConfigWithHttpInfo (string appId, string configId) { @@ -625,11 +667,11 @@ public ApiResponse< RestApiStringResult > DeleteFulfillmentStatesConfigWithHttpI } /// - /// Delete fulfillment states configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id + /// + /// /// Task of RestApiStringResult public async System.Threading.Tasks.Task DeleteFulfillmentStatesConfigAsync (string appId, string configId) { @@ -639,11 +681,11 @@ public async System.Threading.Tasks.Task DeleteFulfillmentS } /// - /// Delete fulfillment states configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id + /// + /// /// Task of ApiResponse (RestApiStringResult) public async System.Threading.Tasks.Task> DeleteFulfillmentStatesConfigAsyncWithHttpInfo (string appId, string configId) { @@ -707,11 +749,11 @@ public async System.Threading.Tasks.Task> Delet } /// - /// Get fulfillment configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app configuration id + /// + /// /// FulfillmentStatesConfiguration public FulfillmentStatesConfiguration GetFulfillmentStatesConfiguration (string appId, string configId) { @@ -720,11 +762,11 @@ public FulfillmentStatesConfiguration GetFulfillmentStatesConfiguration (string } /// - /// Get fulfillment configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app configuration id + /// + /// /// ApiResponse of FulfillmentStatesConfiguration public ApiResponse< FulfillmentStatesConfiguration > GetFulfillmentStatesConfigurationWithHttpInfo (string appId, string configId) { @@ -788,11 +830,11 @@ public ApiResponse< FulfillmentStatesConfiguration > GetFulfillmentStatesConfigu } /// - /// Get fulfillment configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app configuration id + /// + /// /// Task of FulfillmentStatesConfiguration public async System.Threading.Tasks.Task GetFulfillmentStatesConfigurationAsync (string appId, string configId) { @@ -802,11 +844,11 @@ public async System.Threading.Tasks.Task GetFulf } /// - /// Get fulfillment configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// App store app configuration id + /// + /// /// Task of ApiResponse (FulfillmentStatesConfiguration) public async System.Threading.Tasks.Task> GetFulfillmentStatesConfigurationAsyncWithHttpInfo (string appId, string configId) { @@ -870,10 +912,161 @@ public async System.Threading.Tasks.Task - /// List fulfillment configurations for AppId [BETA - this endpoint is under development, do not use it in your production system] + /// + /// + /// 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 - /// App id + /// /// RestApiArrayResultFulfillmentStatesConfigurationSummary public RestApiArrayResultFulfillmentStatesConfigurationSummary SearchFulfillmentStatesConfigurations (string appId) { @@ -882,10 +1075,10 @@ public RestApiArrayResultFulfillmentStatesConfigurationSummary SearchFulfillment } /// - /// List fulfillment configurations for AppId [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id + /// /// ApiResponse of RestApiArrayResultFulfillmentStatesConfigurationSummary public ApiResponse< RestApiArrayResultFulfillmentStatesConfigurationSummary > SearchFulfillmentStatesConfigurationsWithHttpInfo (string appId) { @@ -945,10 +1138,10 @@ public ApiResponse< RestApiArrayResultFulfillmentStatesConfigurationSummary > Se } /// - /// List fulfillment configurations for AppId [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id + /// /// Task of RestApiArrayResultFulfillmentStatesConfigurationSummary public async System.Threading.Tasks.Task SearchFulfillmentStatesConfigurationsAsync (string appId) { @@ -958,10 +1151,10 @@ public async System.Threading.Tasks.Task - /// List fulfillment configurations for AppId [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id + /// /// Task of ApiResponse (RestApiArrayResultFulfillmentStatesConfigurationSummary) public async System.Threading.Tasks.Task> SearchFulfillmentStatesConfigurationsAsyncWithHttpInfo (string appId) { @@ -1021,12 +1214,12 @@ public async System.Threading.Tasks.Task - /// Update fulfillment configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id - /// Update fulfillment states configuration + /// + /// + /// /// public void UpdateFulfillmentStatesConfig (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration) { @@ -1034,12 +1227,12 @@ public void UpdateFulfillmentStatesConfig (string appId, string configId, Update } /// - /// Update fulfillment configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id - /// Update fulfillment states configuration + /// + /// + /// /// ApiResponse of Object(void) public ApiResponse UpdateFulfillmentStatesConfigWithHttpInfo (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration) { @@ -1119,12 +1312,12 @@ public ApiResponse UpdateFulfillmentStatesConfigWithHttpInfo (string app } /// - /// Update fulfillment configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id - /// Update fulfillment states configuration + /// + /// + /// /// Task of void public async System.Threading.Tasks.Task UpdateFulfillmentStatesConfigAsync (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration) { @@ -1133,12 +1326,12 @@ public async System.Threading.Tasks.Task UpdateFulfillmentStatesConfigAsync (str } /// - /// Update fulfillment configuration [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call - /// App id - /// Fulfillment states configuration id - /// Update fulfillment states configuration + /// + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateFulfillmentStatesConfigAsyncWithHttpInfo (string appId, string configId, UpdateFulfillmentStatesConfiguration updateFulfillmentStatesConfiguration) { diff --git a/src/Flipdish/Api/HomeApi.cs b/src/Flipdish/Api/HomeApi.cs index 9c0c8f27..35a8e6e5 100644 --- a/src/Flipdish/Api/HomeApi.cs +++ b/src/Flipdish/Api/HomeApi.cs @@ -25,179 +25,179 @@ public interface IHomeApi : IApiAccessor { #region Synchronous Operations /// - /// [PRIVATE API] Complete Home Action + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Id of the action + /// + /// /// /// Object Object CompleteHomeAction (string appId, int? homeActionId, bool? isDismissed); /// - /// [PRIVATE API] Complete Home Action + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Id of the action + /// + /// /// /// ApiResponse of Object ApiResponse CompleteHomeActionWithHttpInfo (string appId, int? homeActionId, bool? isDismissed); /// - /// [PRIVATE API] Complete Home Action + /// /// /// /// /// /// Thrown when fails to make API call - /// Object - Object DismissOldPortalAction (); + /// + /// RestApiArrayResultHomeAction + RestApiArrayResultHomeAction GetHomeActions (string appId); /// - /// [PRIVATE API] Complete Home Action + /// /// /// /// /// /// Thrown when fails to make API call - /// ApiResponse of Object - ApiResponse DismissOldPortalActionWithHttpInfo (); + /// + /// ApiResponse of RestApiArrayResultHomeAction + ApiResponse GetHomeActionsWithHttpInfo (string appId); /// - /// [PRIVATE API] Get Home Actions + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// RestApiArrayResultHomeAction - RestApiArrayResultHomeAction GetHomeActions (string appId); + /// + /// RestApiResultHomeStatistics + RestApiResultHomeStatistics GetHomeStatistics (string appId); /// - /// [PRIVATE API] Get Home Actions + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// ApiResponse of RestApiArrayResultHomeAction - ApiResponse GetHomeActionsWithHttpInfo (string appId); + /// + /// ApiResponse of RestApiResultHomeStatistics + ApiResponse GetHomeStatisticsWithHttpInfo (string appId); /// - /// [PRIVATE API] Get Home Statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// RestApiResultHomeStatistics - RestApiResultHomeStatistics GetHomeStatistics (string appId); + /// RestApiResultOktaPortalFeatureFlag + RestApiResultOktaPortalFeatureFlag GetOktaPortalFeatureFlag (); /// - /// [PRIVATE API] Get Home Statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// ApiResponse of RestApiResultHomeStatistics - ApiResponse GetHomeStatisticsWithHttpInfo (string appId); + /// ApiResponse of RestApiResultOktaPortalFeatureFlag + ApiResponse GetOktaPortalFeatureFlagWithHttpInfo (); #endregion Synchronous Operations #region Asynchronous Operations /// - /// [PRIVATE API] Complete Home Action + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Id of the action + /// + /// /// /// Task of Object System.Threading.Tasks.Task CompleteHomeActionAsync (string appId, int? homeActionId, bool? isDismissed); /// - /// [PRIVATE API] Complete Home Action + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Id of the action + /// + /// /// /// Task of ApiResponse (Object) System.Threading.Tasks.Task> CompleteHomeActionAsyncWithHttpInfo (string appId, int? homeActionId, bool? isDismissed); /// - /// [PRIVATE API] Complete Home Action + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of Object - System.Threading.Tasks.Task DismissOldPortalActionAsync (); + /// + /// Task of RestApiArrayResultHomeAction + System.Threading.Tasks.Task GetHomeActionsAsync (string appId); /// - /// [PRIVATE API] Complete Home Action + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> DismissOldPortalActionAsyncWithHttpInfo (); + /// + /// Task of ApiResponse (RestApiArrayResultHomeAction) + System.Threading.Tasks.Task> GetHomeActionsAsyncWithHttpInfo (string appId); /// - /// [PRIVATE API] Get Home Actions + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Task of RestApiArrayResultHomeAction - System.Threading.Tasks.Task GetHomeActionsAsync (string appId); + /// + /// Task of RestApiResultHomeStatistics + System.Threading.Tasks.Task GetHomeStatisticsAsync (string appId); /// - /// [PRIVATE API] Get Home Actions + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Task of ApiResponse (RestApiArrayResultHomeAction) - System.Threading.Tasks.Task> GetHomeActionsAsyncWithHttpInfo (string appId); + /// + /// Task of ApiResponse (RestApiResultHomeStatistics) + System.Threading.Tasks.Task> GetHomeStatisticsAsyncWithHttpInfo (string appId); /// - /// [PRIVATE API] Get Home Statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Task of RestApiResultHomeStatistics - System.Threading.Tasks.Task GetHomeStatisticsAsync (string appId); + /// Task of RestApiResultOktaPortalFeatureFlag + System.Threading.Tasks.Task GetOktaPortalFeatureFlagAsync (); /// - /// [PRIVATE API] Get Home Statistics + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Task of ApiResponse (RestApiResultHomeStatistics) - System.Threading.Tasks.Task> GetHomeStatisticsAsyncWithHttpInfo (string appId); + /// Task of ApiResponse (RestApiResultOktaPortalFeatureFlag) + System.Threading.Tasks.Task> GetOktaPortalFeatureFlagAsyncWithHttpInfo (); #endregion Asynchronous Operations } @@ -299,11 +299,11 @@ public void AddDefaultHeader(string key, string value) } /// - /// [PRIVATE API] Complete Home Action + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Id of the action + /// + /// /// /// Object public Object CompleteHomeAction (string appId, int? homeActionId, bool? isDismissed) @@ -313,11 +313,11 @@ public Object CompleteHomeAction (string appId, int? homeActionId, bool? isDismi } /// - /// [PRIVATE API] Complete Home Action + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Id of the action + /// + /// /// /// ApiResponse of Object public ApiResponse< Object > CompleteHomeActionWithHttpInfo (string appId, int? homeActionId, bool? isDismissed) @@ -386,11 +386,11 @@ public ApiResponse< Object > CompleteHomeActionWithHttpInfo (string appId, int? } /// - /// [PRIVATE API] Complete Home Action + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Id of the action + /// + /// /// /// Task of Object public async System.Threading.Tasks.Task CompleteHomeActionAsync (string appId, int? homeActionId, bool? isDismissed) @@ -401,11 +401,11 @@ public async System.Threading.Tasks.Task CompleteHomeActionAsync (string } /// - /// [PRIVATE API] Complete Home Action + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Id of the action + /// + /// /// /// Task of ApiResponse (Object) public async System.Threading.Tasks.Task> CompleteHomeActionAsyncWithHttpInfo (string appId, int? homeActionId, bool? isDismissed) @@ -474,25 +474,30 @@ public async System.Threading.Tasks.Task> CompleteHomeAction } /// - /// [PRIVATE API] Complete Home Action + /// /// /// Thrown when fails to make API call - /// Object - public Object DismissOldPortalAction () + /// + /// RestApiArrayResultHomeAction + public RestApiArrayResultHomeAction GetHomeActions (string appId) { - ApiResponse localVarResponse = DismissOldPortalActionWithHttpInfo(); + ApiResponse localVarResponse = GetHomeActionsWithHttpInfo(appId); return localVarResponse.Data; } /// - /// [PRIVATE API] Complete Home Action + /// /// /// Thrown when fails to make API call - /// ApiResponse of Object - public ApiResponse< Object > DismissOldPortalActionWithHttpInfo () + /// + /// 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/home/dismissoldportalaction"; + var localVarPath = "./api/v1.0/{appId}/home"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -516,6 +521,7 @@ public ApiResponse< Object > DismissOldPortalActionWithHttpInfo () 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 @@ -526,43 +532,48 @@ public ApiResponse< Object > DismissOldPortalActionWithHttpInfo () // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("DismissOldPortalAction", localVarResponse); + Exception exception = ExceptionFactory("GetHomeActions", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + (RestApiArrayResultHomeAction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultHomeAction))); } /// - /// [PRIVATE API] Complete Home Action + /// /// /// Thrown when fails to make API call - /// Task of Object - public async System.Threading.Tasks.Task DismissOldPortalActionAsync () + /// + /// Task of RestApiArrayResultHomeAction + public async System.Threading.Tasks.Task GetHomeActionsAsync (string appId) { - ApiResponse localVarResponse = await DismissOldPortalActionAsyncWithHttpInfo(); + ApiResponse localVarResponse = await GetHomeActionsAsyncWithHttpInfo(appId); return localVarResponse.Data; } /// - /// [PRIVATE API] Complete Home Action + /// /// /// Thrown when fails to make API call - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> DismissOldPortalActionAsyncWithHttpInfo () + /// + /// 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/home/dismissoldportalaction"; + var localVarPath = "./api/v1.0/{appId}/home"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -586,6 +597,7 @@ public async System.Threading.Tasks.Task> DismissOldPortalAc 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 @@ -596,47 +608,47 @@ public async System.Threading.Tasks.Task> DismissOldPortalAc // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("DismissOldPortalAction", localVarResponse); + Exception exception = ExceptionFactory("GetHomeActions", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); + (RestApiArrayResultHomeAction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultHomeAction))); } /// - /// [PRIVATE API] Get Home Actions + /// /// /// Thrown when fails to make API call - /// App Name Id - /// RestApiArrayResultHomeAction - public RestApiArrayResultHomeAction GetHomeActions (string appId) + /// + /// RestApiResultHomeStatistics + public RestApiResultHomeStatistics GetHomeStatistics (string appId) { - ApiResponse localVarResponse = GetHomeActionsWithHttpInfo(appId); + ApiResponse localVarResponse = GetHomeStatisticsWithHttpInfo(appId); return localVarResponse.Data; } /// - /// [PRIVATE API] Get Home Actions + /// /// /// Thrown when fails to make API call - /// App Name Id - /// ApiResponse of RestApiArrayResultHomeAction - public ApiResponse< RestApiArrayResultHomeAction > GetHomeActionsWithHttpInfo (string appId) + /// + /// 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->GetHomeActions"); + throw new ApiException(400, "Missing required parameter 'appId' when calling HomeApi->GetHomeStatistics"); - var localVarPath = "./api/v1.0/{appId}/home"; + var localVarPath = "./api/v1.0/{appId}/home/stats"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -678,41 +690,41 @@ public ApiResponse< RestApiArrayResultHomeAction > GetHomeActionsWithHttpInfo (s if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetHomeActions", localVarResponse); + Exception exception = ExceptionFactory("GetHomeStatistics", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultHomeAction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultHomeAction))); + (RestApiResultHomeStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHomeStatistics))); } /// - /// [PRIVATE API] Get Home Actions + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Task of RestApiArrayResultHomeAction - public async System.Threading.Tasks.Task GetHomeActionsAsync (string appId) + /// + /// Task of RestApiResultHomeStatistics + public async System.Threading.Tasks.Task GetHomeStatisticsAsync (string appId) { - ApiResponse localVarResponse = await GetHomeActionsAsyncWithHttpInfo(appId); + ApiResponse localVarResponse = await GetHomeStatisticsAsyncWithHttpInfo(appId); return localVarResponse.Data; } /// - /// [PRIVATE API] Get Home Actions + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Task of ApiResponse (RestApiArrayResultHomeAction) - public async System.Threading.Tasks.Task> GetHomeActionsAsyncWithHttpInfo (string appId) + /// + /// 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->GetHomeActions"); + throw new ApiException(400, "Missing required parameter 'appId' when calling HomeApi->GetHomeStatistics"); - var localVarPath = "./api/v1.0/{appId}/home"; + var localVarPath = "./api/v1.0/{appId}/home/stats"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -754,40 +766,35 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultHomeAction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultHomeAction))); + (RestApiResultHomeStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHomeStatistics))); } /// - /// [PRIVATE API] Get Home Statistics + /// /// /// Thrown when fails to make API call - /// App Name Id - /// RestApiResultHomeStatistics - public RestApiResultHomeStatistics GetHomeStatistics (string appId) + /// RestApiResultOktaPortalFeatureFlag + public RestApiResultOktaPortalFeatureFlag GetOktaPortalFeatureFlag () { - ApiResponse localVarResponse = GetHomeStatisticsWithHttpInfo(appId); + ApiResponse localVarResponse = GetOktaPortalFeatureFlagWithHttpInfo(); return localVarResponse.Data; } /// - /// [PRIVATE API] Get Home Statistics + /// /// /// Thrown when fails to make API call - /// App Name Id - /// ApiResponse of RestApiResultHomeStatistics - public ApiResponse< RestApiResultHomeStatistics > GetHomeStatisticsWithHttpInfo (string appId) + /// ApiResponse of RestApiResultOktaPortalFeatureFlag + public ApiResponse< RestApiResultOktaPortalFeatureFlag > GetOktaPortalFeatureFlagWithHttpInfo () { - // 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 localVarPath = "./api/v1.0/home/okta-portal"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -811,7 +818,6 @@ public ApiResponse< RestApiResultHomeStatistics > GetHomeStatisticsWithHttpInfo 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 @@ -829,41 +835,36 @@ public ApiResponse< RestApiResultHomeStatistics > GetHomeStatisticsWithHttpInfo if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetHomeStatistics", localVarResponse); + Exception exception = ExceptionFactory("GetOktaPortalFeatureFlag", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultHomeStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHomeStatistics))); + (RestApiResultOktaPortalFeatureFlag) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOktaPortalFeatureFlag))); } /// - /// [PRIVATE API] Get Home Statistics + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Task of RestApiResultHomeStatistics - public async System.Threading.Tasks.Task GetHomeStatisticsAsync (string appId) + /// Task of RestApiResultOktaPortalFeatureFlag + public async System.Threading.Tasks.Task GetOktaPortalFeatureFlagAsync () { - ApiResponse localVarResponse = await GetHomeStatisticsAsyncWithHttpInfo(appId); + ApiResponse localVarResponse = await GetOktaPortalFeatureFlagAsyncWithHttpInfo(); return localVarResponse.Data; } /// - /// [PRIVATE API] Get Home Statistics + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Task of ApiResponse (RestApiResultHomeStatistics) - public async System.Threading.Tasks.Task> GetHomeStatisticsAsyncWithHttpInfo (string appId) + /// Task of ApiResponse (RestApiResultOktaPortalFeatureFlag) + public async System.Threading.Tasks.Task> GetOktaPortalFeatureFlagAsyncWithHttpInfo () { - // 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 localVarPath = "./api/v1.0/home/okta-portal"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -887,7 +888,6 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultHomeStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHomeStatistics))); + (RestApiResultOktaPortalFeatureFlag) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOktaPortalFeatureFlag))); } } diff --git a/src/Flipdish/Api/HydraApi.cs b/src/Flipdish/Api/HydraApi.cs index 44048aab..e00f8e10 100644 --- a/src/Flipdish/Api/HydraApi.cs +++ b/src/Flipdish/Api/HydraApi.cs @@ -25,7 +25,7 @@ public interface IHydraApi : IApiAccessor { #region Synchronous Operations /// - /// Assign an EMV terminal to a kiosk + /// /// /// /// @@ -38,7 +38,7 @@ public interface IHydraApi : IApiAccessor void AssignEmv (string appId, int? hydraConfigId, int? emvTerminalId); /// - /// Assign an EMV terminal to a kiosk + /// /// /// /// @@ -50,7 +50,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse AssignEmvWithHttpInfo (string appId, int? hydraConfigId, int? emvTerminalId); /// - /// [Private] + /// /// /// /// @@ -63,7 +63,7 @@ public interface IHydraApi : IApiAccessor RestApiResultHydraStatus AttachStoreToKiosk (string appId, int? storeId, string deviceId); /// - /// [Private] + /// /// /// /// @@ -75,7 +75,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of RestApiResultHydraStatus ApiResponse AttachStoreToKioskWithHttpInfo (string appId, int? storeId, string deviceId); /// - /// [Private] + /// /// /// /// @@ -88,7 +88,7 @@ public interface IHydraApi : IApiAccessor RestApiResultHydraStatus AttachStoreToTerminal (string appId, string deviceId, int? storeId); /// - /// [Private] + /// /// /// /// @@ -123,7 +123,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse CancelEmvPaymentWithHttpInfo (int? orderId, string appId); /// - /// [Private] + /// /// /// /// @@ -136,7 +136,7 @@ public interface IHydraApi : IApiAccessor RestApiResultHydraStatus DetachStoreFromTerminal (string appId, string deviceId, int? storeId); /// - /// [Private] + /// /// /// /// @@ -148,7 +148,26 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of RestApiResultHydraStatus ApiResponse DetachStoreFromTerminalWithHttpInfo (string appId, string deviceId, int? storeId); /// - /// [Private] + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + void GetAblyToken (); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// ApiResponse of Object(void) + ApiResponse GetAblyTokenWithHttpInfo (); + /// + /// /// /// /// @@ -161,7 +180,7 @@ public interface IHydraApi : IApiAccessor RestApiResultHydraDeviceDetails GetAttachedDevice (string appId, string deviceType, string deviceId); /// - /// [Private] + /// /// /// /// @@ -173,7 +192,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of RestApiResultHydraDeviceDetails ApiResponse GetAttachedDeviceWithHttpInfo (string appId, string deviceType, string deviceId); /// - /// [Private] + /// /// /// /// @@ -190,7 +209,7 @@ public interface IHydraApi : IApiAccessor RestApiPaginationResultHydraDeviceDetails GetAttachedDevices (string appId, string deviceType, int? pageIndex = null, int? pageSize = null, int? storeId = null, string deviceName = null, string deviceSerial = null); /// - /// [Private] + /// /// /// /// @@ -206,7 +225,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of RestApiPaginationResultHydraDeviceDetails ApiResponse GetAttachedDevicesWithHttpInfo (string appId, string deviceType, int? pageIndex = null, int? pageSize = null, int? storeId = null, string deviceName = null, string deviceSerial = null); /// - /// [Private] + /// /// /// /// @@ -217,7 +236,7 @@ public interface IHydraApi : IApiAccessor RestApiResultPaymentTerminalDetails GetEMVTerminalDetails (string appId); /// - /// [Private] + /// /// /// /// @@ -227,7 +246,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of RestApiResultPaymentTerminalDetails ApiResponse GetEMVTerminalDetailsWithHttpInfo (string appId); /// - /// [Private] + /// /// /// /// @@ -239,7 +258,7 @@ public interface IHydraApi : IApiAccessor RestApiResultPaymentTerminalTransactionDetails GetEmvOrderState (int? orderId, string appId); /// - /// [Private] + /// /// /// /// @@ -250,10 +269,10 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of RestApiResultPaymentTerminalTransactionDetails ApiResponse GetEmvOrderStateWithHttpInfo (int? orderId, string appId); /// - /// Get the status of Cash Payment Methon on Kisok + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -262,10 +281,10 @@ public interface IHydraApi : IApiAccessor RestApiArrayResultKioskCashPaymentSettings GetKioskCashPaymentSettings (string appId, string deviceId); /// - /// Get the status of Cash Payment Methon on Kisok + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -279,6 +298,29 @@ public interface IHydraApi : IApiAccessor /// /// /// 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 (); @@ -292,7 +334,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of RestApiResultHydraStatus ApiResponse GetRegistrationWithHttpInfo (); /// - /// [Private] + /// /// /// /// @@ -302,7 +344,7 @@ public interface IHydraApi : IApiAccessor RestApiResultHydraConfig GetSettings (); /// - /// [Private] + /// /// /// /// @@ -311,7 +353,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of RestApiResultHydraConfig ApiResponse GetSettingsWithHttpInfo (); /// - /// [Private] + /// /// /// /// @@ -323,7 +365,7 @@ public interface IHydraApi : IApiAccessor Object HydraCreateEmv (string appId, EmvTerminal emv); /// - /// [Private] + /// /// /// /// @@ -334,7 +376,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of Object ApiResponse HydraCreateEmvWithHttpInfo (string appId, EmvTerminal emv); /// - /// [Private] + /// /// /// /// @@ -346,7 +388,7 @@ public interface IHydraApi : IApiAccessor Object HydraDeleteEmv (string appId, int? id); /// - /// [Private] + /// /// /// /// @@ -357,7 +399,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of Object ApiResponse HydraDeleteEmvWithHttpInfo (string appId, int? id); /// - /// [Private] + /// /// /// /// @@ -370,7 +412,7 @@ public interface IHydraApi : IApiAccessor RestApiResultHydraStatus HydraDetachStoreFromKiosk (string appId, int? storeId, string deviceId); /// - /// [Private] + /// /// /// /// @@ -382,7 +424,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of RestApiResultHydraStatus ApiResponse HydraDetachStoreFromKioskWithHttpInfo (string appId, int? storeId, string deviceId); /// - /// List EMV terminals belonging to the given AppNameId + /// /// /// /// @@ -393,7 +435,7 @@ public interface IHydraApi : IApiAccessor RestApiArrayResultEmvTerminalWithAssignments HydraGetEmvsForAppId (string appId); /// - /// List EMV terminals belonging to the given AppNameId + /// /// /// /// @@ -403,7 +445,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of RestApiArrayResultEmvTerminalWithAssignments ApiResponse HydraGetEmvsForAppIdWithHttpInfo (string appId); /// - /// [Private] + /// /// /// /// @@ -416,7 +458,7 @@ public interface IHydraApi : IApiAccessor void LoginWithDeviceId (string deviceId, string hydraUserType = null, string serialNumber = null); /// - /// [Private] + /// /// /// /// @@ -428,7 +470,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse LoginWithDeviceIdWithHttpInfo (string deviceId, string hydraUserType = null, string serialNumber = null); /// - /// [Private] + /// /// /// /// @@ -440,7 +482,7 @@ public interface IHydraApi : IApiAccessor RestApiResultHydraStatus Register (string appId, HydraRegistrationRequest hydraRegistration); /// - /// [Private] + /// /// /// /// @@ -451,7 +493,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of RestApiResultHydraStatus ApiResponse RegisterWithHttpInfo (string appId, HydraRegistrationRequest hydraRegistration); /// - /// [Private] + /// /// /// /// @@ -463,7 +505,7 @@ public interface IHydraApi : IApiAccessor void UnAssign (string appId, string deviceId); /// - /// [Private] + /// /// /// /// @@ -474,7 +516,7 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse UnAssignWithHttpInfo (string appId, string deviceId); /// - /// Unassign the currently assigned EMV terminal from a kiosk + /// /// /// /// @@ -486,7 +528,7 @@ public interface IHydraApi : IApiAccessor void UnassignEmv (string appId, int? hydraConfigId); /// - /// Unassign the currently assigned EMV terminal from a kiosk + /// /// /// /// @@ -497,10 +539,10 @@ public interface IHydraApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse UnassignEmvWithHttpInfo (string appId, int? hydraConfigId); /// - /// Update the Cash Payment Methon Visiability on Kisok + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -510,10 +552,10 @@ public interface IHydraApi : IApiAccessor void UpdateKioskCashVisibilitySettings (string appId, string deviceId, bool? isCashEnabled); /// - /// Update the Cash Payment Methon Visiability on Kisok + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -521,10 +563,35 @@ public interface IHydraApi : IApiAccessor /// /// 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 /// - /// Assign an EMV terminal to a kiosk + /// /// /// /// @@ -537,7 +604,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task AssignEmvAsync (string appId, int? hydraConfigId, int? emvTerminalId); /// - /// Assign an EMV terminal to a kiosk + /// /// /// /// @@ -549,7 +616,7 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> AssignEmvAsyncWithHttpInfo (string appId, int? hydraConfigId, int? emvTerminalId); /// - /// [Private] + /// /// /// /// @@ -562,7 +629,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task AttachStoreToKioskAsync (string appId, int? storeId, string deviceId); /// - /// [Private] + /// /// /// /// @@ -574,7 +641,7 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse (RestApiResultHydraStatus) System.Threading.Tasks.Task> AttachStoreToKioskAsyncWithHttpInfo (string appId, int? storeId, string deviceId); /// - /// [Private] + /// /// /// /// @@ -587,7 +654,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task AttachStoreToTerminalAsync (string appId, string deviceId, int? storeId); /// - /// [Private] + /// /// /// /// @@ -622,7 +689,7 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> CancelEmvPaymentAsyncWithHttpInfo (int? orderId, string appId); /// - /// [Private] + /// /// /// /// @@ -635,7 +702,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task DetachStoreFromTerminalAsync (string appId, string deviceId, int? storeId); /// - /// [Private] + /// /// /// /// @@ -647,7 +714,26 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse (RestApiResultHydraStatus) System.Threading.Tasks.Task> DetachStoreFromTerminalAsyncWithHttpInfo (string appId, string deviceId, int? storeId); /// - /// [Private] + /// + /// + /// + /// + /// + /// 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 (); + /// + /// /// /// /// @@ -660,7 +746,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task GetAttachedDeviceAsync (string appId, string deviceType, string deviceId); /// - /// [Private] + /// /// /// /// @@ -672,7 +758,7 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse (RestApiResultHydraDeviceDetails) System.Threading.Tasks.Task> GetAttachedDeviceAsyncWithHttpInfo (string appId, string deviceType, string deviceId); /// - /// [Private] + /// /// /// /// @@ -689,7 +775,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task GetAttachedDevicesAsync (string appId, string deviceType, int? pageIndex = null, int? pageSize = null, int? storeId = null, string deviceName = null, string deviceSerial = null); /// - /// [Private] + /// /// /// /// @@ -705,7 +791,7 @@ public interface IHydraApi : IApiAccessor /// 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); /// - /// [Private] + /// /// /// /// @@ -716,7 +802,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task GetEMVTerminalDetailsAsync (string appId); /// - /// [Private] + /// /// /// /// @@ -726,7 +812,7 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse (RestApiResultPaymentTerminalDetails) System.Threading.Tasks.Task> GetEMVTerminalDetailsAsyncWithHttpInfo (string appId); /// - /// [Private] + /// /// /// /// @@ -738,7 +824,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task GetEmvOrderStateAsync (int? orderId, string appId); /// - /// [Private] + /// /// /// /// @@ -749,10 +835,10 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse (RestApiResultPaymentTerminalTransactionDetails) System.Threading.Tasks.Task> GetEmvOrderStateAsyncWithHttpInfo (int? orderId, string appId); /// - /// Get the status of Cash Payment Methon on Kisok + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -761,10 +847,10 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task GetKioskCashPaymentSettingsAsync (string appId, string deviceId); /// - /// Get the status of Cash Payment Methon on Kisok + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -778,6 +864,29 @@ public interface IHydraApi : IApiAccessor /// /// /// 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 (); @@ -791,7 +900,7 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse (RestApiResultHydraStatus) System.Threading.Tasks.Task> GetRegistrationAsyncWithHttpInfo (); /// - /// [Private] + /// /// /// /// @@ -801,7 +910,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task GetSettingsAsync (); /// - /// [Private] + /// /// /// /// @@ -810,7 +919,7 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse (RestApiResultHydraConfig) System.Threading.Tasks.Task> GetSettingsAsyncWithHttpInfo (); /// - /// [Private] + /// /// /// /// @@ -822,7 +931,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task HydraCreateEmvAsync (string appId, EmvTerminal emv); /// - /// [Private] + /// /// /// /// @@ -833,7 +942,7 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse (Object) System.Threading.Tasks.Task> HydraCreateEmvAsyncWithHttpInfo (string appId, EmvTerminal emv); /// - /// [Private] + /// /// /// /// @@ -845,7 +954,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task HydraDeleteEmvAsync (string appId, int? id); /// - /// [Private] + /// /// /// /// @@ -856,7 +965,7 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse (Object) System.Threading.Tasks.Task> HydraDeleteEmvAsyncWithHttpInfo (string appId, int? id); /// - /// [Private] + /// /// /// /// @@ -869,7 +978,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task HydraDetachStoreFromKioskAsync (string appId, int? storeId, string deviceId); /// - /// [Private] + /// /// /// /// @@ -881,7 +990,7 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse (RestApiResultHydraStatus) System.Threading.Tasks.Task> HydraDetachStoreFromKioskAsyncWithHttpInfo (string appId, int? storeId, string deviceId); /// - /// List EMV terminals belonging to the given AppNameId + /// /// /// /// @@ -892,7 +1001,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task HydraGetEmvsForAppIdAsync (string appId); /// - /// List EMV terminals belonging to the given AppNameId + /// /// /// /// @@ -902,7 +1011,7 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse (RestApiArrayResultEmvTerminalWithAssignments) System.Threading.Tasks.Task> HydraGetEmvsForAppIdAsyncWithHttpInfo (string appId); /// - /// [Private] + /// /// /// /// @@ -915,7 +1024,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task LoginWithDeviceIdAsync (string deviceId, string hydraUserType = null, string serialNumber = null); /// - /// [Private] + /// /// /// /// @@ -927,7 +1036,7 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> LoginWithDeviceIdAsyncWithHttpInfo (string deviceId, string hydraUserType = null, string serialNumber = null); /// - /// [Private] + /// /// /// /// @@ -939,7 +1048,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task RegisterAsync (string appId, HydraRegistrationRequest hydraRegistration); /// - /// [Private] + /// /// /// /// @@ -950,7 +1059,7 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse (RestApiResultHydraStatus) System.Threading.Tasks.Task> RegisterAsyncWithHttpInfo (string appId, HydraRegistrationRequest hydraRegistration); /// - /// [Private] + /// /// /// /// @@ -962,7 +1071,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task UnAssignAsync (string appId, string deviceId); /// - /// [Private] + /// /// /// /// @@ -973,7 +1082,7 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> UnAssignAsyncWithHttpInfo (string appId, string deviceId); /// - /// Unassign the currently assigned EMV terminal from a kiosk + /// /// /// /// @@ -985,7 +1094,7 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task UnassignEmvAsync (string appId, int? hydraConfigId); /// - /// Unassign the currently assigned EMV terminal from a kiosk + /// /// /// /// @@ -996,10 +1105,10 @@ public interface IHydraApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> UnassignEmvAsyncWithHttpInfo (string appId, int? hydraConfigId); /// - /// Update the Cash Payment Methon Visiability on Kisok + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1009,10 +1118,10 @@ public interface IHydraApi : IApiAccessor System.Threading.Tasks.Task UpdateKioskCashVisibilitySettingsAsync (string appId, string deviceId, bool? isCashEnabled); /// - /// Update the Cash Payment Methon Visiability on Kisok + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1020,6 +1129,31 @@ public interface IHydraApi : IApiAccessor /// /// 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 } @@ -1121,7 +1255,7 @@ public void AddDefaultHeader(string key, string value) } /// - /// Assign an EMV terminal to a kiosk + /// /// /// Thrown when fails to make API call /// @@ -1134,7 +1268,7 @@ public void AssignEmv (string appId, int? hydraConfigId, int? emvTerminalId) } /// - /// Assign an EMV terminal to a kiosk + /// /// /// Thrown when fails to make API call /// @@ -1207,7 +1341,7 @@ public ApiResponse AssignEmvWithHttpInfo (string appId, int? hydraConfig } /// - /// Assign an EMV terminal to a kiosk + /// /// /// Thrown when fails to make API call /// @@ -1221,7 +1355,7 @@ public async System.Threading.Tasks.Task AssignEmvAsync (string appId, int? hydr } /// - /// Assign an EMV terminal to a kiosk + /// /// /// Thrown when fails to make API call /// @@ -1294,7 +1428,7 @@ public async System.Threading.Tasks.Task> AssignEmvAsyncWith } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -1308,7 +1442,7 @@ public RestApiResultHydraStatus AttachStoreToKiosk (string appId, int? storeId, } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -1381,7 +1515,7 @@ public ApiResponse< RestApiResultHydraStatus > AttachStoreToKioskWithHttpInfo (s } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -1396,7 +1530,7 @@ public async System.Threading.Tasks.Task AttachStoreTo } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -1469,7 +1603,7 @@ public async System.Threading.Tasks.Task> } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -1483,7 +1617,7 @@ public RestApiResultHydraStatus AttachStoreToTerminal (string appId, string devi } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -1556,7 +1690,7 @@ public ApiResponse< RestApiResultHydraStatus > AttachStoreToTerminalWithHttpInfo } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -1571,7 +1705,7 @@ public async System.Threading.Tasks.Task AttachStoreTo } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -1805,7 +1939,7 @@ public async System.Threading.Tasks.Task> CancelEmvPaymentAs } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -1819,7 +1953,7 @@ public RestApiResultHydraStatus DetachStoreFromTerminal (string appId, string de } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -1892,7 +2026,7 @@ public ApiResponse< RestApiResultHydraStatus > DetachStoreFromTerminalWithHttpIn } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -1907,7 +2041,7 @@ public async System.Threading.Tasks.Task DetachStoreFr } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -1980,40 +2114,24 @@ public async System.Threading.Tasks.Task> } /// - /// [Private] + /// /// /// Thrown when fails to make API call - /// - /// - /// - /// RestApiResultHydraDeviceDetails - public RestApiResultHydraDeviceDetails GetAttachedDevice (string appId, string deviceType, string deviceId) + /// + public void GetAblyToken () { - ApiResponse localVarResponse = GetAttachedDeviceWithHttpInfo(appId, deviceType, deviceId); - return localVarResponse.Data; + GetAblyTokenWithHttpInfo(); } /// - /// [Private] + /// /// /// Thrown when fails to make API call - /// - /// - /// - /// ApiResponse of RestApiResultHydraDeviceDetails - public ApiResponse< RestApiResultHydraDeviceDetails > GetAttachedDeviceWithHttpInfo (string appId, string deviceType, string deviceId) + /// ApiResponse of Object(void) + public ApiResponse GetAblyTokenWithHttpInfo () { - // 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 localVarPath = "./api/v1.0/hydra/ably_token"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2037,9 +2155,6 @@ public ApiResponse< RestApiResultHydraDeviceDetails > GetAttachedDeviceWithHttpI 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 @@ -2057,32 +2172,188 @@ public ApiResponse< RestApiResultHydraDeviceDetails > GetAttachedDeviceWithHttpI if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetAttachedDevice", localVarResponse); + Exception exception = ExceptionFactory("GetAblyToken", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultHydraDeviceDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHydraDeviceDetails))); + null); } /// - /// [Private] + /// /// /// Thrown when fails to make API call - /// - /// - /// - /// Task of RestApiResultHydraDeviceDetails - public async System.Threading.Tasks.Task GetAttachedDeviceAsync (string appId, string deviceType, string deviceId) + /// Task of void + public async System.Threading.Tasks.Task GetAblyTokenAsync () { - ApiResponse localVarResponse = await GetAttachedDeviceAsyncWithHttpInfo(appId, deviceType, deviceId); + 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; } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -2155,7 +2426,7 @@ public async System.Threading.Tasks.Task - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -2173,7 +2444,7 @@ public RestApiPaginationResultHydraDeviceDetails GetAttachedDevices (string appI } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -2251,7 +2522,7 @@ public ApiResponse< RestApiPaginationResultHydraDeviceDetails > GetAttachedDevic } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -2270,7 +2541,7 @@ public async System.Threading.Tasks.Task - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -2348,7 +2619,7 @@ public async System.Threading.Tasks.Task - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -2360,7 +2631,7 @@ public RestApiResultPaymentTerminalDetails GetEMVTerminalDetails (string appId) } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -2423,7 +2694,7 @@ public ApiResponse< RestApiResultPaymentTerminalDetails > GetEMVTerminalDetailsW } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -2436,7 +2707,7 @@ public async System.Threading.Tasks.Task Ge } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -2499,7 +2770,7 @@ public async System.Threading.Tasks.Task - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -2512,7 +2783,7 @@ public RestApiResultPaymentTerminalTransactionDetails GetEmvOrderState (int? ord } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -2580,7 +2851,7 @@ public ApiResponse< RestApiResultPaymentTerminalTransactionDetails > GetEmvOrder } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -2594,22 +2865,185 @@ public async System.Threading.Tasks.Task - /// [Private] + /// /// /// Thrown when fails to make API call /// /// - /// Task of ApiResponse (RestApiResultPaymentTerminalTransactionDetails) - public async System.Threading.Tasks.Task> GetEmvOrderStateAsyncWithHttpInfo (int? orderId, string appId) + /// 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 '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"); + 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}/hydra/emvorderstate/{orderId}"; + var localVarPath = "./api/v1.0/{appId}/kioskcashsettings/{deviceId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2633,8 +3067,8 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultPaymentTerminalTransactionDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPaymentTerminalTransactionDetails))); + (RestApiArrayResultKioskCashPaymentSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultKioskCashPaymentSettings))); } /// - /// Get the status of Cash Payment Methon on Kisok [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// /// - /// RestApiArrayResultKioskCashPaymentSettings - public RestApiArrayResultKioskCashPaymentSettings GetKioskCashPaymentSettings (string appId, string deviceId) + /// RestApiResultKioskSettings + public RestApiResultKioskSettings GetKioskSettings (string appId, string deviceId) { - ApiResponse localVarResponse = GetKioskCashPaymentSettingsWithHttpInfo(appId, deviceId); + ApiResponse localVarResponse = GetKioskSettingsWithHttpInfo(appId, deviceId); return localVarResponse.Data; } /// - /// Get the status of Cash Payment Methon on Kisok [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// /// - /// ApiResponse of RestApiArrayResultKioskCashPaymentSettings - public ApiResponse< RestApiArrayResultKioskCashPaymentSettings > GetKioskCashPaymentSettingsWithHttpInfo (string appId, string deviceId) + /// 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->GetKioskCashPaymentSettings"); + 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->GetKioskCashPaymentSettings"); + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->GetKioskSettings"); - var localVarPath = "./api/v1.0/{appId}/kioskcashsettings/{deviceId}"; + var localVarPath = "./api/v1.0/{appId}/kiosksettings/{deviceId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2733,46 +3167,46 @@ public ApiResponse< RestApiArrayResultKioskCashPaymentSettings > GetKioskCashPay if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetKioskCashPaymentSettings", localVarResponse); + Exception exception = ExceptionFactory("GetKioskSettings", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultKioskCashPaymentSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultKioskCashPaymentSettings))); + (RestApiResultKioskSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskSettings))); } /// - /// Get the status of Cash Payment Methon on Kisok [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// /// - /// Task of RestApiArrayResultKioskCashPaymentSettings - public async System.Threading.Tasks.Task GetKioskCashPaymentSettingsAsync (string appId, string deviceId) + /// Task of RestApiResultKioskSettings + public async System.Threading.Tasks.Task GetKioskSettingsAsync (string appId, string deviceId) { - ApiResponse localVarResponse = await GetKioskCashPaymentSettingsAsyncWithHttpInfo(appId, deviceId); + ApiResponse localVarResponse = await GetKioskSettingsAsyncWithHttpInfo(appId, deviceId); return localVarResponse.Data; } /// - /// Get the status of Cash Payment Methon on Kisok [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// /// - /// Task of ApiResponse (RestApiArrayResultKioskCashPaymentSettings) - public async System.Threading.Tasks.Task> GetKioskCashPaymentSettingsAsyncWithHttpInfo (string appId, string deviceId) + /// 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->GetKioskCashPaymentSettings"); + 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->GetKioskCashPaymentSettings"); + throw new ApiException(400, "Missing required parameter 'deviceId' when calling HydraApi->GetKioskSettings"); - var localVarPath = "./api/v1.0/{appId}/kioskcashsettings/{deviceId}"; + var localVarPath = "./api/v1.0/{appId}/kiosksettings/{deviceId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2815,13 +3249,13 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultKioskCashPaymentSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultKioskCashPaymentSettings))); + (RestApiResultKioskSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskSettings))); } /// @@ -2964,7 +3398,7 @@ public async System.Threading.Tasks.Task> } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// RestApiResultHydraConfig @@ -2975,7 +3409,7 @@ public RestApiResultHydraConfig GetSettings () } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// ApiResponse of RestApiResultHydraConfig @@ -3033,7 +3467,7 @@ public ApiResponse< RestApiResultHydraConfig > GetSettingsWithHttpInfo () } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// Task of RestApiResultHydraConfig @@ -3045,7 +3479,7 @@ public async System.Threading.Tasks.Task GetSettingsAs } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// Task of ApiResponse (RestApiResultHydraConfig) @@ -3103,7 +3537,7 @@ public async System.Threading.Tasks.Task> } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3116,7 +3550,7 @@ public Object HydraCreateEmv (string appId, EmvTerminal emv) } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3196,7 +3630,7 @@ public ApiResponse< Object > HydraCreateEmvWithHttpInfo (string appId, EmvTermin } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3210,7 +3644,7 @@ public async System.Threading.Tasks.Task HydraCreateEmvAsync (string app } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3290,7 +3724,7 @@ public async System.Threading.Tasks.Task> HydraCreateEmvAsyn } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3303,7 +3737,7 @@ public Object HydraDeleteEmv (string appId, int? id) } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3371,7 +3805,7 @@ public ApiResponse< Object > HydraDeleteEmvWithHttpInfo (string appId, int? id) } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3385,7 +3819,7 @@ public async System.Threading.Tasks.Task HydraDeleteEmvAsync (string app } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3453,7 +3887,7 @@ public async System.Threading.Tasks.Task> HydraDeleteEmvAsyn } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3467,7 +3901,7 @@ public RestApiResultHydraStatus HydraDetachStoreFromKiosk (string appId, int? st } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3540,7 +3974,7 @@ public ApiResponse< RestApiResultHydraStatus > HydraDetachStoreFromKioskWithHttp } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3555,7 +3989,7 @@ public async System.Threading.Tasks.Task HydraDetachSt } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3628,7 +4062,7 @@ public async System.Threading.Tasks.Task> } /// - /// List EMV terminals belonging to the given AppNameId + /// /// /// Thrown when fails to make API call /// @@ -3640,7 +4074,7 @@ public RestApiArrayResultEmvTerminalWithAssignments HydraGetEmvsForAppId (string } /// - /// List EMV terminals belonging to the given AppNameId + /// /// /// Thrown when fails to make API call /// @@ -3703,7 +4137,7 @@ public ApiResponse< RestApiArrayResultEmvTerminalWithAssignments > HydraGetEmvsF } /// - /// List EMV terminals belonging to the given AppNameId + /// /// /// Thrown when fails to make API call /// @@ -3716,7 +4150,7 @@ public async System.Threading.Tasks.Task - /// List EMV terminals belonging to the given AppNameId + /// /// /// Thrown when fails to make API call /// @@ -3779,7 +4213,7 @@ public async System.Threading.Tasks.Task - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3792,7 +4226,7 @@ public void LoginWithDeviceId (string deviceId, string hydraUserType = null, str } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3859,7 +4293,7 @@ public ApiResponse LoginWithDeviceIdWithHttpInfo (string deviceId, strin } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3873,7 +4307,7 @@ public async System.Threading.Tasks.Task LoginWithDeviceIdAsync (string deviceId } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3940,7 +4374,7 @@ public async System.Threading.Tasks.Task> LoginWithDeviceIdA } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -3953,7 +4387,7 @@ public RestApiResultHydraStatus Register (string appId, HydraRegistrationRequest } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -4033,7 +4467,7 @@ public ApiResponse< RestApiResultHydraStatus > RegisterWithHttpInfo (string appI } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -4047,7 +4481,7 @@ public async System.Threading.Tasks.Task RegisterAsync } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -4127,7 +4561,7 @@ public async System.Threading.Tasks.Task> } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -4139,7 +4573,7 @@ public void UnAssign (string appId, string deviceId) } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -4207,7 +4641,7 @@ public ApiResponse UnAssignWithHttpInfo (string appId, string deviceId) } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -4220,7 +4654,7 @@ public async System.Threading.Tasks.Task UnAssignAsync (string appId, string dev } /// - /// [Private] + /// /// /// Thrown when fails to make API call /// @@ -4288,7 +4722,7 @@ public async System.Threading.Tasks.Task> UnAssignAsyncWithH } /// - /// Unassign the currently assigned EMV terminal from a kiosk + /// /// /// Thrown when fails to make API call /// @@ -4300,7 +4734,7 @@ public void UnassignEmv (string appId, int? hydraConfigId) } /// - /// Unassign the currently assigned EMV terminal from a kiosk + /// /// /// Thrown when fails to make API call /// @@ -4368,7 +4802,7 @@ public ApiResponse UnassignEmvWithHttpInfo (string appId, int? hydraConf } /// - /// Unassign the currently assigned EMV terminal from a kiosk + /// /// /// Thrown when fails to make API call /// @@ -4381,7 +4815,7 @@ public async System.Threading.Tasks.Task UnassignEmvAsync (string appId, int? hy } /// - /// Unassign the currently assigned EMV terminal from a kiosk + /// /// /// Thrown when fails to make API call /// @@ -4449,7 +4883,7 @@ public async System.Threading.Tasks.Task> UnassignEmvAsyncWi } /// - /// Update the Cash Payment Methon Visiability on Kisok [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -4462,7 +4896,7 @@ public void UpdateKioskCashVisibilitySettings (string appId, string deviceId, bo } /// - /// Update the Cash Payment Methon Visiability on Kisok [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -4535,7 +4969,7 @@ public ApiResponse UpdateKioskCashVisibilitySettingsWithHttpInfo (string } /// - /// Update the Cash Payment Methon Visiability on Kisok [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -4549,7 +4983,7 @@ public async System.Threading.Tasks.Task UpdateKioskCashVisibilitySettingsAsync } /// - /// Update the Cash Payment Methon Visiability on Kisok [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -4621,5 +5055,202 @@ public async System.Threading.Tasks.Task> UpdateKioskCashVis 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/OrderIngestApi.cs b/src/Flipdish/Api/IntegrationMetadataCatalogueApi.cs similarity index 54% rename from src/Flipdish/Api/OrderIngestApi.cs rename to src/Flipdish/Api/IntegrationMetadataCatalogueApi.cs index 3d4c318a..63a9c7d9 100644 --- a/src/Flipdish/Api/OrderIngestApi.cs +++ b/src/Flipdish/Api/IntegrationMetadataCatalogueApi.cs @@ -21,72 +21,80 @@ namespace Flipdish.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IOrderIngestApi : IApiAccessor + public interface IIntegrationMetadataCatalogueApi : IApiAccessor { #region Synchronous Operations /// - /// Provides an ability to ingest a 3rd party order into Flipdish ecosystem + /// /// /// - /// [ALPHA - this endpoint is under internal development, it is not available just yet to use in your production system] + /// /// /// Thrown when fails to make API call - /// - /// - /// RestApiResultOrderIngestSubmitOrderResponse - RestApiResultOrderIngestSubmitOrderResponse OrderIngestSubmitNewOrder (OrderIngestSubmitOrderRequest order, string appNameId); + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiResultPixelPointProductCatalogue + RestApiResultPixelPointProductCatalogue IntegrationMetadataCatalogueGetPixelPointProducts (int? storeId, string nameContains = null, int? page = null, int? pageSize = null); /// - /// Provides an ability to ingest a 3rd party order into Flipdish ecosystem + /// /// /// - /// [ALPHA - this endpoint is under internal development, it is not available just yet to use in your production system] + /// /// /// Thrown when fails to make API call - /// - /// - /// ApiResponse of RestApiResultOrderIngestSubmitOrderResponse - ApiResponse OrderIngestSubmitNewOrderWithHttpInfo (OrderIngestSubmitOrderRequest order, string appNameId); + /// + /// (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 /// - /// Provides an ability to ingest a 3rd party order into Flipdish ecosystem + /// /// /// - /// [ALPHA - this endpoint is under internal development, it is not available just yet to use in your production system] + /// /// /// Thrown when fails to make API call - /// - /// - /// Task of RestApiResultOrderIngestSubmitOrderResponse - System.Threading.Tasks.Task OrderIngestSubmitNewOrderAsync (OrderIngestSubmitOrderRequest order, string appNameId); + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiResultPixelPointProductCatalogue + System.Threading.Tasks.Task IntegrationMetadataCatalogueGetPixelPointProductsAsync (int? storeId, string nameContains = null, int? page = null, int? pageSize = null); /// - /// Provides an ability to ingest a 3rd party order into Flipdish ecosystem + /// /// /// - /// [ALPHA - this endpoint is under internal development, it is not available just yet to use in your production system] + /// /// /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (RestApiResultOrderIngestSubmitOrderResponse) - System.Threading.Tasks.Task> OrderIngestSubmitNewOrderAsyncWithHttpInfo (OrderIngestSubmitOrderRequest order, string appNameId); + /// + /// (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 OrderIngestApi : IOrderIngestApi + public partial class IntegrationMetadataCatalogueApi : IIntegrationMetadataCatalogueApi { private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - public OrderIngestApi(String basePath) + public IntegrationMetadataCatalogueApi(String basePath) { this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; @@ -94,12 +102,12 @@ public OrderIngestApi(String basePath) } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// - public OrderIngestApi(Flipdish.Client.Configuration configuration = null) + public IntegrationMetadataCatalogueApi(Flipdish.Client.Configuration configuration = null) { if (configuration == null) // use the default one in Configuration this.Configuration = Flipdish.Client.Configuration.Default; @@ -173,35 +181,36 @@ public void AddDefaultHeader(string key, string value) } /// - /// Provides an ability to ingest a 3rd party order into Flipdish ecosystem [ALPHA - this endpoint is under internal development, it is not available just yet to use in your production system] + /// /// /// Thrown when fails to make API call - /// - /// - /// RestApiResultOrderIngestSubmitOrderResponse - public RestApiResultOrderIngestSubmitOrderResponse OrderIngestSubmitNewOrder (OrderIngestSubmitOrderRequest order, string appNameId) + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiResultPixelPointProductCatalogue + public RestApiResultPixelPointProductCatalogue IntegrationMetadataCatalogueGetPixelPointProducts (int? storeId, string nameContains = null, int? page = null, int? pageSize = null) { - ApiResponse localVarResponse = OrderIngestSubmitNewOrderWithHttpInfo(order, appNameId); + ApiResponse localVarResponse = IntegrationMetadataCatalogueGetPixelPointProductsWithHttpInfo(storeId, nameContains, page, pageSize); return localVarResponse.Data; } /// - /// Provides an ability to ingest a 3rd party order into Flipdish ecosystem [ALPHA - this endpoint is under internal development, it is not available just yet to use in your production system] + /// /// /// Thrown when fails to make API call - /// - /// - /// ApiResponse of RestApiResultOrderIngestSubmitOrderResponse - public ApiResponse< RestApiResultOrderIngestSubmitOrderResponse > OrderIngestSubmitNewOrderWithHttpInfo (OrderIngestSubmitOrderRequest order, string appNameId) + /// + /// (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 'order' is set - if (order == null) - throw new ApiException(400, "Missing required parameter 'order' when calling OrderIngestApi->OrderIngestSubmitNewOrder"); - // verify the required parameter 'appNameId' is set - if (appNameId == null) - throw new ApiException(400, "Missing required parameter 'appNameId' when calling OrderIngestApi->OrderIngestSubmitNewOrder"); - - var localVarPath = "./api/v1.0/{appNameId}/order-ingest/submit"; + // 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); @@ -211,11 +220,6 @@ public ApiResponse< RestApiResultOrderIngestSubmitOrderResponse > OrderIngestSub // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -230,15 +234,10 @@ public ApiResponse< RestApiResultOrderIngestSubmitOrderResponse > OrderIngestSub if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (appNameId != null) localVarPathParams.Add("appNameId", this.Configuration.ApiClient.ParameterToString(appNameId)); // path parameter - if (order != null && order.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(order); // http body (model) parameter - } - else - { - localVarPostBody = order; // byte array - } + 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 @@ -249,53 +248,54 @@ public ApiResponse< RestApiResultOrderIngestSubmitOrderResponse > OrderIngestSub // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("OrderIngestSubmitNewOrder", localVarResponse); + Exception exception = ExceptionFactory("IntegrationMetadataCatalogueGetPixelPointProducts", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultOrderIngestSubmitOrderResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderIngestSubmitOrderResponse))); + (RestApiResultPixelPointProductCatalogue) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPixelPointProductCatalogue))); } /// - /// Provides an ability to ingest a 3rd party order into Flipdish ecosystem [ALPHA - this endpoint is under internal development, it is not available just yet to use in your production system] + /// /// /// Thrown when fails to make API call - /// - /// - /// Task of RestApiResultOrderIngestSubmitOrderResponse - public async System.Threading.Tasks.Task OrderIngestSubmitNewOrderAsync (OrderIngestSubmitOrderRequest order, string appNameId) + /// + /// (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 OrderIngestSubmitNewOrderAsyncWithHttpInfo(order, appNameId); + ApiResponse localVarResponse = await IntegrationMetadataCatalogueGetPixelPointProductsAsyncWithHttpInfo(storeId, nameContains, page, pageSize); return localVarResponse.Data; } /// - /// Provides an ability to ingest a 3rd party order into Flipdish ecosystem [ALPHA - this endpoint is under internal development, it is not available just yet to use in your production system] + /// /// /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (RestApiResultOrderIngestSubmitOrderResponse) - public async System.Threading.Tasks.Task> OrderIngestSubmitNewOrderAsyncWithHttpInfo (OrderIngestSubmitOrderRequest order, string appNameId) + /// + /// (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 'order' is set - if (order == null) - throw new ApiException(400, "Missing required parameter 'order' when calling OrderIngestApi->OrderIngestSubmitNewOrder"); - // verify the required parameter 'appNameId' is set - if (appNameId == null) - throw new ApiException(400, "Missing required parameter 'appNameId' when calling OrderIngestApi->OrderIngestSubmitNewOrder"); - - var localVarPath = "./api/v1.0/{appNameId}/order-ingest/submit"; + // 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); @@ -305,11 +305,6 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultOrderIngestSubmitOrderResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderIngestSubmitOrderResponse))); + (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/StripeCustomConnectAdminApi.cs b/src/Flipdish/Api/KioskEntitlementsApi.cs similarity index 61% rename from src/Flipdish/Api/StripeCustomConnectAdminApi.cs rename to src/Flipdish/Api/KioskEntitlementsApi.cs index 79960cf7..e73bca7c 100644 --- a/src/Flipdish/Api/StripeCustomConnectAdminApi.cs +++ b/src/Flipdish/Api/KioskEntitlementsApi.cs @@ -21,68 +21,68 @@ namespace Flipdish.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IStripeCustomConnectAdminApi : IApiAccessor + public interface IKioskEntitlementsApi : IApiAccessor { #region Synchronous Operations /// - /// Create a new Bank Account and Stripe connected account + /// /// /// /// /// /// Thrown when fails to make API call - /// Accounts to be initialized in stripe - /// RestApiResultBankAccountDetail - RestApiResultBankAccountDetail InitializeBankAccountConnectedAccount (List accounts); + /// + /// RestApiResultKioskEntitlementsResult + RestApiResultKioskEntitlementsResult QueryKioskEntitlementsByOrgId (string orgId); /// - /// Create a new Bank Account and Stripe connected account + /// /// /// /// /// /// Thrown when fails to make API call - /// Accounts to be initialized in stripe - /// ApiResponse of RestApiResultBankAccountDetail - ApiResponse InitializeBankAccountConnectedAccountWithHttpInfo (List accounts); + /// + /// ApiResponse of RestApiResultKioskEntitlementsResult + ApiResponse QueryKioskEntitlementsByOrgIdWithHttpInfo (string orgId); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Create a new Bank Account and Stripe connected account + /// /// /// /// /// /// Thrown when fails to make API call - /// Accounts to be initialized in stripe - /// Task of RestApiResultBankAccountDetail - System.Threading.Tasks.Task InitializeBankAccountConnectedAccountAsync (List accounts); + /// + /// Task of RestApiResultKioskEntitlementsResult + System.Threading.Tasks.Task QueryKioskEntitlementsByOrgIdAsync (string orgId); /// - /// Create a new Bank Account and Stripe connected account + /// /// /// /// /// /// Thrown when fails to make API call - /// Accounts to be initialized in stripe - /// Task of ApiResponse (RestApiResultBankAccountDetail) - System.Threading.Tasks.Task> InitializeBankAccountConnectedAccountAsyncWithHttpInfo (List accounts); + /// + /// 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 StripeCustomConnectAdminApi : IStripeCustomConnectAdminApi + public partial class KioskEntitlementsApi : IKioskEntitlementsApi { private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - public StripeCustomConnectAdminApi(String basePath) + public KioskEntitlementsApi(String basePath) { this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; @@ -90,12 +90,12 @@ public StripeCustomConnectAdminApi(String basePath) } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// - public StripeCustomConnectAdminApi(Flipdish.Client.Configuration configuration = null) + public KioskEntitlementsApi(Flipdish.Client.Configuration configuration = null) { if (configuration == null) // use the default one in Configuration this.Configuration = Flipdish.Client.Configuration.Default; @@ -169,30 +169,30 @@ public void AddDefaultHeader(string key, string value) } /// - /// Create a new Bank Account and Stripe connected account + /// /// /// Thrown when fails to make API call - /// Accounts to be initialized in stripe - /// RestApiResultBankAccountDetail - public RestApiResultBankAccountDetail InitializeBankAccountConnectedAccount (List accounts) + /// + /// RestApiResultKioskEntitlementsResult + public RestApiResultKioskEntitlementsResult QueryKioskEntitlementsByOrgId (string orgId) { - ApiResponse localVarResponse = InitializeBankAccountConnectedAccountWithHttpInfo(accounts); + ApiResponse localVarResponse = QueryKioskEntitlementsByOrgIdWithHttpInfo(orgId); return localVarResponse.Data; } /// - /// Create a new Bank Account and Stripe connected account + /// /// /// Thrown when fails to make API call - /// Accounts to be initialized in stripe - /// ApiResponse of RestApiResultBankAccountDetail - public ApiResponse< RestApiResultBankAccountDetail > InitializeBankAccountConnectedAccountWithHttpInfo (List accounts) + /// + /// ApiResponse of RestApiResultKioskEntitlementsResult + public ApiResponse< RestApiResultKioskEntitlementsResult > QueryKioskEntitlementsByOrgIdWithHttpInfo (string orgId) { - // verify the required parameter 'accounts' is set - if (accounts == null) - throw new ApiException(400, "Missing required parameter 'accounts' when calling StripeCustomConnectAdminApi->InitializeBankAccountConnectedAccount"); + // 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/customconnect/initialize-bank-account"; + var localVarPath = "./api/v1.0/orgs/{orgId}/kiosk/entitlements"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -202,11 +202,6 @@ public ApiResponse< RestApiResultBankAccountDetail > InitializeBankAccountConnec // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -221,14 +216,7 @@ public ApiResponse< RestApiResultBankAccountDetail > InitializeBankAccountConnec if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (accounts != null && accounts.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(accounts); // http body (model) parameter - } - else - { - localVarPostBody = accounts; // byte array - } + if (orgId != null) localVarPathParams.Add("orgId", this.Configuration.ApiClient.ParameterToString(orgId)); // path parameter // authentication (oauth2) required // oauth required @@ -239,48 +227,48 @@ public ApiResponse< RestApiResultBankAccountDetail > InitializeBankAccountConnec // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("InitializeBankAccountConnectedAccount", localVarResponse); + Exception exception = ExceptionFactory("QueryKioskEntitlementsByOrgId", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultBankAccountDetail) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBankAccountDetail))); + (RestApiResultKioskEntitlementsResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskEntitlementsResult))); } /// - /// Create a new Bank Account and Stripe connected account + /// /// /// Thrown when fails to make API call - /// Accounts to be initialized in stripe - /// Task of RestApiResultBankAccountDetail - public async System.Threading.Tasks.Task InitializeBankAccountConnectedAccountAsync (List accounts) + /// + /// Task of RestApiResultKioskEntitlementsResult + public async System.Threading.Tasks.Task QueryKioskEntitlementsByOrgIdAsync (string orgId) { - ApiResponse localVarResponse = await InitializeBankAccountConnectedAccountAsyncWithHttpInfo(accounts); + ApiResponse localVarResponse = await QueryKioskEntitlementsByOrgIdAsyncWithHttpInfo(orgId); return localVarResponse.Data; } /// - /// Create a new Bank Account and Stripe connected account + /// /// /// Thrown when fails to make API call - /// Accounts to be initialized in stripe - /// Task of ApiResponse (RestApiResultBankAccountDetail) - public async System.Threading.Tasks.Task> InitializeBankAccountConnectedAccountAsyncWithHttpInfo (List accounts) + /// + /// Task of ApiResponse (RestApiResultKioskEntitlementsResult) + public async System.Threading.Tasks.Task> QueryKioskEntitlementsByOrgIdAsyncWithHttpInfo (string orgId) { - // verify the required parameter 'accounts' is set - if (accounts == null) - throw new ApiException(400, "Missing required parameter 'accounts' when calling StripeCustomConnectAdminApi->InitializeBankAccountConnectedAccount"); + // 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/customconnect/initialize-bank-account"; + var localVarPath = "./api/v1.0/orgs/{orgId}/kiosk/entitlements"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -290,11 +278,6 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultBankAccountDetail) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBankAccountDetail))); + (RestApiResultKioskEntitlementsResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskEntitlementsResult))); } } diff --git a/src/Flipdish/Api/KioskIotApi.cs b/src/Flipdish/Api/KioskIotApi.cs index e058d97c..699b3cf4 100644 --- a/src/Flipdish/Api/KioskIotApi.cs +++ b/src/Flipdish/Api/KioskIotApi.cs @@ -25,29 +25,29 @@ public interface IKioskIotApi : IApiAccessor { #region Synchronous Operations /// - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// RestApiResultKioskIotConnectionParameters RestApiResultKioskIotConnectionParameters GetKioskIotConnection (); /// - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// ApiResponse of RestApiResultKioskIotConnectionParameters ApiResponse GetKioskIotConnectionWithHttpInfo (); /// - /// Get the IoT time series values for a given Kiosk Id, properties and time range + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -56,10 +56,10 @@ public interface IKioskIotApi : IApiAccessor RestApiResultTelemetrySeriesResult QueryTelemetrySeries (string appId, TelemetrySeriesQueryParameters queryParams); /// - /// Get the IoT time series values for a given Kiosk Id, properties and time range + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -69,29 +69,29 @@ public interface IKioskIotApi : IApiAccessor #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// Task of RestApiResultKioskIotConnectionParameters System.Threading.Tasks.Task GetKioskIotConnectionAsync (); /// - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// Task of ApiResponse (RestApiResultKioskIotConnectionParameters) System.Threading.Tasks.Task> GetKioskIotConnectionAsyncWithHttpInfo (); /// - /// Get the IoT time series values for a given Kiosk Id, properties and time range + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -100,10 +100,10 @@ public interface IKioskIotApi : IApiAccessor System.Threading.Tasks.Task QueryTelemetrySeriesAsync (string appId, TelemetrySeriesQueryParameters queryParams); /// - /// Get the IoT time series values for a given Kiosk Id, properties and time range + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -211,7 +211,7 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// RestApiResultKioskIotConnectionParameters @@ -222,7 +222,7 @@ public RestApiResultKioskIotConnectionParameters GetKioskIotConnection () } /// - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// ApiResponse of RestApiResultKioskIotConnectionParameters @@ -280,7 +280,7 @@ public ApiResponse< RestApiResultKioskIotConnectionParameters > GetKioskIotConne } /// - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// Task of RestApiResultKioskIotConnectionParameters @@ -292,7 +292,7 @@ public async System.Threading.Tasks.Task - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// Task of ApiResponse (RestApiResultKioskIotConnectionParameters) @@ -350,7 +350,7 @@ public async System.Threading.Tasks.Task - /// Get the IoT time series values for a given Kiosk Id, properties and time range [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -363,7 +363,7 @@ public RestApiResultTelemetrySeriesResult QueryTelemetrySeries (string appId, Te } /// - /// Get the IoT time series values for a given Kiosk Id, properties and time range [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -443,7 +443,7 @@ public ApiResponse< RestApiResultTelemetrySeriesResult > QueryTelemetrySeriesWit } /// - /// Get the IoT time series values for a given Kiosk Id, properties and time range [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -457,7 +457,7 @@ public async System.Threading.Tasks.Task Que } /// - /// Get the IoT time series values for a given Kiosk Id, properties and time range [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// diff --git a/src/Flipdish/Api/LocationApi.cs b/src/Flipdish/Api/LocationApi.cs index f594f12a..ccd0561c 100644 --- a/src/Flipdish/Api/LocationApi.cs +++ b/src/Flipdish/Api/LocationApi.cs @@ -25,287 +25,287 @@ public interface ILocationApi : IApiAccessor { #region Synchronous Operations /// - /// Create a Location i.e: Table, Hotel Room, Car park space + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for creating the Location - /// Id of the Location area where the Location belongs - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// Object Object CreateLocation (List createLocationInput, int? locationAreaId, string appId, int? storeId); /// - /// Create a Location i.e: Table, Hotel Room, Car park space + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for creating the Location - /// Id of the Location area where the Location belongs - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// ApiResponse of Object ApiResponse CreateLocationWithHttpInfo (List createLocationInput, int? locationAreaId, string appId, int? storeId); /// - /// Set a Location as deleted + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// Object Object DeleteLocation (int? locationId, int? locationAreaId, string appId, int? storeId); /// - /// Set a Location as deleted + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// ApiResponse of Object ApiResponse DeleteLocationWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId); /// - /// Set or unset External Location Id on a Location + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location that will be mapped - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store - /// External Id to be mapped to the location (optional) + /// + /// + /// + /// + /// (optional) /// RestApiResultMappedLocation RestApiResultMappedLocation MapLocationToExternalId (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null); /// - /// Set or unset External Location Id on a Location + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location that will be mapped - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store - /// External Id to be mapped to the location (optional) + /// + /// + /// + /// + /// (optional) /// ApiResponse of RestApiResultMappedLocation ApiResponse MapLocationToExternalIdWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null); /// - /// Move a Location to a different location Area + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the new Location area that it should be moved to - /// Id of the new Location area that it should be moved to - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// Object Object MoveLocation (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId); /// - /// Move a Location to a different location Area + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the new Location area that it should be moved to - /// Id of the new Location area that it should be moved to - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// ApiResponse of Object ApiResponse MoveLocationWithHttpInfo (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId); /// - /// Update a Location i.e: Table, Hotel Room, Car park space + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for updating the Location - /// Id of the Location area where the Location belongs - /// Id of the Location to be updated - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// RestApiResultLocationAreaLocation RestApiResultLocationAreaLocation UpdateLocation (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId); /// - /// Update a Location i.e: Table, Hotel Room, Car park space + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for updating the Location - /// Id of the Location area where the Location belongs - /// Id of the Location to be updated - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// ApiResponse of RestApiResultLocationAreaLocation ApiResponse UpdateLocationWithHttpInfo (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Create a Location i.e: Table, Hotel Room, Car park space + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for creating the Location - /// Id of the Location area where the Location belongs - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// Task of Object System.Threading.Tasks.Task CreateLocationAsync (List createLocationInput, int? locationAreaId, string appId, int? storeId); /// - /// Create a Location i.e: Table, Hotel Room, Car park space + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for creating the Location - /// Id of the Location area where the Location belongs - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// Task of ApiResponse (Object) System.Threading.Tasks.Task> CreateLocationAsyncWithHttpInfo (List createLocationInput, int? locationAreaId, string appId, int? storeId); /// - /// Set a Location as deleted + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// Task of Object System.Threading.Tasks.Task DeleteLocationAsync (int? locationId, int? locationAreaId, string appId, int? storeId); /// - /// Set a Location as deleted + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// Task of ApiResponse (Object) System.Threading.Tasks.Task> DeleteLocationAsyncWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId); /// - /// Set or unset External Location Id on a Location + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location that will be mapped - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store - /// External Id to be mapped to the location (optional) + /// + /// + /// + /// + /// (optional) /// Task of RestApiResultMappedLocation System.Threading.Tasks.Task MapLocationToExternalIdAsync (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null); /// - /// Set or unset External Location Id on a Location + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location that will be mapped - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store - /// External Id to be mapped to the location (optional) + /// + /// + /// + /// + /// (optional) /// Task of ApiResponse (RestApiResultMappedLocation) System.Threading.Tasks.Task> MapLocationToExternalIdAsyncWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null); /// - /// Move a Location to a different location Area + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the new Location area that it should be moved to - /// Id of the new Location area that it should be moved to - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// Task of Object System.Threading.Tasks.Task MoveLocationAsync (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId); /// - /// Move a Location to a different location Area + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the new Location area that it should be moved to - /// Id of the new Location area that it should be moved to - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// Task of ApiResponse (Object) System.Threading.Tasks.Task> MoveLocationAsyncWithHttpInfo (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId); /// - /// Update a Location i.e: Table, Hotel Room, Car park space + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for updating the Location - /// Id of the Location area where the Location belongs - /// Id of the Location to be updated - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// Task of RestApiResultLocationAreaLocation System.Threading.Tasks.Task UpdateLocationAsync (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId); /// - /// Update a Location i.e: Table, Hotel Room, Car park space + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for updating the Location - /// Id of the Location area where the Location belongs - /// Id of the Location to be updated - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// Task of ApiResponse (RestApiResultLocationAreaLocation) System.Threading.Tasks.Task> UpdateLocationAsyncWithHttpInfo (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId); #endregion Asynchronous Operations @@ -409,13 +409,13 @@ public void AddDefaultHeader(string key, string value) } /// - /// Create a Location i.e: Table, Hotel Room, Car park space + /// /// /// Thrown when fails to make API call - /// Input data for creating the Location - /// Id of the Location area where the Location belongs - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// Object public Object CreateLocation (List createLocationInput, int? locationAreaId, string appId, int? storeId) { @@ -424,13 +424,13 @@ public Object CreateLocation (List createLocationInput, int? loc } /// - /// Create a Location i.e: Table, Hotel Room, Car park space + /// /// /// Thrown when fails to make API call - /// Input data for creating the Location - /// Id of the Location area where the Location belongs - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// ApiResponse of Object public ApiResponse< Object > CreateLocationWithHttpInfo (List createLocationInput, int? locationAreaId, string appId, int? storeId) { @@ -514,13 +514,13 @@ public ApiResponse< Object > CreateLocationWithHttpInfo (List cr } /// - /// Create a Location i.e: Table, Hotel Room, Car park space + /// /// /// Thrown when fails to make API call - /// Input data for creating the Location - /// Id of the Location area where the Location belongs - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// Task of Object public async System.Threading.Tasks.Task CreateLocationAsync (List createLocationInput, int? locationAreaId, string appId, int? storeId) { @@ -530,13 +530,13 @@ public async System.Threading.Tasks.Task CreateLocationAsync (List - /// Create a Location i.e: Table, Hotel Room, Car park space + /// /// /// Thrown when fails to make API call - /// Input data for creating the Location - /// Id of the Location area where the Location belongs - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// Task of ApiResponse (Object) public async System.Threading.Tasks.Task> CreateLocationAsyncWithHttpInfo (List createLocationInput, int? locationAreaId, string appId, int? storeId) { @@ -620,13 +620,13 @@ public async System.Threading.Tasks.Task> CreateLocationAsyn } /// - /// Set a Location as deleted + /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// Object public Object DeleteLocation (int? locationId, int? locationAreaId, string appId, int? storeId) { @@ -635,13 +635,13 @@ public Object DeleteLocation (int? locationId, int? locationAreaId, string appId } /// - /// Set a Location as deleted + /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// ApiResponse of Object public ApiResponse< Object > DeleteLocationWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId) { @@ -713,13 +713,13 @@ public ApiResponse< Object > DeleteLocationWithHttpInfo (int? locationId, int? l } /// - /// Set a Location as deleted + /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// Task of Object public async System.Threading.Tasks.Task DeleteLocationAsync (int? locationId, int? locationAreaId, string appId, int? storeId) { @@ -729,13 +729,13 @@ public async System.Threading.Tasks.Task DeleteLocationAsync (int? locat } /// - /// Set a Location as deleted + /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// /// Task of ApiResponse (Object) public async System.Threading.Tasks.Task> DeleteLocationAsyncWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId) { @@ -807,14 +807,14 @@ public async System.Threading.Tasks.Task> DeleteLocationAsyn } /// - /// Set or unset External Location Id on a Location + /// /// /// Thrown when fails to make API call - /// Id of the Location that will be mapped - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store - /// External Id to be mapped to the location (optional) + /// + /// + /// + /// + /// (optional) /// RestApiResultMappedLocation public RestApiResultMappedLocation MapLocationToExternalId (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null) { @@ -823,14 +823,14 @@ public RestApiResultMappedLocation MapLocationToExternalId (int? locationId, int } /// - /// Set or unset External Location Id on a Location + /// /// /// Thrown when fails to make API call - /// Id of the Location that will be mapped - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store - /// External Id to be mapped to the location (optional) + /// + /// + /// + /// + /// (optional) /// ApiResponse of RestApiResultMappedLocation public ApiResponse< RestApiResultMappedLocation > MapLocationToExternalIdWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null) { @@ -903,14 +903,14 @@ public ApiResponse< RestApiResultMappedLocation > MapLocationToExternalIdWithHtt } /// - /// Set or unset External Location Id on a Location + /// /// /// Thrown when fails to make API call - /// Id of the Location that will be mapped - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store - /// External Id to be mapped to the location (optional) + /// + /// + /// + /// + /// (optional) /// Task of RestApiResultMappedLocation public async System.Threading.Tasks.Task MapLocationToExternalIdAsync (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null) { @@ -920,14 +920,14 @@ public async System.Threading.Tasks.Task MapLocatio } /// - /// Set or unset External Location Id on a Location + /// /// /// Thrown when fails to make API call - /// Id of the Location that will be mapped - /// Id of the Location Area that the Location belong - /// AppId i.e: (fd1234) - /// Id of the Store - /// External Id to be mapped to the location (optional) + /// + /// + /// + /// + /// (optional) /// Task of ApiResponse (RestApiResultMappedLocation) public async System.Threading.Tasks.Task> MapLocationToExternalIdAsyncWithHttpInfo (int? locationId, int? locationAreaId, string appId, int? storeId, string externalLocationId = null) { @@ -1000,14 +1000,14 @@ public async System.Threading.Tasks.Task - /// Move a Location to a different location Area + /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the new Location area that it should be moved to - /// Id of the new Location area that it should be moved to - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// Object public Object MoveLocation (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId) { @@ -1016,14 +1016,14 @@ public Object MoveLocation (int? locationId, int? locationAreaId, int? newLocati } /// - /// Move a Location to a different location Area + /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the new Location area that it should be moved to - /// Id of the new Location area that it should be moved to - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// ApiResponse of Object public ApiResponse< Object > MoveLocationWithHttpInfo (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId) { @@ -1099,14 +1099,14 @@ public ApiResponse< Object > MoveLocationWithHttpInfo (int? locationId, int? loc } /// - /// Move a Location to a different location Area + /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the new Location area that it should be moved to - /// Id of the new Location area that it should be moved to - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// Task of Object public async System.Threading.Tasks.Task MoveLocationAsync (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId) { @@ -1116,14 +1116,14 @@ public async System.Threading.Tasks.Task MoveLocationAsync (int? locatio } /// - /// Move a Location to a different location Area + /// /// /// Thrown when fails to make API call - /// Id of the Location that will be moved - /// Id of the new Location area that it should be moved to - /// Id of the new Location area that it should be moved to - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// Task of ApiResponse (Object) public async System.Threading.Tasks.Task> MoveLocationAsyncWithHttpInfo (int? locationId, int? locationAreaId, int? newLocationAreaId, string appId, int? storeId) { @@ -1199,14 +1199,14 @@ public async System.Threading.Tasks.Task> MoveLocationAsyncW } /// - /// Update a Location i.e: Table, Hotel Room, Car park space + /// /// /// Thrown when fails to make API call - /// Input data for updating the Location - /// Id of the Location area where the Location belongs - /// Id of the Location to be updated - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// RestApiResultLocationAreaLocation public RestApiResultLocationAreaLocation UpdateLocation (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId) { @@ -1215,14 +1215,14 @@ public RestApiResultLocationAreaLocation UpdateLocation (CreateLocation updateLo } /// - /// Update a Location i.e: Table, Hotel Room, Car park space + /// /// /// Thrown when fails to make API call - /// Input data for updating the Location - /// Id of the Location area where the Location belongs - /// Id of the Location to be updated - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// ApiResponse of RestApiResultLocationAreaLocation public ApiResponse< RestApiResultLocationAreaLocation > UpdateLocationWithHttpInfo (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId) { @@ -1310,14 +1310,14 @@ public ApiResponse< RestApiResultLocationAreaLocation > UpdateLocationWithHttpIn } /// - /// Update a Location i.e: Table, Hotel Room, Car park space + /// /// /// Thrown when fails to make API call - /// Input data for updating the Location - /// Id of the Location area where the Location belongs - /// Id of the Location to be updated - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// Task of RestApiResultLocationAreaLocation public async System.Threading.Tasks.Task UpdateLocationAsync (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId) { @@ -1327,14 +1327,14 @@ public async System.Threading.Tasks.Task Upda } /// - /// Update a Location i.e: Table, Hotel Room, Car park space + /// /// /// Thrown when fails to make API call - /// Input data for updating the Location - /// Id of the Location area where the Location belongs - /// Id of the Location to be updated - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// + /// + /// /// Task of ApiResponse (RestApiResultLocationAreaLocation) public async System.Threading.Tasks.Task> UpdateLocationAsyncWithHttpInfo (CreateLocation updateLocationInput, int? locationAreaId, int? locationId, string appId, int? storeId) { diff --git a/src/Flipdish/Api/LocationAreasApi.cs b/src/Flipdish/Api/LocationAreasApi.cs index 5242551f..69b3c5e6 100644 --- a/src/Flipdish/Api/LocationAreasApi.cs +++ b/src/Flipdish/Api/LocationAreasApi.cs @@ -25,204 +25,204 @@ public interface ILocationAreasApi : IApiAccessor { #region Synchronous Operations /// - /// Create a Location Area, i.e: Room, Floor, Parking lot + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for creating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// Object Object CreateLocationArea (CreateLocationArea locationAreaInput, string appId, int? storeId); /// - /// Create a Location Area, i.e: Room, Floor, Parking lot + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for creating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// ApiResponse of Object ApiResponse CreateLocationAreaWithHttpInfo (CreateLocationArea locationAreaInput, string appId, int? storeId); /// - /// Retrieve a Location Area + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// RestApiResultLocationAreaWithLocations RestApiResultLocationAreaWithLocations GetLocationArea (int? locationAreaId, string appId, int? storeId); /// - /// Retrieve a Location Area + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// ApiResponse of RestApiResultLocationAreaWithLocations ApiResponse GetLocationAreaWithHttpInfo (int? locationAreaId, string appId, int? storeId); /// - /// Retrieve all Location Areas for a Store + /// /// /// /// /// /// Thrown when fails to make API call - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// /// RestApiArrayResultLocationAreaWithLocations RestApiArrayResultLocationAreaWithLocations GetLocationAreasForStore (string appId, int? storeId); /// - /// Retrieve all Location Areas for a Store + /// /// /// /// /// /// Thrown when fails to make API call - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// /// ApiResponse of RestApiArrayResultLocationAreaWithLocations ApiResponse GetLocationAreasForStoreWithHttpInfo (string appId, int? storeId); /// - /// Update a Location Area, i.e: Room, Floor, Car park space + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for updating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// /// RestApiResultLocationArea RestApiResultLocationArea UpdateLocationArea (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId); /// - /// Update a Location Area, i.e: Room, Floor, Car park space + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for updating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// /// ApiResponse of RestApiResultLocationArea ApiResponse UpdateLocationAreaWithHttpInfo (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Create a Location Area, i.e: Room, Floor, Parking lot + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for creating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// Task of Object System.Threading.Tasks.Task CreateLocationAreaAsync (CreateLocationArea locationAreaInput, string appId, int? storeId); /// - /// Create a Location Area, i.e: Room, Floor, Parking lot + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for creating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// Task of ApiResponse (Object) System.Threading.Tasks.Task> CreateLocationAreaAsyncWithHttpInfo (CreateLocationArea locationAreaInput, string appId, int? storeId); /// - /// Retrieve a Location Area + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// Task of RestApiResultLocationAreaWithLocations System.Threading.Tasks.Task GetLocationAreaAsync (int? locationAreaId, string appId, int? storeId); /// - /// Retrieve a Location Area + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// Task of ApiResponse (RestApiResultLocationAreaWithLocations) System.Threading.Tasks.Task> GetLocationAreaAsyncWithHttpInfo (int? locationAreaId, string appId, int? storeId); /// - /// Retrieve all Location Areas for a Store + /// /// /// /// /// /// Thrown when fails to make API call - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// /// Task of RestApiArrayResultLocationAreaWithLocations System.Threading.Tasks.Task GetLocationAreasForStoreAsync (string appId, int? storeId); /// - /// Retrieve all Location Areas for a Store + /// /// /// /// /// /// Thrown when fails to make API call - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// /// Task of ApiResponse (RestApiArrayResultLocationAreaWithLocations) System.Threading.Tasks.Task> GetLocationAreasForStoreAsyncWithHttpInfo (string appId, int? storeId); /// - /// Update a Location Area, i.e: Room, Floor, Car park space + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for updating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// /// Task of RestApiResultLocationArea System.Threading.Tasks.Task UpdateLocationAreaAsync (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId); /// - /// Update a Location Area, i.e: Room, Floor, Car park space + /// /// /// /// /// /// Thrown when fails to make API call - /// Input data for updating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// /// Task of ApiResponse (RestApiResultLocationArea) System.Threading.Tasks.Task> UpdateLocationAreaAsyncWithHttpInfo (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId); @@ -327,12 +327,12 @@ public void AddDefaultHeader(string key, string value) } /// - /// Create a Location Area, i.e: Room, Floor, Parking lot + /// /// /// Thrown when fails to make API call - /// Input data for creating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// Object public Object CreateLocationArea (CreateLocationArea locationAreaInput, string appId, int? storeId) { @@ -341,12 +341,12 @@ public Object CreateLocationArea (CreateLocationArea locationAreaInput, string a } /// - /// Create a Location Area, i.e: Room, Floor, Parking lot + /// /// /// Thrown when fails to make API call - /// Input data for creating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// ApiResponse of Object public ApiResponse< Object > CreateLocationAreaWithHttpInfo (CreateLocationArea locationAreaInput, string appId, int? storeId) { @@ -426,12 +426,12 @@ public ApiResponse< Object > CreateLocationAreaWithHttpInfo (CreateLocationArea } /// - /// Create a Location Area, i.e: Room, Floor, Parking lot + /// /// /// Thrown when fails to make API call - /// Input data for creating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// Task of Object public async System.Threading.Tasks.Task CreateLocationAreaAsync (CreateLocationArea locationAreaInput, string appId, int? storeId) { @@ -441,12 +441,12 @@ public async System.Threading.Tasks.Task CreateLocationAreaAsync (Create } /// - /// Create a Location Area, i.e: Room, Floor, Parking lot + /// /// /// Thrown when fails to make API call - /// Input data for creating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// Task of ApiResponse (Object) public async System.Threading.Tasks.Task> CreateLocationAreaAsyncWithHttpInfo (CreateLocationArea locationAreaInput, string appId, int? storeId) { @@ -526,12 +526,12 @@ public async System.Threading.Tasks.Task> CreateLocationArea } /// - /// Retrieve a Location Area + /// /// /// Thrown when fails to make API call - /// Id of the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// RestApiResultLocationAreaWithLocations public RestApiResultLocationAreaWithLocations GetLocationArea (int? locationAreaId, string appId, int? storeId) { @@ -540,12 +540,12 @@ public RestApiResultLocationAreaWithLocations GetLocationArea (int? locationArea } /// - /// Retrieve a Location Area + /// /// /// Thrown when fails to make API call - /// Id of the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// ApiResponse of RestApiResultLocationAreaWithLocations public ApiResponse< RestApiResultLocationAreaWithLocations > GetLocationAreaWithHttpInfo (int? locationAreaId, string appId, int? storeId) { @@ -613,12 +613,12 @@ public ApiResponse< RestApiResultLocationAreaWithLocations > GetLocationAreaWith } /// - /// Retrieve a Location Area + /// /// /// Thrown when fails to make API call - /// Id of the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// Task of RestApiResultLocationAreaWithLocations public async System.Threading.Tasks.Task GetLocationAreaAsync (int? locationAreaId, string appId, int? storeId) { @@ -628,12 +628,12 @@ public async System.Threading.Tasks.Task } /// - /// Retrieve a Location Area + /// /// /// Thrown when fails to make API call - /// Id of the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// Task of ApiResponse (RestApiResultLocationAreaWithLocations) public async System.Threading.Tasks.Task> GetLocationAreaAsyncWithHttpInfo (int? locationAreaId, string appId, int? storeId) { @@ -701,11 +701,11 @@ public async System.Threading.Tasks.Task - /// Retrieve all Location Areas for a Store + /// /// /// Thrown when fails to make API call - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// /// RestApiArrayResultLocationAreaWithLocations public RestApiArrayResultLocationAreaWithLocations GetLocationAreasForStore (string appId, int? storeId) { @@ -714,11 +714,11 @@ public RestApiArrayResultLocationAreaWithLocations GetLocationAreasForStore (str } /// - /// Retrieve all Location Areas for a Store + /// /// /// Thrown when fails to make API call - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// /// ApiResponse of RestApiArrayResultLocationAreaWithLocations public ApiResponse< RestApiArrayResultLocationAreaWithLocations > GetLocationAreasForStoreWithHttpInfo (string appId, int? storeId) { @@ -782,11 +782,11 @@ public ApiResponse< RestApiArrayResultLocationAreaWithLocations > GetLocationAre } /// - /// Retrieve all Location Areas for a Store + /// /// /// Thrown when fails to make API call - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// /// Task of RestApiArrayResultLocationAreaWithLocations public async System.Threading.Tasks.Task GetLocationAreasForStoreAsync (string appId, int? storeId) { @@ -796,11 +796,11 @@ public async System.Threading.Tasks.Task - /// Retrieve all Location Areas for a Store + /// /// /// Thrown when fails to make API call - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// /// Task of ApiResponse (RestApiArrayResultLocationAreaWithLocations) public async System.Threading.Tasks.Task> GetLocationAreasForStoreAsyncWithHttpInfo (string appId, int? storeId) { @@ -864,12 +864,12 @@ public async System.Threading.Tasks.Task - /// Update a Location Area, i.e: Room, Floor, Car park space + /// /// /// Thrown when fails to make API call - /// Input data for updating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// /// RestApiResultLocationArea public RestApiResultLocationArea UpdateLocationArea (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId) @@ -879,12 +879,12 @@ public RestApiResultLocationArea UpdateLocationArea (UpdateLocationArea location } /// - /// Update a Location Area, i.e: Room, Floor, Car park space + /// /// /// Thrown when fails to make API call - /// Input data for updating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// /// ApiResponse of RestApiResultLocationArea public ApiResponse< RestApiResultLocationArea > UpdateLocationAreaWithHttpInfo (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId) @@ -969,12 +969,12 @@ public ApiResponse< RestApiResultLocationArea > UpdateLocationAreaWithHttpInfo ( } /// - /// Update a Location Area, i.e: Room, Floor, Car park space + /// /// /// Thrown when fails to make API call - /// Input data for updating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// /// Task of RestApiResultLocationArea public async System.Threading.Tasks.Task UpdateLocationAreaAsync (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId) @@ -985,12 +985,12 @@ public async System.Threading.Tasks.Task UpdateLocati } /// - /// Update a Location Area, i.e: Room, Floor, Car park space + /// /// /// Thrown when fails to make API call - /// Input data for updating the Location Area - /// AppId i.e: (fd1234) - /// Id of the Store + /// + /// + /// /// /// Task of ApiResponse (RestApiResultLocationArea) public async System.Threading.Tasks.Task> UpdateLocationAreaAsyncWithHttpInfo (UpdateLocationArea locationAreaInput, string appId, int? storeId, string locationAreaId) diff --git a/src/Flipdish/Api/LookerDashboardApi.cs b/src/Flipdish/Api/LookerDashboardApi.cs index 34c8bbdd..7e3bf522 100644 --- a/src/Flipdish/Api/LookerDashboardApi.cs +++ b/src/Flipdish/Api/LookerDashboardApi.cs @@ -25,7 +25,7 @@ public interface ILookerDashboardApi : IApiAccessor { #region Synchronous Operations /// - /// Get all dashboards + /// /// /// /// @@ -36,7 +36,7 @@ public interface ILookerDashboardApi : IApiAccessor void LookerDashboardGetAll (string appId); /// - /// Get all dashboards + /// /// /// /// @@ -48,7 +48,7 @@ public interface ILookerDashboardApi : IApiAccessor #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get all dashboards + /// /// /// /// @@ -59,7 +59,7 @@ public interface ILookerDashboardApi : IApiAccessor System.Threading.Tasks.Task LookerDashboardGetAllAsync (string appId); /// - /// Get all dashboards + /// /// /// /// @@ -169,7 +169,7 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get all dashboards + /// /// /// Thrown when fails to make API call /// @@ -180,7 +180,7 @@ public void LookerDashboardGetAll (string appId) } /// - /// Get all dashboards + /// /// /// Thrown when fails to make API call /// @@ -243,7 +243,7 @@ public ApiResponse LookerDashboardGetAllWithHttpInfo (string appId) } /// - /// Get all dashboards + /// /// /// Thrown when fails to make API call /// @@ -255,7 +255,7 @@ public async System.Threading.Tasks.Task LookerDashboardGetAllAsync (string appI } /// - /// Get all dashboards + /// /// /// Thrown when fails to make API call /// diff --git a/src/Flipdish/Api/LookerSingleSignOnApi.cs b/src/Flipdish/Api/LookerSingleSignOnApi.cs index e1044004..71112801 100644 --- a/src/Flipdish/Api/LookerSingleSignOnApi.cs +++ b/src/Flipdish/Api/LookerSingleSignOnApi.cs @@ -25,55 +25,55 @@ public interface ILookerSingleSignOnApi : IApiAccessor { #region Synchronous Operations /// - /// Get the generic single sign on embed URL for Looker dashboards + /// /// /// /// /// /// Thrown when fails to make API call - /// AppNameId - /// Embed URL of the dashboard - /// Filters that will be passed to the dashboard (optional) + /// + /// + /// (optional) /// DashboardEmbed DashboardEmbed GetSSOEndpoint (string appId, string embedPath, string filters = null); /// - /// Get the generic single sign on embed URL for Looker dashboards + /// /// /// /// /// /// Thrown when fails to make API call - /// AppNameId - /// Embed URL of the dashboard - /// Filters that will be passed to the dashboard (optional) + /// + /// + /// (optional) /// ApiResponse of DashboardEmbed ApiResponse GetSSOEndpointWithHttpInfo (string appId, string embedPath, string filters = null); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get the generic single sign on embed URL for Looker dashboards + /// /// /// /// /// /// Thrown when fails to make API call - /// AppNameId - /// Embed URL of the dashboard - /// Filters that will be passed to the dashboard (optional) + /// + /// + /// (optional) /// Task of DashboardEmbed System.Threading.Tasks.Task GetSSOEndpointAsync (string appId, string embedPath, string filters = null); /// - /// Get the generic single sign on embed URL for Looker dashboards + /// /// /// /// /// /// Thrown when fails to make API call - /// AppNameId - /// Embed URL of the dashboard - /// Filters that will be passed to the dashboard (optional) + /// + /// + /// (optional) /// Task of ApiResponse (DashboardEmbed) System.Threading.Tasks.Task> GetSSOEndpointAsyncWithHttpInfo (string appId, string embedPath, string filters = null); #endregion Asynchronous Operations @@ -177,12 +177,12 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get the generic single sign on embed URL for Looker dashboards + /// /// /// Thrown when fails to make API call - /// AppNameId - /// Embed URL of the dashboard - /// Filters that will be passed to the dashboard (optional) + /// + /// + /// (optional) /// DashboardEmbed public DashboardEmbed GetSSOEndpoint (string appId, string embedPath, string filters = null) { @@ -191,12 +191,12 @@ public DashboardEmbed GetSSOEndpoint (string appId, string embedPath, string fil } /// - /// Get the generic single sign on embed URL for Looker dashboards + /// /// /// Thrown when fails to make API call - /// AppNameId - /// Embed URL of the dashboard - /// Filters that will be passed to the dashboard (optional) + /// + /// + /// (optional) /// ApiResponse of DashboardEmbed public ApiResponse< DashboardEmbed > GetSSOEndpointWithHttpInfo (string appId, string embedPath, string filters = null) { @@ -261,12 +261,12 @@ public ApiResponse< DashboardEmbed > GetSSOEndpointWithHttpInfo (string appId, s } /// - /// Get the generic single sign on embed URL for Looker dashboards + /// /// /// Thrown when fails to make API call - /// AppNameId - /// Embed URL of the dashboard - /// Filters that will be passed to the dashboard (optional) + /// + /// + /// (optional) /// Task of DashboardEmbed public async System.Threading.Tasks.Task GetSSOEndpointAsync (string appId, string embedPath, string filters = null) { @@ -276,12 +276,12 @@ public async System.Threading.Tasks.Task GetSSOEndpointAsync (st } /// - /// Get the generic single sign on embed URL for Looker dashboards + /// /// /// Thrown when fails to make API call - /// AppNameId - /// Embed URL of the dashboard - /// Filters that will be passed to the dashboard (optional) + /// + /// + /// (optional) /// Task of ApiResponse (DashboardEmbed) public async System.Threading.Tasks.Task> GetSSOEndpointAsyncWithHttpInfo (string appId, string embedPath, string filters = null) { diff --git a/src/Flipdish/Api/MenuOptionSetItemsApi.cs b/src/Flipdish/Api/MenuOptionSetItemsApi.cs index a8e0a5b7..dcba48fd 100644 --- a/src/Flipdish/Api/MenuOptionSetItemsApi.cs +++ b/src/Flipdish/Api/MenuOptionSetItemsApi.cs @@ -168,7 +168,7 @@ public interface IMenuOptionSetItemsApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse RemoveMenuItemOptionSetItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId); /// - /// [Private API] Set Tax Rate on OptionSetItem + /// Set Tax Rate on OptionSetItem /// /// /// @@ -184,7 +184,7 @@ public interface IMenuOptionSetItemsApi : IApiAccessor void SetOptionSetItemTax (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, int? taxRateId); /// - /// [Private API] Set Tax Rate on OptionSetItem + /// Set Tax Rate on OptionSetItem /// /// /// @@ -211,7 +211,7 @@ public interface IMenuOptionSetItemsApi : IApiAccessor /// Option set identifier /// Option set item identifier /// Option set item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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); @@ -228,7 +228,7 @@ public interface IMenuOptionSetItemsApi : IApiAccessor /// Option set identifier /// Option set item identifier /// Option set item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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); /// @@ -408,7 +408,7 @@ public interface IMenuOptionSetItemsApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> RemoveMenuItemOptionSetItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId); /// - /// [Private API] Set Tax Rate on OptionSetItem + /// Set Tax Rate on OptionSetItem /// /// /// @@ -424,7 +424,7 @@ public interface IMenuOptionSetItemsApi : IApiAccessor System.Threading.Tasks.Task SetOptionSetItemTaxAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? optionSetId, int? menuItemOptionSetItemId, int? taxRateId); /// - /// [Private API] Set Tax Rate on OptionSetItem + /// Set Tax Rate on OptionSetItem /// /// /// @@ -451,7 +451,7 @@ public interface IMenuOptionSetItemsApi : IApiAccessor /// Option set identifier /// Option set item identifier /// Option set item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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); @@ -468,7 +468,7 @@ public interface IMenuOptionSetItemsApi : IApiAccessor /// Option set identifier /// Option set item identifier /// Option set item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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); /// @@ -1606,7 +1606,7 @@ public async System.Threading.Tasks.Task> RemoveMenuItemOpti } /// - /// [Private API] Set Tax Rate on OptionSetItem + /// Set Tax Rate on OptionSetItem /// /// Thrown when fails to make API call /// Menu identifier @@ -1622,7 +1622,7 @@ public void SetOptionSetItemTax (int? menuId, int? menuSectionId, int? menuSecti } /// - /// [Private API] Set Tax Rate on OptionSetItem + /// Set Tax Rate on OptionSetItem /// /// Thrown when fails to make API call /// Menu identifier @@ -1710,7 +1710,7 @@ public ApiResponse SetOptionSetItemTaxWithHttpInfo (int? menuId, int? me } /// - /// [Private API] Set Tax Rate on OptionSetItem + /// Set Tax Rate on OptionSetItem /// /// Thrown when fails to make API call /// Menu identifier @@ -1727,7 +1727,7 @@ public async System.Threading.Tasks.Task SetOptionSetItemTaxAsync (int? menuId, } /// - /// [Private API] Set Tax Rate on OptionSetItem + /// Set Tax Rate on OptionSetItem /// /// Thrown when fails to make API call /// Menu identifier @@ -1824,7 +1824,7 @@ public async System.Threading.Tasks.Task> SetOptionSetItemTa /// Option set identifier /// Option set item identifier /// Option set item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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) { @@ -1841,7 +1841,7 @@ public void UpdateMenuItemOptionSetItem (int? menuId, int? menuSectionId, int? m /// Option set identifier /// Option set item identifier /// Option set item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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) { @@ -1943,7 +1943,7 @@ public ApiResponse UpdateMenuItemOptionSetItemWithHttpInfo (int? menuId, /// Option set identifier /// Option set item identifier /// Option set item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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) { @@ -1961,7 +1961,7 @@ public async System.Threading.Tasks.Task UpdateMenuItemOptionSetItemAsync (int? /// Option set identifier /// Option set item identifier /// Option set item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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) { diff --git a/src/Flipdish/Api/MenuSectionItemsApi.cs b/src/Flipdish/Api/MenuSectionItemsApi.cs index 7a28e6b5..647f21a1 100644 --- a/src/Flipdish/Api/MenuSectionItemsApi.cs +++ b/src/Flipdish/Api/MenuSectionItemsApi.cs @@ -198,7 +198,7 @@ public interface IMenuSectionItemsApi : IApiAccessor /// ApiResponse of RestApiArrayResultMenuSectionItem ApiResponse GetMenuItemsWithHttpInfo (int? menuId, int? menuSectionId); /// - /// [PRIVATE API]Move an Item within a menu + /// Move an Item within a menu /// /// /// @@ -212,7 +212,7 @@ public interface IMenuSectionItemsApi : IApiAccessor void MoveMenuItem (int? menuId, int? menuSectionId, int? menuSectionItemId, int? destinationDisplayOrder); /// - /// [PRIVATE API]Move an Item within a menu + /// Move an Item within a menu /// /// /// @@ -225,7 +225,7 @@ public interface IMenuSectionItemsApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse MoveMenuItemWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? destinationDisplayOrder); /// - /// [PRIVATE API]Move an Item within a menu + /// Set tax rate for menu item /// /// /// @@ -239,7 +239,7 @@ public interface IMenuSectionItemsApi : IApiAccessor void SetSectionItemTax (int? menuId, int? menuSectionId, int? menuSectionItemId, int? taxRateId); /// - /// [PRIVATE API]Move an Item within a menu + /// Set tax rate for menu item /// /// /// @@ -262,7 +262,7 @@ public interface IMenuSectionItemsApi : IApiAccessor /// Menu section identifier /// Menu section item identifier /// Menu section item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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); @@ -277,7 +277,7 @@ public interface IMenuSectionItemsApi : IApiAccessor /// Menu section identifier /// Menu section item identifier /// Menu section item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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); /// @@ -483,7 +483,7 @@ public interface IMenuSectionItemsApi : IApiAccessor /// Task of ApiResponse (RestApiArrayResultMenuSectionItem) System.Threading.Tasks.Task> GetMenuItemsAsyncWithHttpInfo (int? menuId, int? menuSectionId); /// - /// [PRIVATE API]Move an Item within a menu + /// Move an Item within a menu /// /// /// @@ -497,7 +497,7 @@ public interface IMenuSectionItemsApi : IApiAccessor System.Threading.Tasks.Task MoveMenuItemAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? destinationDisplayOrder); /// - /// [PRIVATE API]Move an Item within a menu + /// Move an Item within a menu /// /// /// @@ -510,7 +510,7 @@ public interface IMenuSectionItemsApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> MoveMenuItemAsyncWithHttpInfo (int? menuId, int? menuSectionId, int? menuSectionItemId, int? destinationDisplayOrder); /// - /// [PRIVATE API]Move an Item within a menu + /// Set tax rate for menu item /// /// /// @@ -524,7 +524,7 @@ public interface IMenuSectionItemsApi : IApiAccessor System.Threading.Tasks.Task SetSectionItemTaxAsync (int? menuId, int? menuSectionId, int? menuSectionItemId, int? taxRateId); /// - /// [PRIVATE API]Move an Item within a menu + /// Set tax rate for menu item /// /// /// @@ -547,7 +547,7 @@ public interface IMenuSectionItemsApi : IApiAccessor /// Menu section identifier /// Menu section item identifier /// Menu section item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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); @@ -562,7 +562,7 @@ public interface IMenuSectionItemsApi : IApiAccessor /// Menu section identifier /// Menu section item identifier /// Menu section item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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); /// @@ -1950,7 +1950,7 @@ public async System.Threading.Tasks.Task - /// [PRIVATE API]Move an Item within a menu + /// Move an Item within a menu /// /// Thrown when fails to make API call /// Menu identifier @@ -1964,7 +1964,7 @@ public void MoveMenuItem (int? menuId, int? menuSectionId, int? menuSectionItemI } /// - /// [PRIVATE API]Move an Item within a menu + /// Move an Item within a menu /// /// Thrown when fails to make API call /// Menu identifier @@ -2042,7 +2042,7 @@ public ApiResponse MoveMenuItemWithHttpInfo (int? menuId, int? menuSecti } /// - /// [PRIVATE API]Move an Item within a menu + /// Move an Item within a menu /// /// Thrown when fails to make API call /// Menu identifier @@ -2057,7 +2057,7 @@ public async System.Threading.Tasks.Task MoveMenuItemAsync (int? menuId, int? me } /// - /// [PRIVATE API]Move an Item within a menu + /// Move an Item within a menu /// /// Thrown when fails to make API call /// Menu identifier @@ -2135,7 +2135,7 @@ public async System.Threading.Tasks.Task> MoveMenuItemAsyncW } /// - /// [PRIVATE API]Move an Item within a menu + /// Set tax rate for menu item /// /// Thrown when fails to make API call /// Menu identifier @@ -2149,7 +2149,7 @@ public void SetSectionItemTax (int? menuId, int? menuSectionId, int? menuSection } /// - /// [PRIVATE API]Move an Item within a menu + /// Set tax rate for menu item /// /// Thrown when fails to make API call /// Menu identifier @@ -2227,7 +2227,7 @@ public ApiResponse SetSectionItemTaxWithHttpInfo (int? menuId, int? menu } /// - /// [PRIVATE API]Move an Item within a menu + /// Set tax rate for menu item /// /// Thrown when fails to make API call /// Menu identifier @@ -2242,7 +2242,7 @@ public async System.Threading.Tasks.Task SetSectionItemTaxAsync (int? menuId, in } /// - /// [PRIVATE API]Move an Item within a menu + /// Set tax rate for menu item /// /// Thrown when fails to make API call /// Menu identifier @@ -2327,7 +2327,7 @@ public async System.Threading.Tasks.Task> SetSectionItemTaxA /// Menu section identifier /// Menu section item identifier /// Menu section item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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) { @@ -2342,7 +2342,7 @@ public void UpdateMenuSectionItem (int? menuId, int? menuSectionId, int? menuSec /// Menu section identifier /// Menu section item identifier /// Menu section item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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) { @@ -2434,7 +2434,7 @@ public ApiResponse UpdateMenuSectionItemWithHttpInfo (int? menuId, int? /// Menu section identifier /// Menu section item identifier /// Menu section item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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) { @@ -2450,7 +2450,7 @@ public async System.Threading.Tasks.Task UpdateMenuSectionItemAsync (int? menuId /// Menu section identifier /// Menu section item identifier /// Menu section item (delta) - /// An optional time period, in hours, after which the hide-section operaton will be undone. (optional) + /// 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) { 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 index 755246f8..5c18ef69 100644 --- a/src/Flipdish/Api/MenusApi.cs +++ b/src/Flipdish/Api/MenusApi.cs @@ -25,7 +25,7 @@ public interface IMenusApi : IApiAccessor { #region Synchronous Operations /// - /// [PRIVATE API]Clone a menu, (without attaching stores) + /// Clone a menu, (without attaching stores) /// /// /// @@ -37,7 +37,7 @@ public interface IMenusApi : IApiAccessor RestApiResultMenu CreateDraftMenuFromExistingMenu (int? menuId, string newName); /// - /// [PRIVATE API]Clone a menu, (without attaching stores) + /// Clone a menu, (without attaching stores) /// /// /// @@ -48,30 +48,55 @@ public interface IMenusApi : IApiAccessor /// ApiResponse of RestApiResultMenu ApiResponse CreateDraftMenuFromExistingMenuWithHttpInfo (int? menuId, string newName); /// - /// Create a new menu. If request body is empty, the system will create a menu with default items. + /// 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 identifier + /// 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. If request body is empty, the system will create a menu with default items. + /// 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 + /// Menu. If empty the system will create a menu with default items /// ApiResponse of int? ApiResponse CreateNewMenuForAppWithHttpInfo (string appId, CreateFullMenu menu); /// - /// [PRIVATE API]Mark a Menu as Deleted + /// Mark a Menu as Deleted /// /// /// @@ -82,7 +107,7 @@ public interface IMenusApi : IApiAccessor void DeleteMenu (int? menuId); /// - /// [PRIVATE API]Mark a Menu as Deleted + /// Mark a Menu as Deleted /// /// /// @@ -219,8 +244,8 @@ public interface IMenusApi : IApiAccessor /// Store identifier /// Menu item identifier /// Metadata key - /// - void GetMenuItemMetadataByKey (int? menuId, int? storeId, int? menuItemId, string key); + /// RestApiResultMetadata + RestApiResultMetadata GetMenuItemMetadataByKey (int? menuId, int? storeId, int? menuItemId, string key); /// /// Get menu item metadata by key @@ -233,8 +258,8 @@ public interface IMenusApi : IApiAccessor /// Store identifier /// Menu item identifier /// Metadata key - /// ApiResponse of Object(void) - ApiResponse GetMenuItemMetadataByKeyWithHttpInfo (int? menuId, int? storeId, int? menuItemId, string key); + /// ApiResponse of RestApiResultMetadata + ApiResponse GetMenuItemMetadataByKeyWithHttpInfo (int? menuId, int? storeId, int? menuItemId, string key); /// /// Get menu item option set item metadata by key /// @@ -261,28 +286,28 @@ public interface IMenusApi : IApiAccessor /// ApiResponse of RestApiResultMetadata ApiResponse GetMenuItemOptionSetItemMetadataWithHttpInfo (int? menuId, int? storeId, int? optionSetItemId); /// - /// [PRIVATE API]Get Menus Name + /// Get Menus Name /// /// /// /// /// Thrown when fails to make API call /// Menu identifier - /// - void GetMenuName (int? menuId); + /// string + string GetMenuName (int? menuId); /// - /// [PRIVATE API]Get Menus Name + /// Get Menus Name /// /// /// /// /// Thrown when fails to make API call /// Menu identifier - /// ApiResponse of Object(void) - ApiResponse GetMenuNameWithHttpInfo (int? menuId); + /// ApiResponse of string + ApiResponse GetMenuNameWithHttpInfo (int? menuId); /// - /// [PRIVATE API]Get menus store names + /// Get menus store names /// /// /// @@ -293,7 +318,7 @@ public interface IMenusApi : IApiAccessor RestApiArrayResultMenuStoreNames GetMenuStoreNames (int? menuId); /// - /// [PRIVATE API]Get menus store names + /// Get menus store names /// /// /// @@ -303,7 +328,7 @@ public interface IMenusApi : IApiAccessor /// ApiResponse of RestApiArrayResultMenuStoreNames ApiResponse GetMenuStoreNamesWithHttpInfo (int? menuId); /// - /// [PRIVATE API]Get menus tax details + /// Get menus tax details /// /// /// @@ -314,7 +339,7 @@ public interface IMenusApi : IApiAccessor RestApiArrayResultMenuTaxDetails GetMenuTaxDetails (int? menuId); /// - /// [PRIVATE API]Get menus tax details + /// Get menus tax details /// /// /// @@ -324,7 +349,7 @@ public interface IMenusApi : IApiAccessor /// ApiResponse of RestApiArrayResultMenuTaxDetails ApiResponse GetMenuTaxDetailsWithHttpInfo (int? menuId); /// - /// [PRIVATE API]Get menus by appId + /// Get menus by appId /// /// /// @@ -335,7 +360,7 @@ public interface IMenusApi : IApiAccessor RestApiArrayResultMenuSummary GetMenusByAppId (string appId); /// - /// [PRIVATE API]Get menus by appId + /// Get menus by appId /// /// /// @@ -345,7 +370,7 @@ public interface IMenusApi : IApiAccessor /// ApiResponse of RestApiArrayResultMenuSummary ApiResponse GetMenusByAppIdWithHttpInfo (string appId); /// - /// [PRIVATE API]Get a Menus Checkpoints + /// Get a Menus Checkpoints /// /// /// @@ -356,7 +381,7 @@ public interface IMenusApi : IApiAccessor RestApiArrayResultMenuCheckpoint GetMenusCheckpoints (int? menuId); /// - /// [PRIVATE API]Get a Menus Checkpoints + /// Get a Menus Checkpoints /// /// /// @@ -366,7 +391,7 @@ public interface IMenusApi : IApiAccessor /// ApiResponse of RestApiArrayResultMenuCheckpoint ApiResponse GetMenusCheckpointsWithHttpInfo (int? menuId); /// - /// [PRIVATE API]Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached /// /// /// @@ -378,7 +403,7 @@ public interface IMenusApi : IApiAccessor void MenusDeleteTaxRate (int? menuId, int? taxId); /// - /// [PRIVATE API]Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached /// /// /// @@ -389,30 +414,30 @@ public interface IMenusApi : IApiAccessor /// 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); /// - /// [PRIVATE API]Set if tax shows for a Menu + /// Set if tax shows for a Menu /// /// /// @@ -424,7 +449,7 @@ public interface IMenusApi : IApiAccessor void MenusSetDisplayOnMenuTax (int? menuId, bool? show); /// - /// [PRIVATE API]Set if tax shows for a Menu + /// Set if tax shows for a Menu /// /// /// @@ -435,7 +460,7 @@ public interface IMenusApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse MenusSetDisplayOnMenuTaxWithHttpInfo (int? menuId, bool? show); /// - /// [PRIVATE API]Re-arrange Sections within a Menu + /// Re-arrange Sections within a Menu /// /// /// @@ -447,7 +472,7 @@ public interface IMenusApi : IApiAccessor void MenusSetItemDisplayOrders (int? menuId, MenuObjectDisplayOrders displayOrders); /// - /// [PRIVATE API]Re-arrange Sections within a Menu + /// Re-arrange Sections within a Menu /// /// /// @@ -458,32 +483,32 @@ public interface IMenusApi : IApiAccessor /// 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); /// - /// [PRIVATE API]Set the type of Tax on a Menu + /// Set the type of Tax on a Menu /// /// /// @@ -495,7 +520,7 @@ public interface IMenusApi : IApiAccessor void MenusUpdateTaxType (int? menuId, string type); /// - /// [PRIVATE API]Set the type of Tax on a Menu + /// Set the type of Tax on a Menu /// /// /// @@ -506,30 +531,30 @@ public interface IMenusApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse MenusUpdateTaxTypeWithHttpInfo (int? menuId, string type); /// - /// [PRIVATE API]Add/Update a Tax Rate + /// Add/Update a Tax Rate /// /// /// /// /// Thrown when fails to make API call /// Menu identifier - /// Tax Rate to Add/Update + /// Tax rate to add/update /// MenuTaxRate MenuTaxRate MenusUpsertTaxRate (int? menuId, MenuTaxRate taxRate); /// - /// [PRIVATE API]Add/Update a Tax Rate + /// Add/Update a Tax Rate /// /// /// /// /// Thrown when fails to make API call /// Menu identifier - /// Tax Rate to Add/Update + /// Tax rate to add/update /// ApiResponse of MenuTaxRate ApiResponse MenusUpsertTaxRateWithHttpInfo (int? menuId, MenuTaxRate taxRate); /// - /// [PRIVATE API]Restore a Menu to a checkpoint + /// Restore a Menu to a checkpoint /// /// /// @@ -541,7 +566,7 @@ public interface IMenusApi : IApiAccessor void RestoreAMenuCheckpoint (int? menuId, int? checkpointId); /// - /// [PRIVATE API]Restore a Menu to a checkpoint + /// Restore a Menu to a checkpoint /// /// /// @@ -606,7 +631,7 @@ public interface IMenusApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse SetMenuItemOptionSetItemMetadataWithHttpInfo (int? menuId, int? storeId, int? optionSetItemId, Metadata metadata); /// - /// [PRIVATE API]Lock/Unlock a Menu for Editing + /// Lock/Unlock a Menu for Editing /// /// /// @@ -618,7 +643,7 @@ public interface IMenusApi : IApiAccessor void SetMenuLock (int? menuId, bool? locked); /// - /// [PRIVATE API]Lock/Unlock a Menu for Editing + /// Lock/Unlock a Menu for Editing /// /// /// @@ -629,7 +654,7 @@ public interface IMenusApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse SetMenuLockWithHttpInfo (int? menuId, bool? locked); /// - /// [PRIVATE API]Set Menus Name + /// Set Menus Name /// /// /// @@ -641,7 +666,7 @@ public interface IMenusApi : IApiAccessor void SetMenuName (int? menuId, string name); /// - /// [PRIVATE API]Set Menus Name + /// Set Menus Name /// /// /// @@ -659,7 +684,7 @@ public interface IMenusApi : IApiAccessor /// /// Thrown when fails to make API call /// Menu identifier - /// Menu (delta) + /// Full menu data /// void UpdateMenu (int? menuId, MenuBase menu); @@ -671,7 +696,7 @@ public interface IMenusApi : IApiAccessor /// /// Thrown when fails to make API call /// Menu identifier - /// Menu (delta) + /// Full menu data /// ApiResponse of Object(void) ApiResponse UpdateMenuWithHttpInfo (int? menuId, MenuBase menu); /// @@ -723,7 +748,7 @@ public interface IMenusApi : IApiAccessor #endregion Synchronous Operations #region Asynchronous Operations /// - /// [PRIVATE API]Clone a menu, (without attaching stores) + /// Clone a menu, (without attaching stores) /// /// /// @@ -735,7 +760,7 @@ public interface IMenusApi : IApiAccessor System.Threading.Tasks.Task CreateDraftMenuFromExistingMenuAsync (int? menuId, string newName); /// - /// [PRIVATE API]Clone a menu, (without attaching stores) + /// Clone a menu, (without attaching stores) /// /// /// @@ -746,30 +771,55 @@ public interface IMenusApi : IApiAccessor /// Task of ApiResponse (RestApiResultMenu) System.Threading.Tasks.Task> CreateDraftMenuFromExistingMenuAsyncWithHttpInfo (int? menuId, string newName); /// - /// Create a new menu. If request body is empty, the system will create a menu with default items. + /// 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 identifier + /// 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. If request body is empty, the system will create a menu with default items. + /// 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 + /// 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); /// - /// [PRIVATE API]Mark a Menu as Deleted + /// Mark a Menu as Deleted /// /// /// @@ -780,7 +830,7 @@ public interface IMenusApi : IApiAccessor System.Threading.Tasks.Task DeleteMenuAsync (int? menuId); /// - /// [PRIVATE API]Mark a Menu as Deleted + /// Mark a Menu as Deleted /// /// /// @@ -917,8 +967,8 @@ public interface IMenusApi : IApiAccessor /// Store identifier /// Menu item identifier /// Metadata key - /// Task of void - System.Threading.Tasks.Task GetMenuItemMetadataByKeyAsync (int? menuId, int? storeId, int? menuItemId, string key); + /// Task of RestApiResultMetadata + System.Threading.Tasks.Task GetMenuItemMetadataByKeyAsync (int? menuId, int? storeId, int? menuItemId, string key); /// /// Get menu item metadata by key @@ -931,8 +981,8 @@ public interface IMenusApi : IApiAccessor /// Store identifier /// Menu item identifier /// Metadata key - /// Task of ApiResponse - System.Threading.Tasks.Task> GetMenuItemMetadataByKeyAsyncWithHttpInfo (int? menuId, int? storeId, int? menuItemId, string 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 /// @@ -959,28 +1009,28 @@ public interface IMenusApi : IApiAccessor /// Task of ApiResponse (RestApiResultMetadata) System.Threading.Tasks.Task> GetMenuItemOptionSetItemMetadataAsyncWithHttpInfo (int? menuId, int? storeId, int? optionSetItemId); /// - /// [PRIVATE API]Get Menus Name + /// Get Menus Name /// /// /// /// /// Thrown when fails to make API call /// Menu identifier - /// Task of void - System.Threading.Tasks.Task GetMenuNameAsync (int? menuId); + /// Task of string + System.Threading.Tasks.Task GetMenuNameAsync (int? menuId); /// - /// [PRIVATE API]Get Menus Name + /// Get Menus Name /// /// /// /// /// Thrown when fails to make API call /// Menu identifier - /// Task of ApiResponse - System.Threading.Tasks.Task> GetMenuNameAsyncWithHttpInfo (int? menuId); + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> GetMenuNameAsyncWithHttpInfo (int? menuId); /// - /// [PRIVATE API]Get menus store names + /// Get menus store names /// /// /// @@ -991,7 +1041,7 @@ public interface IMenusApi : IApiAccessor System.Threading.Tasks.Task GetMenuStoreNamesAsync (int? menuId); /// - /// [PRIVATE API]Get menus store names + /// Get menus store names /// /// /// @@ -1001,7 +1051,7 @@ public interface IMenusApi : IApiAccessor /// Task of ApiResponse (RestApiArrayResultMenuStoreNames) System.Threading.Tasks.Task> GetMenuStoreNamesAsyncWithHttpInfo (int? menuId); /// - /// [PRIVATE API]Get menus tax details + /// Get menus tax details /// /// /// @@ -1012,7 +1062,7 @@ public interface IMenusApi : IApiAccessor System.Threading.Tasks.Task GetMenuTaxDetailsAsync (int? menuId); /// - /// [PRIVATE API]Get menus tax details + /// Get menus tax details /// /// /// @@ -1022,7 +1072,7 @@ public interface IMenusApi : IApiAccessor /// Task of ApiResponse (RestApiArrayResultMenuTaxDetails) System.Threading.Tasks.Task> GetMenuTaxDetailsAsyncWithHttpInfo (int? menuId); /// - /// [PRIVATE API]Get menus by appId + /// Get menus by appId /// /// /// @@ -1033,7 +1083,7 @@ public interface IMenusApi : IApiAccessor System.Threading.Tasks.Task GetMenusByAppIdAsync (string appId); /// - /// [PRIVATE API]Get menus by appId + /// Get menus by appId /// /// /// @@ -1043,7 +1093,7 @@ public interface IMenusApi : IApiAccessor /// Task of ApiResponse (RestApiArrayResultMenuSummary) System.Threading.Tasks.Task> GetMenusByAppIdAsyncWithHttpInfo (string appId); /// - /// [PRIVATE API]Get a Menus Checkpoints + /// Get a Menus Checkpoints /// /// /// @@ -1054,7 +1104,7 @@ public interface IMenusApi : IApiAccessor System.Threading.Tasks.Task GetMenusCheckpointsAsync (int? menuId); /// - /// [PRIVATE API]Get a Menus Checkpoints + /// Get a Menus Checkpoints /// /// /// @@ -1064,7 +1114,7 @@ public interface IMenusApi : IApiAccessor /// Task of ApiResponse (RestApiArrayResultMenuCheckpoint) System.Threading.Tasks.Task> GetMenusCheckpointsAsyncWithHttpInfo (int? menuId); /// - /// [PRIVATE API]Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached /// /// /// @@ -1076,7 +1126,7 @@ public interface IMenusApi : IApiAccessor System.Threading.Tasks.Task MenusDeleteTaxRateAsync (int? menuId, int? taxId); /// - /// [PRIVATE API]Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached /// /// /// @@ -1087,30 +1137,30 @@ public interface IMenusApi : IApiAccessor /// 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); /// - /// [PRIVATE API]Set if tax shows for a Menu + /// Set if tax shows for a Menu /// /// /// @@ -1122,7 +1172,7 @@ public interface IMenusApi : IApiAccessor System.Threading.Tasks.Task MenusSetDisplayOnMenuTaxAsync (int? menuId, bool? show); /// - /// [PRIVATE API]Set if tax shows for a Menu + /// Set if tax shows for a Menu /// /// /// @@ -1133,7 +1183,7 @@ public interface IMenusApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> MenusSetDisplayOnMenuTaxAsyncWithHttpInfo (int? menuId, bool? show); /// - /// [PRIVATE API]Re-arrange Sections within a Menu + /// Re-arrange Sections within a Menu /// /// /// @@ -1145,7 +1195,7 @@ public interface IMenusApi : IApiAccessor System.Threading.Tasks.Task MenusSetItemDisplayOrdersAsync (int? menuId, MenuObjectDisplayOrders displayOrders); /// - /// [PRIVATE API]Re-arrange Sections within a Menu + /// Re-arrange Sections within a Menu /// /// /// @@ -1156,32 +1206,32 @@ public interface IMenusApi : IApiAccessor /// 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); /// - /// [PRIVATE API]Set the type of Tax on a Menu + /// Set the type of Tax on a Menu /// /// /// @@ -1193,7 +1243,7 @@ public interface IMenusApi : IApiAccessor System.Threading.Tasks.Task MenusUpdateTaxTypeAsync (int? menuId, string type); /// - /// [PRIVATE API]Set the type of Tax on a Menu + /// Set the type of Tax on a Menu /// /// /// @@ -1204,30 +1254,30 @@ public interface IMenusApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> MenusUpdateTaxTypeAsyncWithHttpInfo (int? menuId, string type); /// - /// [PRIVATE API]Add/Update a Tax Rate + /// Add/Update a Tax Rate /// /// /// /// /// Thrown when fails to make API call /// Menu identifier - /// Tax Rate to Add/Update + /// Tax rate to add/update /// Task of MenuTaxRate System.Threading.Tasks.Task MenusUpsertTaxRateAsync (int? menuId, MenuTaxRate taxRate); /// - /// [PRIVATE API]Add/Update a Tax Rate + /// Add/Update a Tax Rate /// /// /// /// /// Thrown when fails to make API call /// Menu identifier - /// Tax Rate to Add/Update + /// Tax rate to add/update /// Task of ApiResponse (MenuTaxRate) System.Threading.Tasks.Task> MenusUpsertTaxRateAsyncWithHttpInfo (int? menuId, MenuTaxRate taxRate); /// - /// [PRIVATE API]Restore a Menu to a checkpoint + /// Restore a Menu to a checkpoint /// /// /// @@ -1239,7 +1289,7 @@ public interface IMenusApi : IApiAccessor System.Threading.Tasks.Task RestoreAMenuCheckpointAsync (int? menuId, int? checkpointId); /// - /// [PRIVATE API]Restore a Menu to a checkpoint + /// Restore a Menu to a checkpoint /// /// /// @@ -1304,7 +1354,7 @@ public interface IMenusApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> SetMenuItemOptionSetItemMetadataAsyncWithHttpInfo (int? menuId, int? storeId, int? optionSetItemId, Metadata metadata); /// - /// [PRIVATE API]Lock/Unlock a Menu for Editing + /// Lock/Unlock a Menu for Editing /// /// /// @@ -1316,7 +1366,7 @@ public interface IMenusApi : IApiAccessor System.Threading.Tasks.Task SetMenuLockAsync (int? menuId, bool? locked); /// - /// [PRIVATE API]Lock/Unlock a Menu for Editing + /// Lock/Unlock a Menu for Editing /// /// /// @@ -1327,7 +1377,7 @@ public interface IMenusApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> SetMenuLockAsyncWithHttpInfo (int? menuId, bool? locked); /// - /// [PRIVATE API]Set Menus Name + /// Set Menus Name /// /// /// @@ -1339,7 +1389,7 @@ public interface IMenusApi : IApiAccessor System.Threading.Tasks.Task SetMenuNameAsync (int? menuId, string name); /// - /// [PRIVATE API]Set Menus Name + /// Set Menus Name /// /// /// @@ -1357,7 +1407,7 @@ public interface IMenusApi : IApiAccessor /// /// Thrown when fails to make API call /// Menu identifier - /// Menu (delta) + /// Full menu data /// Task of void System.Threading.Tasks.Task UpdateMenuAsync (int? menuId, MenuBase menu); @@ -1369,7 +1419,7 @@ public interface IMenusApi : IApiAccessor /// /// Thrown when fails to make API call /// Menu identifier - /// Menu (delta) + /// Full menu data /// Task of ApiResponse System.Threading.Tasks.Task> UpdateMenuAsyncWithHttpInfo (int? menuId, MenuBase menu); /// @@ -1519,7 +1569,7 @@ public void AddDefaultHeader(string key, string value) } /// - /// [PRIVATE API]Clone a menu, (without attaching stores) + /// Clone a menu, (without attaching stores) /// /// Thrown when fails to make API call /// Menu identifier @@ -1532,7 +1582,7 @@ public RestApiResultMenu CreateDraftMenuFromExistingMenu (int? menuId, string ne } /// - /// [PRIVATE API]Clone a menu, (without attaching stores) + /// Clone a menu, (without attaching stores) /// /// Thrown when fails to make API call /// Menu identifier @@ -1600,7 +1650,7 @@ public ApiResponse< RestApiResultMenu > CreateDraftMenuFromExistingMenuWithHttpI } /// - /// [PRIVATE API]Clone a menu, (without attaching stores) + /// Clone a menu, (without attaching stores) /// /// Thrown when fails to make API call /// Menu identifier @@ -1614,7 +1664,7 @@ public async System.Threading.Tasks.Task CreateDraftMenuFromE } /// - /// [PRIVATE API]Clone a menu, (without attaching stores) + /// Clone a menu, (without attaching stores) /// /// Thrown when fails to make API call /// Menu identifier @@ -1682,11 +1732,204 @@ public async System.Threading.Tasks.Task> CreateD } /// - /// Create a new menu. If request body is empty, the system will create a menu with default items. + /// 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 identifier + /// 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) { @@ -1695,11 +1938,11 @@ public async System.Threading.Tasks.Task> CreateD } /// - /// Create a new menu. If request body is empty, the system will create a menu with default items. + /// 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 + /// Menu. If empty the system will create a menu with default items /// ApiResponse of int? public ApiResponse< int? > CreateNewMenuForAppWithHttpInfo (string appId, CreateFullMenu menu) { @@ -1775,11 +2018,11 @@ public async System.Threading.Tasks.Task> CreateD } /// - /// Create a new menu. If request body is empty, the system will create a menu with default items. + /// 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 + /// 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) { @@ -1789,11 +2032,11 @@ public async System.Threading.Tasks.Task> CreateD } /// - /// Create a new menu. If request body is empty, the system will create a menu with default items. + /// 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 + /// 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) { @@ -1869,7 +2112,7 @@ public async System.Threading.Tasks.Task> CreateD } /// - /// [PRIVATE API]Mark a Menu as Deleted + /// Mark a Menu as Deleted /// /// Thrown when fails to make API call /// Menu Identifier @@ -1880,7 +2123,7 @@ public void DeleteMenu (int? menuId) } /// - /// [PRIVATE API]Mark a Menu as Deleted + /// Mark a Menu as Deleted /// /// Thrown when fails to make API call /// Menu Identifier @@ -1943,7 +2186,7 @@ public ApiResponse DeleteMenuWithHttpInfo (int? menuId) } /// - /// [PRIVATE API]Mark a Menu as Deleted + /// Mark a Menu as Deleted /// /// Thrown when fails to make API call /// Menu Identifier @@ -1955,7 +2198,7 @@ public async System.Threading.Tasks.Task DeleteMenuAsync (int? menuId) } /// - /// [PRIVATE API]Mark a Menu as Deleted + /// Mark a Menu as Deleted /// /// Thrown when fails to make API call /// Menu Identifier @@ -2848,10 +3091,11 @@ public async System.Threading.Tasks.Task /// Store identifier /// Menu item identifier /// Metadata key - /// - public void GetMenuItemMetadataByKey (int? menuId, int? storeId, int? menuItemId, string key) + /// RestApiResultMetadata + public RestApiResultMetadata GetMenuItemMetadataByKey (int? menuId, int? storeId, int? menuItemId, string key) { - GetMenuItemMetadataByKeyWithHttpInfo(menuId, storeId, menuItemId, key); + ApiResponse localVarResponse = GetMenuItemMetadataByKeyWithHttpInfo(menuId, storeId, menuItemId, key); + return localVarResponse.Data; } /// @@ -2862,8 +3106,8 @@ public void GetMenuItemMetadataByKey (int? menuId, int? storeId, int? menuItemId /// Store identifier /// Menu item identifier /// Metadata key - /// ApiResponse of Object(void) - public ApiResponse GetMenuItemMetadataByKeyWithHttpInfo (int? menuId, int? storeId, int? menuItemId, string 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) @@ -2927,9 +3171,9 @@ public ApiResponse GetMenuItemMetadataByKeyWithHttpInfo (int? menuId, in if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (RestApiResultMetadata) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMetadata))); } /// @@ -2940,10 +3184,11 @@ public ApiResponse GetMenuItemMetadataByKeyWithHttpInfo (int? menuId, in /// Store identifier /// Menu item identifier /// Metadata key - /// Task of void - public async System.Threading.Tasks.Task GetMenuItemMetadataByKeyAsync (int? menuId, int? storeId, int? menuItemId, string key) + /// Task of RestApiResultMetadata + public async System.Threading.Tasks.Task GetMenuItemMetadataByKeyAsync (int? menuId, int? storeId, int? menuItemId, string key) { - await GetMenuItemMetadataByKeyAsyncWithHttpInfo(menuId, storeId, menuItemId, key); + ApiResponse localVarResponse = await GetMenuItemMetadataByKeyAsyncWithHttpInfo(menuId, storeId, menuItemId, key); + return localVarResponse.Data; } @@ -2955,8 +3200,8 @@ public async System.Threading.Tasks.Task GetMenuItemMetadataByKeyAsync (int? men /// Store identifier /// Menu item identifier /// Metadata key - /// Task of ApiResponse - public async System.Threading.Tasks.Task> GetMenuItemMetadataByKeyAsyncWithHttpInfo (int? menuId, int? storeId, int? menuItemId, string 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) @@ -3020,9 +3265,9 @@ public async System.Threading.Tasks.Task> GetMenuItemMetadat if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (RestApiResultMetadata) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMetadata))); } /// @@ -3201,23 +3446,24 @@ public async System.Threading.Tasks.Task> Get } /// - /// [PRIVATE API]Get Menus Name + /// Get Menus Name /// /// Thrown when fails to make API call /// Menu identifier - /// - public void GetMenuName (int? menuId) + /// string + public string GetMenuName (int? menuId) { - GetMenuNameWithHttpInfo(menuId); + ApiResponse localVarResponse = GetMenuNameWithHttpInfo(menuId); + return localVarResponse.Data; } /// - /// [PRIVATE API]Get Menus Name + /// Get Menus Name /// /// Thrown when fails to make API call /// Menu identifier - /// ApiResponse of Object(void) - public ApiResponse GetMenuNameWithHttpInfo (int? menuId) + /// ApiResponse of string + public ApiResponse< string > GetMenuNameWithHttpInfo (int? menuId) { // verify the required parameter 'menuId' is set if (menuId == null) @@ -3269,30 +3515,31 @@ public ApiResponse GetMenuNameWithHttpInfo (int? menuId) if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } /// - /// [PRIVATE API]Get Menus Name + /// Get Menus Name /// /// Thrown when fails to make API call /// Menu identifier - /// Task of void - public async System.Threading.Tasks.Task GetMenuNameAsync (int? menuId) + /// Task of string + public async System.Threading.Tasks.Task GetMenuNameAsync (int? menuId) { - await GetMenuNameAsyncWithHttpInfo(menuId); + ApiResponse localVarResponse = await GetMenuNameAsyncWithHttpInfo(menuId); + return localVarResponse.Data; } /// - /// [PRIVATE API]Get Menus Name + /// Get Menus Name /// /// Thrown when fails to make API call /// Menu identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> GetMenuNameAsyncWithHttpInfo (int? menuId) + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> GetMenuNameAsyncWithHttpInfo (int? menuId) { // verify the required parameter 'menuId' is set if (menuId == null) @@ -3344,13 +3591,13 @@ public async System.Threading.Tasks.Task> GetMenuNameAsyncWi if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } /// - /// [PRIVATE API]Get menus store names + /// Get menus store names /// /// Thrown when fails to make API call /// Menu identifier @@ -3362,7 +3609,7 @@ public RestApiArrayResultMenuStoreNames GetMenuStoreNames (int? menuId) } /// - /// [PRIVATE API]Get menus store names + /// Get menus store names /// /// Thrown when fails to make API call /// Menu identifier @@ -3425,7 +3672,7 @@ public ApiResponse< RestApiArrayResultMenuStoreNames > GetMenuStoreNamesWithHttp } /// - /// [PRIVATE API]Get menus store names + /// Get menus store names /// /// Thrown when fails to make API call /// Menu identifier @@ -3438,7 +3685,7 @@ public async System.Threading.Tasks.Task GetMe } /// - /// [PRIVATE API]Get menus store names + /// Get menus store names /// /// Thrown when fails to make API call /// Menu identifier @@ -3501,7 +3748,7 @@ public async System.Threading.Tasks.Task - /// [PRIVATE API]Get menus tax details + /// Get menus tax details /// /// Thrown when fails to make API call /// Menu identifier @@ -3513,7 +3760,7 @@ public RestApiArrayResultMenuTaxDetails GetMenuTaxDetails (int? menuId) } /// - /// [PRIVATE API]Get menus tax details + /// Get menus tax details /// /// Thrown when fails to make API call /// Menu identifier @@ -3576,7 +3823,7 @@ public ApiResponse< RestApiArrayResultMenuTaxDetails > GetMenuTaxDetailsWithHttp } /// - /// [PRIVATE API]Get menus tax details + /// Get menus tax details /// /// Thrown when fails to make API call /// Menu identifier @@ -3589,7 +3836,7 @@ public async System.Threading.Tasks.Task GetMe } /// - /// [PRIVATE API]Get menus tax details + /// Get menus tax details /// /// Thrown when fails to make API call /// Menu identifier @@ -3652,7 +3899,7 @@ public async System.Threading.Tasks.Task - /// [PRIVATE API]Get menus by appId + /// Get menus by appId /// /// Thrown when fails to make API call /// Get Menus for this appId @@ -3664,7 +3911,7 @@ public RestApiArrayResultMenuSummary GetMenusByAppId (string appId) } /// - /// [PRIVATE API]Get menus by appId + /// Get menus by appId /// /// Thrown when fails to make API call /// Get Menus for this appId @@ -3727,7 +3974,7 @@ public ApiResponse< RestApiArrayResultMenuSummary > GetMenusByAppIdWithHttpInfo } /// - /// [PRIVATE API]Get menus by appId + /// Get menus by appId /// /// Thrown when fails to make API call /// Get Menus for this appId @@ -3740,7 +3987,7 @@ public async System.Threading.Tasks.Task GetMenus } /// - /// [PRIVATE API]Get menus by appId + /// Get menus by appId /// /// Thrown when fails to make API call /// Get Menus for this appId @@ -3803,7 +4050,7 @@ public async System.Threading.Tasks.Task - /// [PRIVATE API]Get a Menus Checkpoints + /// Get a Menus Checkpoints /// /// Thrown when fails to make API call /// Menu identifier @@ -3815,7 +4062,7 @@ public RestApiArrayResultMenuCheckpoint GetMenusCheckpoints (int? menuId) } /// - /// [PRIVATE API]Get a Menus Checkpoints + /// Get a Menus Checkpoints /// /// Thrown when fails to make API call /// Menu identifier @@ -3878,7 +4125,7 @@ public ApiResponse< RestApiArrayResultMenuCheckpoint > GetMenusCheckpointsWithHt } /// - /// [PRIVATE API]Get a Menus Checkpoints + /// Get a Menus Checkpoints /// /// Thrown when fails to make API call /// Menu identifier @@ -3891,7 +4138,7 @@ public async System.Threading.Tasks.Task GetMe } /// - /// [PRIVATE API]Get a Menus Checkpoints + /// Get a Menus Checkpoints /// /// Thrown when fails to make API call /// Menu identifier @@ -3954,7 +4201,7 @@ public async System.Threading.Tasks.Task - /// [PRIVATE API]Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// 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 @@ -3966,7 +4213,7 @@ public void MenusDeleteTaxRate (int? menuId, int? taxId) } /// - /// [PRIVATE API]Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// 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 @@ -4034,7 +4281,7 @@ public ApiResponse MenusDeleteTaxRateWithHttpInfo (int? menuId, int? tax } /// - /// [PRIVATE API]Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// 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 @@ -4047,7 +4294,7 @@ public async System.Threading.Tasks.Task MenusDeleteTaxRateAsync (int? menuId, i } /// - /// [PRIVATE API]Remove a Menus Tax Rate, can only remove a tax rate that does not have items/optionSetItems attached + /// 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 @@ -4115,11 +4362,11 @@ public async System.Threading.Tasks.Task> MenusDeleteTaxRate } /// - /// + /// 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) { @@ -4128,11 +4375,11 @@ public RestApiArrayResultMenuElementListResponse MenusGetMenuBulkShowHide (int? } /// - /// + /// 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) { @@ -4196,11 +4443,11 @@ public ApiResponse< RestApiArrayResultMenuElementListResponse > MenusGetMenuBulk } /// - /// + /// 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) { @@ -4210,11 +4457,11 @@ public async System.Threading.Tasks.Task - /// + /// 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) { @@ -4278,7 +4525,7 @@ public async System.Threading.Tasks.Task - /// [PRIVATE API]Set if tax shows for a Menu + /// Set if tax shows for a Menu /// /// Thrown when fails to make API call /// Menu identifier @@ -4290,7 +4537,7 @@ public void MenusSetDisplayOnMenuTax (int? menuId, bool? show) } /// - /// [PRIVATE API]Set if tax shows for a Menu + /// Set if tax shows for a Menu /// /// Thrown when fails to make API call /// Menu identifier @@ -4358,7 +4605,7 @@ public ApiResponse MenusSetDisplayOnMenuTaxWithHttpInfo (int? menuId, bo } /// - /// [PRIVATE API]Set if tax shows for a Menu + /// Set if tax shows for a Menu /// /// Thrown when fails to make API call /// Menu identifier @@ -4371,7 +4618,7 @@ public async System.Threading.Tasks.Task MenusSetDisplayOnMenuTaxAsync (int? men } /// - /// [PRIVATE API]Set if tax shows for a Menu + /// Set if tax shows for a Menu /// /// Thrown when fails to make API call /// Menu identifier @@ -4439,7 +4686,7 @@ public async System.Threading.Tasks.Task> MenusSetDisplayOnM } /// - /// [PRIVATE API]Re-arrange Sections within a Menu + /// Re-arrange Sections within a Menu /// /// Thrown when fails to make API call /// Menu identifier @@ -4451,7 +4698,7 @@ public void MenusSetItemDisplayOrders (int? menuId, MenuObjectDisplayOrders disp } /// - /// [PRIVATE API]Re-arrange Sections within a Menu + /// Re-arrange Sections within a Menu /// /// Thrown when fails to make API call /// Menu identifier @@ -4531,7 +4778,7 @@ public ApiResponse MenusSetItemDisplayOrdersWithHttpInfo (int? menuId, M } /// - /// [PRIVATE API]Re-arrange Sections within a Menu + /// Re-arrange Sections within a Menu /// /// Thrown when fails to make API call /// Menu identifier @@ -4544,7 +4791,7 @@ public async System.Threading.Tasks.Task MenusSetItemDisplayOrdersAsync (int? me } /// - /// [PRIVATE API]Re-arrange Sections within a Menu + /// Re-arrange Sections within a Menu /// /// Thrown when fails to make API call /// Menu identifier @@ -4624,12 +4871,12 @@ public async System.Threading.Tasks.Task> MenusSetItemDispla } /// - /// + /// 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) { @@ -4638,12 +4885,12 @@ public RestApiArrayResultMenuElementEditResponse MenusShowHideBulkItems (int? me } /// - /// + /// 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) { @@ -4723,12 +4970,12 @@ public ApiResponse< RestApiArrayResultMenuElementEditResponse > MenusShowHideBul } /// - /// + /// 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) { @@ -4738,12 +4985,12 @@ public async System.Threading.Tasks.Task - /// + /// 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) { @@ -4823,7 +5070,7 @@ public async System.Threading.Tasks.Task - /// [PRIVATE API]Set the type of Tax on a Menu + /// Set the type of Tax on a Menu /// /// Thrown when fails to make API call /// Menu identifier @@ -4835,7 +5082,7 @@ public void MenusUpdateTaxType (int? menuId, string type) } /// - /// [PRIVATE API]Set the type of Tax on a Menu + /// Set the type of Tax on a Menu /// /// Thrown when fails to make API call /// Menu identifier @@ -4903,7 +5150,7 @@ public ApiResponse MenusUpdateTaxTypeWithHttpInfo (int? menuId, string t } /// - /// [PRIVATE API]Set the type of Tax on a Menu + /// Set the type of Tax on a Menu /// /// Thrown when fails to make API call /// Menu identifier @@ -4916,7 +5163,7 @@ public async System.Threading.Tasks.Task MenusUpdateTaxTypeAsync (int? menuId, s } /// - /// [PRIVATE API]Set the type of Tax on a Menu + /// Set the type of Tax on a Menu /// /// Thrown when fails to make API call /// Menu identifier @@ -4984,11 +5231,11 @@ public async System.Threading.Tasks.Task> MenusUpdateTaxType } /// - /// [PRIVATE API]Add/Update a Tax Rate + /// Add/Update a Tax Rate /// /// Thrown when fails to make API call /// Menu identifier - /// Tax Rate to Add/Update + /// Tax rate to add/update /// MenuTaxRate public MenuTaxRate MenusUpsertTaxRate (int? menuId, MenuTaxRate taxRate) { @@ -4997,11 +5244,11 @@ public MenuTaxRate MenusUpsertTaxRate (int? menuId, MenuTaxRate taxRate) } /// - /// [PRIVATE API]Add/Update a Tax Rate + /// Add/Update a Tax Rate /// /// Thrown when fails to make API call /// Menu identifier - /// Tax Rate to Add/Update + /// Tax rate to add/update /// ApiResponse of MenuTaxRate public ApiResponse< MenuTaxRate > MenusUpsertTaxRateWithHttpInfo (int? menuId, MenuTaxRate taxRate) { @@ -5077,11 +5324,11 @@ public ApiResponse< MenuTaxRate > MenusUpsertTaxRateWithHttpInfo (int? menuId, M } /// - /// [PRIVATE API]Add/Update a Tax Rate + /// Add/Update a Tax Rate /// /// Thrown when fails to make API call /// Menu identifier - /// Tax Rate to Add/Update + /// Tax rate to add/update /// Task of MenuTaxRate public async System.Threading.Tasks.Task MenusUpsertTaxRateAsync (int? menuId, MenuTaxRate taxRate) { @@ -5091,11 +5338,11 @@ public async System.Threading.Tasks.Task MenusUpsertTaxRateAsync (i } /// - /// [PRIVATE API]Add/Update a Tax Rate + /// Add/Update a Tax Rate /// /// Thrown when fails to make API call /// Menu identifier - /// Tax Rate to Add/Update + /// Tax rate to add/update /// Task of ApiResponse (MenuTaxRate) public async System.Threading.Tasks.Task> MenusUpsertTaxRateAsyncWithHttpInfo (int? menuId, MenuTaxRate taxRate) { @@ -5171,7 +5418,7 @@ public async System.Threading.Tasks.Task> MenusUpsertTa } /// - /// [PRIVATE API]Restore a Menu to a checkpoint + /// Restore a Menu to a checkpoint /// /// Thrown when fails to make API call /// Menu identifier @@ -5183,7 +5430,7 @@ public void RestoreAMenuCheckpoint (int? menuId, int? checkpointId) } /// - /// [PRIVATE API]Restore a Menu to a checkpoint + /// Restore a Menu to a checkpoint /// /// Thrown when fails to make API call /// Menu identifier @@ -5251,7 +5498,7 @@ public ApiResponse RestoreAMenuCheckpointWithHttpInfo (int? menuId, int? } /// - /// [PRIVATE API]Restore a Menu to a checkpoint + /// Restore a Menu to a checkpoint /// /// Thrown when fails to make API call /// Menu identifier @@ -5264,7 +5511,7 @@ public async System.Threading.Tasks.Task RestoreAMenuCheckpointAsync (int? menuI } /// - /// [PRIVATE API]Restore a Menu to a checkpoint + /// Restore a Menu to a checkpoint /// /// Thrown when fails to make API call /// Menu identifier @@ -5750,7 +5997,7 @@ public async System.Threading.Tasks.Task> SetMenuItemOptionS } /// - /// [PRIVATE API]Lock/Unlock a Menu for Editing + /// Lock/Unlock a Menu for Editing /// /// Thrown when fails to make API call /// Menu identifier @@ -5762,7 +6009,7 @@ public void SetMenuLock (int? menuId, bool? locked) } /// - /// [PRIVATE API]Lock/Unlock a Menu for Editing + /// Lock/Unlock a Menu for Editing /// /// Thrown when fails to make API call /// Menu identifier @@ -5842,7 +6089,7 @@ public ApiResponse SetMenuLockWithHttpInfo (int? menuId, bool? locked) } /// - /// [PRIVATE API]Lock/Unlock a Menu for Editing + /// Lock/Unlock a Menu for Editing /// /// Thrown when fails to make API call /// Menu identifier @@ -5855,7 +6102,7 @@ public async System.Threading.Tasks.Task SetMenuLockAsync (int? menuId, bool? lo } /// - /// [PRIVATE API]Lock/Unlock a Menu for Editing + /// Lock/Unlock a Menu for Editing /// /// Thrown when fails to make API call /// Menu identifier @@ -5935,7 +6182,7 @@ public async System.Threading.Tasks.Task> SetMenuLockAsyncWi } /// - /// [PRIVATE API]Set Menus Name + /// Set Menus Name /// /// Thrown when fails to make API call /// Menu identifier @@ -5947,7 +6194,7 @@ public void SetMenuName (int? menuId, string name) } /// - /// [PRIVATE API]Set Menus Name + /// Set Menus Name /// /// Thrown when fails to make API call /// Menu identifier @@ -6027,7 +6274,7 @@ public ApiResponse SetMenuNameWithHttpInfo (int? menuId, string name) } /// - /// [PRIVATE API]Set Menus Name + /// Set Menus Name /// /// Thrown when fails to make API call /// Menu identifier @@ -6040,7 +6287,7 @@ public async System.Threading.Tasks.Task SetMenuNameAsync (int? menuId, string n } /// - /// [PRIVATE API]Set Menus Name + /// Set Menus Name /// /// Thrown when fails to make API call /// Menu identifier @@ -6124,7 +6371,7 @@ public async System.Threading.Tasks.Task> SetMenuNameAsyncWi /// /// Thrown when fails to make API call /// Menu identifier - /// Menu (delta) + /// Full menu data /// public void UpdateMenu (int? menuId, MenuBase menu) { @@ -6136,7 +6383,7 @@ public void UpdateMenu (int? menuId, MenuBase menu) /// /// Thrown when fails to make API call /// Menu identifier - /// Menu (delta) + /// Full menu data /// ApiResponse of Object(void) public ApiResponse UpdateMenuWithHttpInfo (int? menuId, MenuBase menu) { @@ -6216,7 +6463,7 @@ public ApiResponse UpdateMenuWithHttpInfo (int? menuId, MenuBase menu) /// /// Thrown when fails to make API call /// Menu identifier - /// Menu (delta) + /// Full menu data /// Task of void public async System.Threading.Tasks.Task UpdateMenuAsync (int? menuId, MenuBase menu) { @@ -6229,7 +6476,7 @@ public async System.Threading.Tasks.Task UpdateMenuAsync (int? menuId, MenuBase /// /// Thrown when fails to make API call /// Menu identifier - /// Menu (delta) + /// Full menu data /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateMenuAsyncWithHttpInfo (int? menuId, MenuBase menu) { diff --git a/src/Flipdish/Api/DeliveryTrackingApi.cs b/src/Flipdish/Api/MenusNutritionInfoApi.cs similarity index 55% rename from src/Flipdish/Api/DeliveryTrackingApi.cs rename to src/Flipdish/Api/MenusNutritionInfoApi.cs index 2585d565..8ca23af7 100644 --- a/src/Flipdish/Api/DeliveryTrackingApi.cs +++ b/src/Flipdish/Api/MenusNutritionInfoApi.cs @@ -21,322 +21,298 @@ namespace Flipdish.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IDeliveryTrackingApi : IApiAccessor + public interface IMenusNutritionInfoApi : IApiAccessor { #region Synchronous Operations /// - /// [PRIVATE] Assign driver to order + /// Add or update menuitem nutrition info by menu item's publicId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// Driver Id - /// - void AssignDriverToOrder (string appId, int? orderId, int? driverId); + /// Menu identifier + /// Menu item's publicId + /// + /// RestApiResultMenuNutritionInfoHeader + RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuItemNutritionInfo (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); /// - /// [PRIVATE] Assign driver to order + /// Add or update menuitem nutrition info by menu item's publicId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// Driver Id - /// ApiResponse of Object(void) - ApiResponse AssignDriverToOrderWithHttpInfo (string appId, int? orderId, int? driverId); + /// Menu identifier + /// Menu item's publicId + /// + /// ApiResponse of RestApiResultMenuNutritionInfoHeader + ApiResponse AddOrUpdateMenuItemNutritionInfoWithHttpInfo (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); /// - /// Assign driver to multiple orders + /// Add or update menuitem optionsetitem nutrition info its publicId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// Array of object containing OrderId and Sequence - /// - void AssignDriverToOrders (string appId, int? driverId, List orderIdAndSequenceNumbers); + /// Menu identifier + /// Menu item's publicId + /// + /// RestApiResultMenuNutritionInfoHeader + RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuItemOptionSetItemNutritionInfo (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); /// - /// Assign driver to multiple orders + /// Add or update menuitem optionsetitem nutrition info its publicId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// Array of object containing OrderId and Sequence - /// ApiResponse of Object(void) - ApiResponse AssignDriverToOrdersWithHttpInfo (string appId, int? driverId, List orderIdAndSequenceNumbers); + /// Menu identifier + /// Menu item's publicId + /// + /// ApiResponse of RestApiResultMenuNutritionInfoHeader + ApiResponse AddOrUpdateMenuItemOptionSetItemNutritionInfoWithHttpInfo (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); /// - /// [PRIVATE] Get drivers by App + /// Add or update menu nutrition by identifier /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver's username (optional) - /// Driver's phone number (optional) - /// Store Id (optional) - /// Offline/Online (optional) - /// RestApiArrayResultDriver - RestApiArrayResultDriver GetDrivers (string appId, string name = null, string phoneNumber = null, int? storeId = null, string presence = null); + /// Menu identifier + /// RestApiResultMenuNutritionInfoHeader + RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuNutritionInfoByMenuId (int? menuId); /// - /// [PRIVATE] Get drivers by App + /// Add or update menu nutrition by identifier /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver's username (optional) - /// Driver's phone number (optional) - /// Store Id (optional) - /// Offline/Online (optional) - /// ApiResponse of RestApiArrayResultDriver - ApiResponse GetDriversWithHttpInfo (string appId, string name = null, string phoneNumber = null, int? storeId = null, string presence = null); + /// Menu identifier + /// ApiResponse of RestApiResultMenuNutritionInfoHeader + ApiResponse AddOrUpdateMenuNutritionInfoByMenuIdWithHttpInfo (int? menuId); /// - /// [PRIVATE] Invite driver + /// Delete menu nutrition information by menuId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver invitation model - /// RestApiResultDriver - RestApiResultDriver InviteDriverToApp (string appId, DriverInvitation driverInvitation); + /// Menu identifier + /// Object + Object DeleteMenuNutritionInfoByMenuId (int? menuId); /// - /// [PRIVATE] Invite driver + /// Delete menu nutrition information by menuId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver invitation model - /// ApiResponse of RestApiResultDriver - ApiResponse InviteDriverToAppWithHttpInfo (string appId, DriverInvitation driverInvitation); + /// Menu identifier + /// ApiResponse of Object + ApiResponse DeleteMenuNutritionInfoByMenuIdWithHttpInfo (int? menuId); /// - /// [PRIVATE] Unassign driver from app + /// Get allergens /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// - void RemoveDriverFromApp (string appId, int? driverId); + /// + /// (optional) + /// RestApiArrayResultAllergen + RestApiArrayResultAllergen GetAllergens (string appId, string languageId = null); /// - /// [PRIVATE] Unassign driver from app + /// Get allergens /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// ApiResponse of Object(void) - ApiResponse RemoveDriverFromAppWithHttpInfo (string appId, int? driverId); + /// + /// (optional) + /// ApiResponse of RestApiArrayResultAllergen + ApiResponse GetAllergensWithHttpInfo (string appId, string languageId = null); /// - /// [PRIVATE] Unassign driver from order + /// Get menu nutrition by menuId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// - void UnassignDriverFromOrder (string appId, int? orderId); + /// Menu identifier + /// RestApiResultNutritionInfo + RestApiResultNutritionInfo GetMenuNutritionInfoByMenuId (int? menuId); /// - /// [PRIVATE] Unassign driver from order + /// Get menu nutrition by menuId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// ApiResponse of Object(void) - ApiResponse UnassignDriverFromOrderWithHttpInfo (string appId, int? orderId); + /// Menu identifier + /// ApiResponse of RestApiResultNutritionInfo + ApiResponse GetMenuNutritionInfoByMenuIdWithHttpInfo (int? menuId); #endregion Synchronous Operations #region Asynchronous Operations /// - /// [PRIVATE] Assign driver to order + /// Add or update menuitem nutrition info by menu item's publicId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// Driver Id - /// Task of void - System.Threading.Tasks.Task AssignDriverToOrderAsync (string appId, int? orderId, int? driverId); + /// Menu identifier + /// Menu item's publicId + /// + /// Task of RestApiResultMenuNutritionInfoHeader + System.Threading.Tasks.Task AddOrUpdateMenuItemNutritionInfoAsync (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); /// - /// [PRIVATE] Assign driver to order + /// Add or update menuitem nutrition info by menu item's publicId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// Driver Id - /// Task of ApiResponse - System.Threading.Tasks.Task> AssignDriverToOrderAsyncWithHttpInfo (string appId, int? orderId, int? driverId); + /// Menu identifier + /// Menu item's publicId + /// + /// Task of ApiResponse (RestApiResultMenuNutritionInfoHeader) + System.Threading.Tasks.Task> AddOrUpdateMenuItemNutritionInfoAsyncWithHttpInfo (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); /// - /// Assign driver to multiple orders + /// Add or update menuitem optionsetitem nutrition info its publicId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// Array of object containing OrderId and Sequence - /// Task of void - System.Threading.Tasks.Task AssignDriverToOrdersAsync (string appId, int? driverId, List orderIdAndSequenceNumbers); + /// Menu identifier + /// Menu item's publicId + /// + /// Task of RestApiResultMenuNutritionInfoHeader + System.Threading.Tasks.Task AddOrUpdateMenuItemOptionSetItemNutritionInfoAsync (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); /// - /// Assign driver to multiple orders + /// Add or update menuitem optionsetitem nutrition info its publicId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// Array of object containing OrderId and Sequence - /// Task of ApiResponse - System.Threading.Tasks.Task> AssignDriverToOrdersAsyncWithHttpInfo (string appId, int? driverId, List orderIdAndSequenceNumbers); + /// Menu identifier + /// Menu item's publicId + /// + /// Task of ApiResponse (RestApiResultMenuNutritionInfoHeader) + System.Threading.Tasks.Task> AddOrUpdateMenuItemOptionSetItemNutritionInfoAsyncWithHttpInfo (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel); /// - /// [PRIVATE] Get drivers by App + /// Add or update menu nutrition by identifier /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver's username (optional) - /// Driver's phone number (optional) - /// Store Id (optional) - /// Offline/Online (optional) - /// Task of RestApiArrayResultDriver - System.Threading.Tasks.Task GetDriversAsync (string appId, string name = null, string phoneNumber = null, int? storeId = null, string presence = null); + /// Menu identifier + /// Task of RestApiResultMenuNutritionInfoHeader + System.Threading.Tasks.Task AddOrUpdateMenuNutritionInfoByMenuIdAsync (int? menuId); /// - /// [PRIVATE] Get drivers by App + /// Add or update menu nutrition by identifier /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver's username (optional) - /// Driver's phone number (optional) - /// Store Id (optional) - /// Offline/Online (optional) - /// Task of ApiResponse (RestApiArrayResultDriver) - System.Threading.Tasks.Task> GetDriversAsyncWithHttpInfo (string appId, string name = null, string phoneNumber = null, int? storeId = null, string presence = null); + /// Menu identifier + /// Task of ApiResponse (RestApiResultMenuNutritionInfoHeader) + System.Threading.Tasks.Task> AddOrUpdateMenuNutritionInfoByMenuIdAsyncWithHttpInfo (int? menuId); /// - /// [PRIVATE] Invite driver + /// Delete menu nutrition information by menuId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver invitation model - /// Task of RestApiResultDriver - System.Threading.Tasks.Task InviteDriverToAppAsync (string appId, DriverInvitation driverInvitation); + /// Menu identifier + /// Task of Object + System.Threading.Tasks.Task DeleteMenuNutritionInfoByMenuIdAsync (int? menuId); /// - /// [PRIVATE] Invite driver + /// Delete menu nutrition information by menuId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver invitation model - /// Task of ApiResponse (RestApiResultDriver) - System.Threading.Tasks.Task> InviteDriverToAppAsyncWithHttpInfo (string appId, DriverInvitation driverInvitation); + /// Menu identifier + /// Task of ApiResponse (Object) + System.Threading.Tasks.Task> DeleteMenuNutritionInfoByMenuIdAsyncWithHttpInfo (int? menuId); /// - /// [PRIVATE] Unassign driver from app + /// Get allergens /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// Task of void - System.Threading.Tasks.Task RemoveDriverFromAppAsync (string appId, int? driverId); + /// + /// (optional) + /// Task of RestApiArrayResultAllergen + System.Threading.Tasks.Task GetAllergensAsync (string appId, string languageId = null); /// - /// [PRIVATE] Unassign driver from app + /// Get allergens /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// Task of ApiResponse - System.Threading.Tasks.Task> RemoveDriverFromAppAsyncWithHttpInfo (string appId, int? driverId); + /// + /// (optional) + /// Task of ApiResponse (RestApiArrayResultAllergen) + System.Threading.Tasks.Task> GetAllergensAsyncWithHttpInfo (string appId, string languageId = null); /// - /// [PRIVATE] Unassign driver from order + /// Get menu nutrition by menuId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// Task of void - System.Threading.Tasks.Task UnassignDriverFromOrderAsync (string appId, int? orderId); + /// Menu identifier + /// Task of RestApiResultNutritionInfo + System.Threading.Tasks.Task GetMenuNutritionInfoByMenuIdAsync (int? menuId); /// - /// [PRIVATE] Unassign driver from order + /// Get menu nutrition by menuId /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// Task of ApiResponse - System.Threading.Tasks.Task> UnassignDriverFromOrderAsyncWithHttpInfo (string appId, int? orderId); + /// 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 DeliveryTrackingApi : IDeliveryTrackingApi + public partial class MenusNutritionInfoApi : IMenusNutritionInfoApi { private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - public DeliveryTrackingApi(String basePath) + public MenusNutritionInfoApi(String basePath) { this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; @@ -344,12 +320,12 @@ public DeliveryTrackingApi(String basePath) } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// - public DeliveryTrackingApi(Flipdish.Client.Configuration configuration = null) + public MenusNutritionInfoApi(Flipdish.Client.Configuration configuration = null) { if (configuration == null) // use the default one in Configuration this.Configuration = Flipdish.Client.Configuration.Default; @@ -423,39 +399,40 @@ public void AddDefaultHeader(string key, string value) } /// - /// [PRIVATE] Assign driver to order + /// Add or update menuitem nutrition info by menu item's publicId /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// Driver Id - /// - public void AssignDriverToOrder (string appId, int? orderId, int? driverId) + /// Menu identifier + /// Menu item's publicId + /// + /// RestApiResultMenuNutritionInfoHeader + public RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuItemNutritionInfo (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) { - AssignDriverToOrderWithHttpInfo(appId, orderId, driverId); + ApiResponse localVarResponse = AddOrUpdateMenuItemNutritionInfoWithHttpInfo(menuId, publicId, addOrUpdateModel); + return localVarResponse.Data; } /// - /// [PRIVATE] Assign driver to order + /// Add or update menuitem nutrition info by menu item's publicId /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// Driver Id - /// ApiResponse of Object(void) - public ApiResponse AssignDriverToOrderWithHttpInfo (string appId, int? orderId, int? driverId) + /// Menu identifier + /// Menu item's publicId + /// + /// ApiResponse of RestApiResultMenuNutritionInfoHeader + public ApiResponse< RestApiResultMenuNutritionInfoHeader > AddOrUpdateMenuItemNutritionInfoWithHttpInfo (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) { - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling DeliveryTrackingApi->AssignDriverToOrder"); - // verify the required parameter 'orderId' is set - if (orderId == null) - throw new ApiException(400, "Missing required parameter 'orderId' when calling DeliveryTrackingApi->AssignDriverToOrder"); - // verify the required parameter 'driverId' is set - if (driverId == null) - throw new ApiException(400, "Missing required parameter 'driverId' when calling DeliveryTrackingApi->AssignDriverToOrder"); - - var localVarPath = "./api/v1.0/{appId}/drivers/{driverId}/orders/{orderId}"; + // 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); @@ -465,6 +442,11 @@ public ApiResponse AssignDriverToOrderWithHttpInfo (string appId, int? o // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -479,9 +461,16 @@ public ApiResponse AssignDriverToOrderWithHttpInfo (string appId, int? o 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 (driverId != null) localVarPathParams.Add("driverId", this.Configuration.ApiClient.ParameterToString(driverId)); // path parameter + 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 @@ -499,50 +488,51 @@ public ApiResponse AssignDriverToOrderWithHttpInfo (string appId, int? o if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("AssignDriverToOrder", localVarResponse); + Exception exception = ExceptionFactory("AddOrUpdateMenuItemNutritionInfo", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (RestApiResultMenuNutritionInfoHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuNutritionInfoHeader))); } /// - /// [PRIVATE] Assign driver to order + /// Add or update menuitem nutrition info by menu item's publicId /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// Driver Id - /// Task of void - public async System.Threading.Tasks.Task AssignDriverToOrderAsync (string appId, int? orderId, int? driverId) + /// Menu identifier + /// Menu item's publicId + /// + /// Task of RestApiResultMenuNutritionInfoHeader + public async System.Threading.Tasks.Task AddOrUpdateMenuItemNutritionInfoAsync (int? menuId, string publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) { - await AssignDriverToOrderAsyncWithHttpInfo(appId, orderId, driverId); + ApiResponse localVarResponse = await AddOrUpdateMenuItemNutritionInfoAsyncWithHttpInfo(menuId, publicId, addOrUpdateModel); + return localVarResponse.Data; } /// - /// [PRIVATE] Assign driver to order + /// Add or update menuitem nutrition info by menu item's publicId /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// Driver Id - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssignDriverToOrderAsyncWithHttpInfo (string appId, int? orderId, int? driverId) + /// 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 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling DeliveryTrackingApi->AssignDriverToOrder"); - // verify the required parameter 'orderId' is set - if (orderId == null) - throw new ApiException(400, "Missing required parameter 'orderId' when calling DeliveryTrackingApi->AssignDriverToOrder"); - // verify the required parameter 'driverId' is set - if (driverId == null) - throw new ApiException(400, "Missing required parameter 'driverId' when calling DeliveryTrackingApi->AssignDriverToOrder"); - - var localVarPath = "./api/v1.0/{appId}/drivers/{driverId}/orders/{orderId}"; + // 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); @@ -552,6 +542,11 @@ public async System.Threading.Tasks.Task> AssignDriverToOrde // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -566,9 +561,16 @@ public async System.Threading.Tasks.Task> AssignDriverToOrde 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 (driverId != null) localVarPathParams.Add("driverId", this.Configuration.ApiClient.ParameterToString(driverId)); // path parameter + 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 @@ -586,49 +588,50 @@ public async System.Threading.Tasks.Task> AssignDriverToOrde if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("AssignDriverToOrder", localVarResponse); + Exception exception = ExceptionFactory("AddOrUpdateMenuItemNutritionInfo", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (RestApiResultMenuNutritionInfoHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuNutritionInfoHeader))); } /// - /// Assign driver to multiple orders + /// Add or update menuitem optionsetitem nutrition info its publicId /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// Array of object containing OrderId and Sequence - /// - public void AssignDriverToOrders (string appId, int? driverId, List orderIdAndSequenceNumbers) + /// Menu identifier + /// Menu item's publicId + /// + /// RestApiResultMenuNutritionInfoHeader + public RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuItemOptionSetItemNutritionInfo (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) { - AssignDriverToOrdersWithHttpInfo(appId, driverId, orderIdAndSequenceNumbers); + ApiResponse localVarResponse = AddOrUpdateMenuItemOptionSetItemNutritionInfoWithHttpInfo(menuId, publicId, addOrUpdateModel); + return localVarResponse.Data; } /// - /// Assign driver to multiple orders + /// Add or update menuitem optionsetitem nutrition info its publicId /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// Array of object containing OrderId and Sequence - /// ApiResponse of Object(void) - public ApiResponse AssignDriverToOrdersWithHttpInfo (string appId, int? driverId, List orderIdAndSequenceNumbers) + /// Menu identifier + /// Menu item's publicId + /// + /// ApiResponse of RestApiResultMenuNutritionInfoHeader + public ApiResponse< RestApiResultMenuNutritionInfoHeader > AddOrUpdateMenuItemOptionSetItemNutritionInfoWithHttpInfo (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) { - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling DeliveryTrackingApi->AssignDriverToOrders"); - // verify the required parameter 'driverId' is set - if (driverId == null) - throw new ApiException(400, "Missing required parameter 'driverId' when calling DeliveryTrackingApi->AssignDriverToOrders"); - // verify the required parameter 'orderIdAndSequenceNumbers' is set - if (orderIdAndSequenceNumbers == null) - throw new ApiException(400, "Missing required parameter 'orderIdAndSequenceNumbers' when calling DeliveryTrackingApi->AssignDriverToOrders"); - - var localVarPath = "./api/v1.0/{appId}/drivers/{driverId}/orders"; + // 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); @@ -657,15 +660,15 @@ public ApiResponse AssignDriverToOrdersWithHttpInfo (string appId, int? if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (driverId != null) localVarPathParams.Add("driverId", this.Configuration.ApiClient.ParameterToString(driverId)); // path parameter - if (orderIdAndSequenceNumbers != null && orderIdAndSequenceNumbers.GetType() != typeof(byte[])) + 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(orderIdAndSequenceNumbers); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(addOrUpdateModel); // http body (model) parameter } else { - localVarPostBody = orderIdAndSequenceNumbers; // byte array + localVarPostBody = addOrUpdateModel; // byte array } // authentication (oauth2) required @@ -684,50 +687,51 @@ public ApiResponse AssignDriverToOrdersWithHttpInfo (string appId, int? if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("AssignDriverToOrders", localVarResponse); + Exception exception = ExceptionFactory("AddOrUpdateMenuItemOptionSetItemNutritionInfo", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (RestApiResultMenuNutritionInfoHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuNutritionInfoHeader))); } /// - /// Assign driver to multiple orders + /// Add or update menuitem optionsetitem nutrition info its publicId /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// Array of object containing OrderId and Sequence - /// Task of void - public async System.Threading.Tasks.Task AssignDriverToOrdersAsync (string appId, int? driverId, List orderIdAndSequenceNumbers) + /// Menu identifier + /// Menu item's publicId + /// + /// Task of RestApiResultMenuNutritionInfoHeader + public async System.Threading.Tasks.Task AddOrUpdateMenuItemOptionSetItemNutritionInfoAsync (int? menuId, Guid? publicId, ItemNutritionInfoAddUpdateModel addOrUpdateModel) { - await AssignDriverToOrdersAsyncWithHttpInfo(appId, driverId, orderIdAndSequenceNumbers); + ApiResponse localVarResponse = await AddOrUpdateMenuItemOptionSetItemNutritionInfoAsyncWithHttpInfo(menuId, publicId, addOrUpdateModel); + return localVarResponse.Data; } /// - /// Assign driver to multiple orders + /// Add or update menuitem optionsetitem nutrition info its publicId /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// Array of object containing OrderId and Sequence - /// Task of ApiResponse - public async System.Threading.Tasks.Task> AssignDriverToOrdersAsyncWithHttpInfo (string appId, int? driverId, List orderIdAndSequenceNumbers) + /// 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 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling DeliveryTrackingApi->AssignDriverToOrders"); - // verify the required parameter 'driverId' is set - if (driverId == null) - throw new ApiException(400, "Missing required parameter 'driverId' when calling DeliveryTrackingApi->AssignDriverToOrders"); - // verify the required parameter 'orderIdAndSequenceNumbers' is set - if (orderIdAndSequenceNumbers == null) - throw new ApiException(400, "Missing required parameter 'orderIdAndSequenceNumbers' when calling DeliveryTrackingApi->AssignDriverToOrders"); - - var localVarPath = "./api/v1.0/{appId}/drivers/{driverId}/orders"; + // 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); @@ -756,15 +760,15 @@ public async System.Threading.Tasks.Task> AssignDriverToOrde if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (driverId != null) localVarPathParams.Add("driverId", this.Configuration.ApiClient.ParameterToString(driverId)); // path parameter - if (orderIdAndSequenceNumbers != null && orderIdAndSequenceNumbers.GetType() != typeof(byte[])) + 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(orderIdAndSequenceNumbers); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(addOrUpdateModel); // http body (model) parameter } else { - localVarPostBody = orderIdAndSequenceNumbers; // byte array + localVarPostBody = addOrUpdateModel; // byte array } // authentication (oauth2) required @@ -783,48 +787,40 @@ public async System.Threading.Tasks.Task> AssignDriverToOrde if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("AssignDriverToOrders", localVarResponse); + Exception exception = ExceptionFactory("AddOrUpdateMenuItemOptionSetItemNutritionInfo", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (RestApiResultMenuNutritionInfoHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuNutritionInfoHeader))); } /// - /// [PRIVATE] Get drivers by App + /// Add or update menu nutrition by identifier /// /// Thrown when fails to make API call - /// Application identifier - /// Driver's username (optional) - /// Driver's phone number (optional) - /// Store Id (optional) - /// Offline/Online (optional) - /// RestApiArrayResultDriver - public RestApiArrayResultDriver GetDrivers (string appId, string name = null, string phoneNumber = null, int? storeId = null, string presence = null) + /// Menu identifier + /// RestApiResultMenuNutritionInfoHeader + public RestApiResultMenuNutritionInfoHeader AddOrUpdateMenuNutritionInfoByMenuId (int? menuId) { - ApiResponse localVarResponse = GetDriversWithHttpInfo(appId, name, phoneNumber, storeId, presence); + ApiResponse localVarResponse = AddOrUpdateMenuNutritionInfoByMenuIdWithHttpInfo(menuId); return localVarResponse.Data; } /// - /// [PRIVATE] Get drivers by App + /// Add or update menu nutrition by identifier /// /// Thrown when fails to make API call - /// Application identifier - /// Driver's username (optional) - /// Driver's phone number (optional) - /// Store Id (optional) - /// Offline/Online (optional) - /// ApiResponse of RestApiArrayResultDriver - public ApiResponse< RestApiArrayResultDriver > GetDriversWithHttpInfo (string appId, string name = null, string phoneNumber = null, int? storeId = null, string presence = null) + /// Menu identifier + /// ApiResponse of RestApiResultMenuNutritionInfoHeader + public ApiResponse< RestApiResultMenuNutritionInfoHeader > AddOrUpdateMenuNutritionInfoByMenuIdWithHttpInfo (int? menuId) { - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling DeliveryTrackingApi->GetDrivers"); + // 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/{appId}/drivers"; + var localVarPath = "./api/v1.0/menus/{menuId}/nutrition"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -848,11 +844,7 @@ public ApiResponse< RestApiArrayResultDriver > GetDriversWithHttpInfo (string ap if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - if (phoneNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "phoneNumber", phoneNumber)); // query parameter - if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter - if (presence != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "presence", presence)); // query parameter + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter // authentication (oauth2) required // oauth required @@ -863,56 +855,48 @@ public ApiResponse< RestApiArrayResultDriver > GetDriversWithHttpInfo (string ap // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetDrivers", localVarResponse); + Exception exception = ExceptionFactory("AddOrUpdateMenuNutritionInfoByMenuId", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultDriver) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultDriver))); + (RestApiResultMenuNutritionInfoHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuNutritionInfoHeader))); } /// - /// [PRIVATE] Get drivers by App + /// Add or update menu nutrition by identifier /// /// Thrown when fails to make API call - /// Application identifier - /// Driver's username (optional) - /// Driver's phone number (optional) - /// Store Id (optional) - /// Offline/Online (optional) - /// Task of RestApiArrayResultDriver - public async System.Threading.Tasks.Task GetDriversAsync (string appId, string name = null, string phoneNumber = null, int? storeId = null, string presence = null) + /// Menu identifier + /// Task of RestApiResultMenuNutritionInfoHeader + public async System.Threading.Tasks.Task AddOrUpdateMenuNutritionInfoByMenuIdAsync (int? menuId) { - ApiResponse localVarResponse = await GetDriversAsyncWithHttpInfo(appId, name, phoneNumber, storeId, presence); + ApiResponse localVarResponse = await AddOrUpdateMenuNutritionInfoByMenuIdAsyncWithHttpInfo(menuId); return localVarResponse.Data; } /// - /// [PRIVATE] Get drivers by App + /// Add or update menu nutrition by identifier /// /// Thrown when fails to make API call - /// Application identifier - /// Driver's username (optional) - /// Driver's phone number (optional) - /// Store Id (optional) - /// Offline/Online (optional) - /// Task of ApiResponse (RestApiArrayResultDriver) - public async System.Threading.Tasks.Task> GetDriversAsyncWithHttpInfo (string appId, string name = null, string phoneNumber = null, int? storeId = null, string presence = null) + /// Menu identifier + /// Task of ApiResponse (RestApiResultMenuNutritionInfoHeader) + public async System.Threading.Tasks.Task> AddOrUpdateMenuNutritionInfoByMenuIdAsyncWithHttpInfo (int? menuId) { - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling DeliveryTrackingApi->GetDrivers"); + // 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/{appId}/drivers"; + var localVarPath = "./api/v1.0/menus/{menuId}/nutrition"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -936,11 +920,7 @@ public async System.Threading.Tasks.Task> if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (name != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "name", name)); // query parameter - if (phoneNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "phoneNumber", phoneNumber)); // query parameter - if (storeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "storeId", storeId)); // query parameter - if (presence != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "presence", presence)); // query parameter + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter // authentication (oauth2) required // oauth required @@ -951,52 +931,47 @@ public async System.Threading.Tasks.Task> // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetDrivers", localVarResponse); + Exception exception = ExceptionFactory("AddOrUpdateMenuNutritionInfoByMenuId", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultDriver) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultDriver))); + (RestApiResultMenuNutritionInfoHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMenuNutritionInfoHeader))); } /// - /// [PRIVATE] Invite driver + /// Delete menu nutrition information by menuId /// /// Thrown when fails to make API call - /// Application identifier - /// Driver invitation model - /// RestApiResultDriver - public RestApiResultDriver InviteDriverToApp (string appId, DriverInvitation driverInvitation) + /// Menu identifier + /// Object + public Object DeleteMenuNutritionInfoByMenuId (int? menuId) { - ApiResponse localVarResponse = InviteDriverToAppWithHttpInfo(appId, driverInvitation); + ApiResponse localVarResponse = DeleteMenuNutritionInfoByMenuIdWithHttpInfo(menuId); return localVarResponse.Data; } /// - /// [PRIVATE] Invite driver + /// Delete menu nutrition information by menuId /// /// Thrown when fails to make API call - /// Application identifier - /// Driver invitation model - /// ApiResponse of RestApiResultDriver - public ApiResponse< RestApiResultDriver > InviteDriverToAppWithHttpInfo (string appId, DriverInvitation driverInvitation) + /// Menu identifier + /// ApiResponse of Object + public ApiResponse< Object > DeleteMenuNutritionInfoByMenuIdWithHttpInfo (int? menuId) { - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling DeliveryTrackingApi->InviteDriverToApp"); - // verify the required parameter 'driverInvitation' is set - if (driverInvitation == null) - throw new ApiException(400, "Missing required parameter 'driverInvitation' when calling DeliveryTrackingApi->InviteDriverToApp"); + // 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/{appId}/drivers"; + var localVarPath = "./api/v1.0/menus/{menuId}/nutrition"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1006,11 +981,6 @@ public ApiResponse< RestApiResultDriver > InviteDriverToAppWithHttpInfo (string // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -1025,15 +995,7 @@ public ApiResponse< RestApiResultDriver > InviteDriverToAppWithHttpInfo (string if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (driverInvitation != null && driverInvitation.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(driverInvitation); // http body (model) parameter - } - else - { - localVarPostBody = driverInvitation; // byte array - } + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter // authentication (oauth2) required // oauth required @@ -1044,53 +1006,48 @@ public ApiResponse< RestApiResultDriver > InviteDriverToAppWithHttpInfo (string // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("InviteDriverToApp", localVarResponse); + Exception exception = ExceptionFactory("DeleteMenuNutritionInfoByMenuId", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultDriver) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultDriver))); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// [PRIVATE] Invite driver + /// Delete menu nutrition information by menuId /// /// Thrown when fails to make API call - /// Application identifier - /// Driver invitation model - /// Task of RestApiResultDriver - public async System.Threading.Tasks.Task InviteDriverToAppAsync (string appId, DriverInvitation driverInvitation) + /// Menu identifier + /// Task of Object + public async System.Threading.Tasks.Task DeleteMenuNutritionInfoByMenuIdAsync (int? menuId) { - ApiResponse localVarResponse = await InviteDriverToAppAsyncWithHttpInfo(appId, driverInvitation); + ApiResponse localVarResponse = await DeleteMenuNutritionInfoByMenuIdAsyncWithHttpInfo(menuId); return localVarResponse.Data; } /// - /// [PRIVATE] Invite driver + /// Delete menu nutrition information by menuId /// /// Thrown when fails to make API call - /// Application identifier - /// Driver invitation model - /// Task of ApiResponse (RestApiResultDriver) - public async System.Threading.Tasks.Task> InviteDriverToAppAsyncWithHttpInfo (string appId, DriverInvitation driverInvitation) + /// Menu identifier + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> DeleteMenuNutritionInfoByMenuIdAsyncWithHttpInfo (int? menuId) { - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling DeliveryTrackingApi->InviteDriverToApp"); - // verify the required parameter 'driverInvitation' is set - if (driverInvitation == null) - throw new ApiException(400, "Missing required parameter 'driverInvitation' when calling DeliveryTrackingApi->InviteDriverToApp"); + // 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/{appId}/drivers"; + var localVarPath = "./api/v1.0/menus/{menuId}/nutrition"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1100,11 +1057,6 @@ public async System.Threading.Tasks.Task> Invit // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -1119,15 +1071,7 @@ public async System.Threading.Tasks.Task> Invit if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (driverInvitation != null && driverInvitation.GetType() != typeof(byte[])) - { - localVarPostBody = this.Configuration.ApiClient.Serialize(driverInvitation); // http body (model) parameter - } - else - { - localVarPostBody = driverInvitation; // byte array - } + if (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter // authentication (oauth2) required // oauth required @@ -1138,51 +1082,49 @@ public async System.Threading.Tasks.Task> Invit // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("InviteDriverToApp", localVarResponse); + Exception exception = ExceptionFactory("DeleteMenuNutritionInfoByMenuId", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultDriver) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultDriver))); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// [PRIVATE] Unassign driver from app + /// Get allergens /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// - public void RemoveDriverFromApp (string appId, int? driverId) + /// + /// (optional) + /// RestApiArrayResultAllergen + public RestApiArrayResultAllergen GetAllergens (string appId, string languageId = null) { - RemoveDriverFromAppWithHttpInfo(appId, driverId); + ApiResponse localVarResponse = GetAllergensWithHttpInfo(appId, languageId); + return localVarResponse.Data; } /// - /// [PRIVATE] Unassign driver from app + /// Get allergens /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// ApiResponse of Object(void) - public ApiResponse RemoveDriverFromAppWithHttpInfo (string appId, int? driverId) + /// + /// (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 DeliveryTrackingApi->RemoveDriverFromApp"); - // verify the required parameter 'driverId' is set - if (driverId == null) - throw new ApiException(400, "Missing required parameter 'driverId' when calling DeliveryTrackingApi->RemoveDriverFromApp"); + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusNutritionInfoApi->GetAllergens"); - var localVarPath = "./api/v1.0/{appId}/drivers/{driverId}"; + var localVarPath = "./api/v1.0/{appId}/menus/nutrition/allergens"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1207,7 +1149,7 @@ public ApiResponse RemoveDriverFromAppWithHttpInfo (string appId, int? d localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (driverId != null) localVarPathParams.Add("driverId", this.Configuration.ApiClient.ParameterToString(driverId)); // path parameter + if (languageId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "languageId", languageId)); // query parameter // authentication (oauth2) required // oauth required @@ -1218,52 +1160,50 @@ public ApiResponse RemoveDriverFromAppWithHttpInfo (string appId, int? d // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("RemoveDriverFromApp", localVarResponse); + Exception exception = ExceptionFactory("GetAllergens", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (RestApiArrayResultAllergen) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAllergen))); } /// - /// [PRIVATE] Unassign driver from app + /// Get allergens /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// Task of void - public async System.Threading.Tasks.Task RemoveDriverFromAppAsync (string appId, int? driverId) + /// + /// (optional) + /// Task of RestApiArrayResultAllergen + public async System.Threading.Tasks.Task GetAllergensAsync (string appId, string languageId = null) { - await RemoveDriverFromAppAsyncWithHttpInfo(appId, driverId); + ApiResponse localVarResponse = await GetAllergensAsyncWithHttpInfo(appId, languageId); + return localVarResponse.Data; } /// - /// [PRIVATE] Unassign driver from app + /// Get allergens /// /// Thrown when fails to make API call - /// Application identifier - /// Driver Id - /// Task of ApiResponse - public async System.Threading.Tasks.Task> RemoveDriverFromAppAsyncWithHttpInfo (string appId, int? driverId) + /// + /// (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 DeliveryTrackingApi->RemoveDriverFromApp"); - // verify the required parameter 'driverId' is set - if (driverId == null) - throw new ApiException(400, "Missing required parameter 'driverId' when calling DeliveryTrackingApi->RemoveDriverFromApp"); + throw new ApiException(400, "Missing required parameter 'appId' when calling MenusNutritionInfoApi->GetAllergens"); - var localVarPath = "./api/v1.0/{appId}/drivers/{driverId}"; + var localVarPath = "./api/v1.0/{appId}/menus/nutrition/allergens"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1288,7 +1228,7 @@ public async System.Threading.Tasks.Task> RemoveDriverFromAp localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (driverId != null) localVarPathParams.Add("driverId", this.Configuration.ApiClient.ParameterToString(driverId)); // path parameter + if (languageId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "languageId", languageId)); // query parameter // authentication (oauth2) required // oauth required @@ -1299,51 +1239,47 @@ public async System.Threading.Tasks.Task> RemoveDriverFromAp // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("RemoveDriverFromApp", localVarResponse); + Exception exception = ExceptionFactory("GetAllergens", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (RestApiArrayResultAllergen) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultAllergen))); } /// - /// [PRIVATE] Unassign driver from order + /// Get menu nutrition by menuId /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// - public void UnassignDriverFromOrder (string appId, int? orderId) + /// Menu identifier + /// RestApiResultNutritionInfo + public RestApiResultNutritionInfo GetMenuNutritionInfoByMenuId (int? menuId) { - UnassignDriverFromOrderWithHttpInfo(appId, orderId); + ApiResponse localVarResponse = GetMenuNutritionInfoByMenuIdWithHttpInfo(menuId); + return localVarResponse.Data; } /// - /// [PRIVATE] Unassign driver from order + /// Get menu nutrition by menuId /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// ApiResponse of Object(void) - public ApiResponse UnassignDriverFromOrderWithHttpInfo (string appId, int? orderId) + /// Menu identifier + /// ApiResponse of RestApiResultNutritionInfo + public ApiResponse< RestApiResultNutritionInfo > GetMenuNutritionInfoByMenuIdWithHttpInfo (int? menuId) { - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling DeliveryTrackingApi->UnassignDriverFromOrder"); - // verify the required parameter 'orderId' is set - if (orderId == null) - throw new ApiException(400, "Missing required parameter 'orderId' when calling DeliveryTrackingApi->UnassignDriverFromOrder"); + // 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/{appId}/orders/{orderId}/driver"; + var localVarPath = "./api/v1.0/menus/{menuId}/nutrition"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1367,8 +1303,7 @@ public ApiResponse UnassignDriverFromOrderWithHttpInfo (string appId, in 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 (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter // authentication (oauth2) required // oauth required @@ -1379,52 +1314,48 @@ public ApiResponse UnassignDriverFromOrderWithHttpInfo (string appId, in // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("UnassignDriverFromOrder", localVarResponse); + Exception exception = ExceptionFactory("GetMenuNutritionInfoByMenuId", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (RestApiResultNutritionInfo) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultNutritionInfo))); } /// - /// [PRIVATE] Unassign driver from order + /// Get menu nutrition by menuId /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// Task of void - public async System.Threading.Tasks.Task UnassignDriverFromOrderAsync (string appId, int? orderId) + /// Menu identifier + /// Task of RestApiResultNutritionInfo + public async System.Threading.Tasks.Task GetMenuNutritionInfoByMenuIdAsync (int? menuId) { - await UnassignDriverFromOrderAsyncWithHttpInfo(appId, orderId); + ApiResponse localVarResponse = await GetMenuNutritionInfoByMenuIdAsyncWithHttpInfo(menuId); + return localVarResponse.Data; } /// - /// [PRIVATE] Unassign driver from order + /// Get menu nutrition by menuId /// /// Thrown when fails to make API call - /// Application identifier - /// Order Id - /// Task of ApiResponse - public async System.Threading.Tasks.Task> UnassignDriverFromOrderAsyncWithHttpInfo (string appId, int? orderId) + /// Menu identifier + /// Task of ApiResponse (RestApiResultNutritionInfo) + public async System.Threading.Tasks.Task> GetMenuNutritionInfoByMenuIdAsyncWithHttpInfo (int? menuId) { - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling DeliveryTrackingApi->UnassignDriverFromOrder"); - // verify the required parameter 'orderId' is set - if (orderId == null) - throw new ApiException(400, "Missing required parameter 'orderId' when calling DeliveryTrackingApi->UnassignDriverFromOrder"); + // 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/{appId}/orders/{orderId}/driver"; + var localVarPath = "./api/v1.0/menus/{menuId}/nutrition"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1448,8 +1379,7 @@ public async System.Threading.Tasks.Task> UnassignDriverFrom 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 (menuId != null) localVarPathParams.Add("menuId", this.Configuration.ApiClient.ParameterToString(menuId)); // path parameter // authentication (oauth2) required // oauth required @@ -1460,20 +1390,20 @@ public async System.Threading.Tasks.Task> UnassignDriverFrom // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("UnassignDriverFromOrder", localVarResponse); + Exception exception = ExceptionFactory("GetMenuNutritionInfoByMenuId", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (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 index dd50b324..31ea5bb9 100644 --- a/src/Flipdish/Api/MetafieldDefinitionsApi.cs +++ b/src/Flipdish/Api/MetafieldDefinitionsApi.cs @@ -25,10 +25,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor { #region Synchronous Operations /// - /// Create a Metafield Definition + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -38,10 +38,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor RestApiResultMetafieldDefinition CreateMetafieldDefinition (string appId, string ownerEntity, CreateMetafieldDefinition createMetafieldDefinition); /// - /// Create a Metafield Definition + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -50,10 +50,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor /// ApiResponse of RestApiResultMetafieldDefinition ApiResponse CreateMetafieldDefinitionWithHttpInfo (string appId, string ownerEntity, CreateMetafieldDefinition createMetafieldDefinition); /// - /// Get a Metafield Definition for the specified owner entity and key. + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -63,10 +63,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor RestApiResultMetafieldDefinition GetMetafieldDefinitionByKey (string appId, string ownerEntity, string key); /// - /// Get a Metafield Definition for the specified owner entity and key. + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -75,10 +75,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor /// ApiResponse of RestApiResultMetafieldDefinition ApiResponse GetMetafieldDefinitionByKeyWithHttpInfo (string appId, string ownerEntity, string key); /// - /// Get Metafield Definitions for the specified owner entity. + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -90,10 +90,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor RestApiPaginationResultMetafieldDefinition GetMetafieldDefinitions (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); /// - /// Get Metafield Definitions for the specified owner entity. + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -104,10 +104,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor /// ApiResponse of RestApiPaginationResultMetafieldDefinition ApiResponse GetMetafieldDefinitionsWithHttpInfo (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); /// - /// Get OwnerEntity Configurations which contain information to manage Metafield Definitions + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -115,20 +115,20 @@ public interface IMetafieldDefinitionsApi : IApiAccessor OwnerEntityConfigurations GetOwnerEntityConfigurations (string appId); /// - /// Get OwnerEntity Configurations which contain information to manage Metafield Definitions + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// /// ApiResponse of OwnerEntityConfigurations ApiResponse GetOwnerEntityConfigurationsWithHttpInfo (string appId); /// - /// Get OwnerEntity Definition Recommendations + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -140,10 +140,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor RestApiPaginationResultMetafieldDefinitionRecommendation GetOwnerEntityRecommendations (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); /// - /// Get OwnerEntity Definition Recommendations + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -154,10 +154,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor /// ApiResponse of RestApiPaginationResultMetafieldDefinitionRecommendation ApiResponse GetOwnerEntityRecommendationsWithHttpInfo (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); /// - /// Update a Metafield Definition + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -168,10 +168,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor RestApiResultMetafieldDefinition UpdateMetafieldDefinition (string appId, string ownerEntity, string key, UpdateMetafieldDefinition updateMetafieldDefinition); /// - /// Update a Metafield Definition + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -183,10 +183,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor #endregion Synchronous Operations #region Asynchronous Operations /// - /// Create a Metafield Definition + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -196,10 +196,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor System.Threading.Tasks.Task CreateMetafieldDefinitionAsync (string appId, string ownerEntity, CreateMetafieldDefinition createMetafieldDefinition); /// - /// Create a Metafield Definition + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -208,10 +208,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor /// Task of ApiResponse (RestApiResultMetafieldDefinition) System.Threading.Tasks.Task> CreateMetafieldDefinitionAsyncWithHttpInfo (string appId, string ownerEntity, CreateMetafieldDefinition createMetafieldDefinition); /// - /// Get a Metafield Definition for the specified owner entity and key. + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -221,10 +221,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor System.Threading.Tasks.Task GetMetafieldDefinitionByKeyAsync (string appId, string ownerEntity, string key); /// - /// Get a Metafield Definition for the specified owner entity and key. + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -233,10 +233,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor /// Task of ApiResponse (RestApiResultMetafieldDefinition) System.Threading.Tasks.Task> GetMetafieldDefinitionByKeyAsyncWithHttpInfo (string appId, string ownerEntity, string key); /// - /// Get Metafield Definitions for the specified owner entity. + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -248,10 +248,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor System.Threading.Tasks.Task GetMetafieldDefinitionsAsync (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); /// - /// Get Metafield Definitions for the specified owner entity. + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -262,10 +262,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor /// Task of ApiResponse (RestApiPaginationResultMetafieldDefinition) System.Threading.Tasks.Task> GetMetafieldDefinitionsAsyncWithHttpInfo (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); /// - /// Get OwnerEntity Configurations which contain information to manage Metafield Definitions + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -273,20 +273,20 @@ public interface IMetafieldDefinitionsApi : IApiAccessor System.Threading.Tasks.Task GetOwnerEntityConfigurationsAsync (string appId); /// - /// Get OwnerEntity Configurations which contain information to manage Metafield Definitions + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (OwnerEntityConfigurations) System.Threading.Tasks.Task> GetOwnerEntityConfigurationsAsyncWithHttpInfo (string appId); /// - /// Get OwnerEntity Definition Recommendations + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -298,10 +298,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor System.Threading.Tasks.Task GetOwnerEntityRecommendationsAsync (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); /// - /// Get OwnerEntity Definition Recommendations + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -312,10 +312,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor /// Task of ApiResponse (RestApiPaginationResultMetafieldDefinitionRecommendation) System.Threading.Tasks.Task> GetOwnerEntityRecommendationsAsyncWithHttpInfo (string appId, string ownerEntity, string searchTerm = null, int? page = null, int? limit = null); /// - /// Update a Metafield Definition + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -326,10 +326,10 @@ public interface IMetafieldDefinitionsApi : IApiAccessor System.Threading.Tasks.Task UpdateMetafieldDefinitionAsync (string appId, string ownerEntity, string key, UpdateMetafieldDefinition updateMetafieldDefinition); /// - /// Update a Metafield Definition + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -439,7 +439,7 @@ public void AddDefaultHeader(string key, string value) } /// - /// Create a Metafield Definition [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -453,7 +453,7 @@ public RestApiResultMetafieldDefinition CreateMetafieldDefinition (string appId, } /// - /// Create a Metafield Definition [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -538,7 +538,7 @@ public ApiResponse< RestApiResultMetafieldDefinition > CreateMetafieldDefinition } /// - /// Create a Metafield Definition [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -553,7 +553,7 @@ public async System.Threading.Tasks.Task Creat } /// - /// Create a Metafield Definition [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -638,7 +638,7 @@ public async System.Threading.Tasks.Task - /// Get a Metafield Definition for the specified owner entity and key. [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -652,7 +652,7 @@ public RestApiResultMetafieldDefinition GetMetafieldDefinitionByKey (string appI } /// - /// Get a Metafield Definition for the specified owner entity and key. [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -725,7 +725,7 @@ public ApiResponse< RestApiResultMetafieldDefinition > GetMetafieldDefinitionByK } /// - /// Get a Metafield Definition for the specified owner entity and key. [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -740,7 +740,7 @@ public async System.Threading.Tasks.Task GetMe } /// - /// Get a Metafield Definition for the specified owner entity and key. [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -813,7 +813,7 @@ public async System.Threading.Tasks.Task - /// Get Metafield Definitions for the specified owner entity. [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -829,7 +829,7 @@ public RestApiPaginationResultMetafieldDefinition GetMetafieldDefinitions (strin } /// - /// Get Metafield Definitions for the specified owner entity. [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -903,7 +903,7 @@ public ApiResponse< RestApiPaginationResultMetafieldDefinition > GetMetafieldDef } /// - /// Get Metafield Definitions for the specified owner entity. [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -920,7 +920,7 @@ public async System.Threading.Tasks.Task - /// Get Metafield Definitions for the specified owner entity. [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -994,7 +994,7 @@ public async System.Threading.Tasks.Task - /// Get OwnerEntity Configurations which contain information to manage Metafield Definitions [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1006,7 +1006,7 @@ public OwnerEntityConfigurations GetOwnerEntityConfigurations (string appId) } /// - /// Get OwnerEntity Configurations which contain information to manage Metafield Definitions [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1069,7 +1069,7 @@ public ApiResponse< OwnerEntityConfigurations > GetOwnerEntityConfigurationsWith } /// - /// Get OwnerEntity Configurations which contain information to manage Metafield Definitions [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1082,7 +1082,7 @@ public async System.Threading.Tasks.Task GetOwnerEnti } /// - /// Get OwnerEntity Configurations which contain information to manage Metafield Definitions [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1145,7 +1145,7 @@ public async System.Threading.Tasks.Task> } /// - /// Get OwnerEntity Definition Recommendations [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1161,7 +1161,7 @@ public RestApiPaginationResultMetafieldDefinitionRecommendation GetOwnerEntityRe } /// - /// Get OwnerEntity Definition Recommendations [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1235,7 +1235,7 @@ public ApiResponse< RestApiPaginationResultMetafieldDefinitionRecommendation > G } /// - /// Get OwnerEntity Definition Recommendations [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1252,7 +1252,7 @@ public async System.Threading.Tasks.Task - /// Get OwnerEntity Definition Recommendations [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1326,7 +1326,7 @@ public async System.Threading.Tasks.Task - /// Update a Metafield Definition [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1341,7 +1341,7 @@ public RestApiResultMetafieldDefinition UpdateMetafieldDefinition (string appId, } /// - /// Update a Metafield Definition [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1431,7 +1431,7 @@ public ApiResponse< RestApiResultMetafieldDefinition > UpdateMetafieldDefinition } /// - /// Update a Metafield Definition [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// @@ -1447,7 +1447,7 @@ public async System.Threading.Tasks.Task Updat } /// - /// Update a Metafield Definition [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// diff --git a/src/Flipdish/Api/MobileAppsApi.cs b/src/Flipdish/Api/MobileAppsApi.cs index ca2ad70f..aecf6d97 100644 --- a/src/Flipdish/Api/MobileAppsApi.cs +++ b/src/Flipdish/Api/MobileAppsApi.cs @@ -25,7 +25,7 @@ public interface IMobileAppsApi : IApiAccessor { #region Synchronous Operations /// - /// Get sales channel configuration + /// /// /// /// @@ -36,7 +36,7 @@ public interface IMobileAppsApi : IApiAccessor RestApiResultAppConfigSalesChannel GetAppConfigSalesChannel (string appId); /// - /// Get sales channel configuration + /// /// /// /// @@ -46,7 +46,7 @@ public interface IMobileAppsApi : IApiAccessor /// ApiResponse of RestApiResultAppConfigSalesChannel ApiResponse GetAppConfigSalesChannelWithHttpInfo (string appId); /// - /// Get statistics mobile apps + /// /// /// /// @@ -58,7 +58,7 @@ public interface IMobileAppsApi : IApiAccessor RestApiArrayResultMobileAppsStatistics GetStatistics (string appId, List platformTypes); /// - /// Get statistics mobile apps + /// /// /// /// @@ -69,7 +69,7 @@ public interface IMobileAppsApi : IApiAccessor /// ApiResponse of RestApiArrayResultMobileAppsStatistics ApiResponse GetStatisticsWithHttpInfo (string appId, List platformTypes); /// - /// Get submission details mobile apps + /// /// /// /// @@ -80,7 +80,7 @@ public interface IMobileAppsApi : IApiAccessor RestApiResultMobileAppsSubmissionDetails GetSubmissionDetails (string appId); /// - /// Get submission details mobile apps + /// /// /// /// @@ -90,30 +90,78 @@ public interface IMobileAppsApi : IApiAccessor /// ApiResponse of RestApiResultMobileAppsSubmissionDetails ApiResponse GetSubmissionDetailsWithHttpInfo (string appId); /// - /// Get submission status mobile apps + /// /// /// /// /// /// Thrown when fails to make API call /// - /// + /// /// RestApiResultMobileAppsSubmissionStatus - RestApiResultMobileAppsSubmissionStatus GetSubmissionStatus (string appId, int? mobileAppsSubmissionId); + RestApiResultMobileAppsSubmissionStatus GetSubmissionStatus (string appId, int? submissionId); /// - /// Get submission status mobile apps + /// /// /// /// /// /// Thrown when fails to make API call /// - /// + /// /// ApiResponse of RestApiResultMobileAppsSubmissionStatus - ApiResponse GetSubmissionStatusWithHttpInfo (string appId, int? mobileAppsSubmissionId); + 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); /// - /// Submission form mobile apps + /// /// /// /// @@ -125,7 +173,7 @@ public interface IMobileAppsApi : IApiAccessor RestApiResultMobileAppsSubmission Submission (string appId, MobileAppsSubmission mobileAppsSubmission); /// - /// Submission form mobile apps + /// /// /// /// @@ -136,7 +184,32 @@ public interface IMobileAppsApi : IApiAccessor /// ApiResponse of RestApiResultMobileAppsSubmission ApiResponse SubmissionWithHttpInfo (string appId, MobileAppsSubmission mobileAppsSubmission); /// - /// Update the application sales channel configuration + /// + /// + /// + /// + /// + /// 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); + /// + /// /// /// /// @@ -148,7 +221,7 @@ public interface IMobileAppsApi : IApiAccessor RestApiResultAppConfigSalesChannel UpdateAppConfigSalesChannel (string appId, AppConfigSalesChannel appConfigSalesChannel); /// - /// Update the application sales channel configuration + /// /// /// /// @@ -159,32 +232,32 @@ public interface IMobileAppsApi : IApiAccessor /// ApiResponse of RestApiResultAppConfigSalesChannel ApiResponse UpdateAppConfigSalesChannelWithHttpInfo (string appId, AppConfigSalesChannel appConfigSalesChannel); /// - /// Update submission status + /// /// /// /// /// /// Thrown when fails to make API call /// - /// - /// + /// + /// /// RestApiResultUpdateMobileAppsSubmissionStatus - RestApiResultUpdateMobileAppsSubmissionStatus UpdateSubmissionStatus (string appId, int? mobileAppsSubmissionId, UpdateMobileAppsSubmissionStatus updateMobileAppsSubmissionStatus); + RestApiResultUpdateMobileAppsSubmissionStatus UpdateSubmissionStatus (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus); /// - /// Update submission status + /// /// /// /// /// /// Thrown when fails to make API call /// - /// - /// + /// + /// /// ApiResponse of RestApiResultUpdateMobileAppsSubmissionStatus - ApiResponse UpdateSubmissionStatusWithHttpInfo (string appId, int? mobileAppsSubmissionId, UpdateMobileAppsSubmissionStatus updateMobileAppsSubmissionStatus); + ApiResponse UpdateSubmissionStatusWithHttpInfo (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus); /// - /// Upload image mobile apps + /// /// /// /// @@ -196,7 +269,7 @@ public interface IMobileAppsApi : IApiAccessor RestApiResultMobileAppsImage UploadImage (string appId, System.IO.Stream image); /// - /// Upload image mobile apps + /// /// /// /// @@ -209,7 +282,7 @@ public interface IMobileAppsApi : IApiAccessor #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get sales channel configuration + /// /// /// /// @@ -220,7 +293,7 @@ public interface IMobileAppsApi : IApiAccessor System.Threading.Tasks.Task GetAppConfigSalesChannelAsync (string appId); /// - /// Get sales channel configuration + /// /// /// /// @@ -230,7 +303,7 @@ public interface IMobileAppsApi : IApiAccessor /// Task of ApiResponse (RestApiResultAppConfigSalesChannel) System.Threading.Tasks.Task> GetAppConfigSalesChannelAsyncWithHttpInfo (string appId); /// - /// Get statistics mobile apps + /// /// /// /// @@ -242,7 +315,7 @@ public interface IMobileAppsApi : IApiAccessor System.Threading.Tasks.Task GetStatisticsAsync (string appId, List platformTypes); /// - /// Get statistics mobile apps + /// /// /// /// @@ -253,7 +326,7 @@ public interface IMobileAppsApi : IApiAccessor /// Task of ApiResponse (RestApiArrayResultMobileAppsStatistics) System.Threading.Tasks.Task> GetStatisticsAsyncWithHttpInfo (string appId, List platformTypes); /// - /// Get submission details mobile apps + /// /// /// /// @@ -264,7 +337,7 @@ public interface IMobileAppsApi : IApiAccessor System.Threading.Tasks.Task GetSubmissionDetailsAsync (string appId); /// - /// Get submission details mobile apps + /// /// /// /// @@ -274,30 +347,78 @@ public interface IMobileAppsApi : IApiAccessor /// Task of ApiResponse (RestApiResultMobileAppsSubmissionDetails) System.Threading.Tasks.Task> GetSubmissionDetailsAsyncWithHttpInfo (string appId); /// - /// Get submission status mobile apps + /// /// /// /// /// /// Thrown when fails to make API call /// - /// + /// /// Task of RestApiResultMobileAppsSubmissionStatus - System.Threading.Tasks.Task GetSubmissionStatusAsync (string appId, int? mobileAppsSubmissionId); + System.Threading.Tasks.Task GetSubmissionStatusAsync (string appId, int? submissionId); /// - /// Get submission status mobile apps + /// /// /// /// /// /// Thrown when fails to make API call /// - /// + /// /// Task of ApiResponse (RestApiResultMobileAppsSubmissionStatus) - System.Threading.Tasks.Task> GetSubmissionStatusAsyncWithHttpInfo (string appId, int? mobileAppsSubmissionId); + 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); /// - /// Submission form mobile apps + /// + /// + /// + /// + /// + /// 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); + /// + /// /// /// /// @@ -309,7 +430,7 @@ public interface IMobileAppsApi : IApiAccessor System.Threading.Tasks.Task SubmissionAsync (string appId, MobileAppsSubmission mobileAppsSubmission); /// - /// Submission form mobile apps + /// /// /// /// @@ -320,7 +441,32 @@ public interface IMobileAppsApi : IApiAccessor /// Task of ApiResponse (RestApiResultMobileAppsSubmission) System.Threading.Tasks.Task> SubmissionAsyncWithHttpInfo (string appId, MobileAppsSubmission mobileAppsSubmission); /// - /// Update the application sales channel configuration + /// + /// + /// + /// + /// + /// 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); + /// + /// /// /// /// @@ -332,7 +478,7 @@ public interface IMobileAppsApi : IApiAccessor System.Threading.Tasks.Task UpdateAppConfigSalesChannelAsync (string appId, AppConfigSalesChannel appConfigSalesChannel); /// - /// Update the application sales channel configuration + /// /// /// /// @@ -343,32 +489,32 @@ public interface IMobileAppsApi : IApiAccessor /// Task of ApiResponse (RestApiResultAppConfigSalesChannel) System.Threading.Tasks.Task> UpdateAppConfigSalesChannelAsyncWithHttpInfo (string appId, AppConfigSalesChannel appConfigSalesChannel); /// - /// Update submission status + /// /// /// /// /// /// Thrown when fails to make API call /// - /// - /// + /// + /// /// Task of RestApiResultUpdateMobileAppsSubmissionStatus - System.Threading.Tasks.Task UpdateSubmissionStatusAsync (string appId, int? mobileAppsSubmissionId, UpdateMobileAppsSubmissionStatus updateMobileAppsSubmissionStatus); + System.Threading.Tasks.Task UpdateSubmissionStatusAsync (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus); /// - /// Update submission status + /// /// /// /// /// /// Thrown when fails to make API call /// - /// - /// + /// + /// /// Task of ApiResponse (RestApiResultUpdateMobileAppsSubmissionStatus) - System.Threading.Tasks.Task> UpdateSubmissionStatusAsyncWithHttpInfo (string appId, int? mobileAppsSubmissionId, UpdateMobileAppsSubmissionStatus updateMobileAppsSubmissionStatus); + System.Threading.Tasks.Task> UpdateSubmissionStatusAsyncWithHttpInfo (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus); /// - /// Upload image mobile apps + /// /// /// /// @@ -380,7 +526,7 @@ public interface IMobileAppsApi : IApiAccessor System.Threading.Tasks.Task UploadImageAsync (string appId, System.IO.Stream image); /// - /// Upload image mobile apps + /// /// /// /// @@ -491,7 +637,7 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get sales channel configuration + /// /// /// Thrown when fails to make API call /// @@ -503,7 +649,7 @@ public RestApiResultAppConfigSalesChannel GetAppConfigSalesChannel (string appId } /// - /// Get sales channel configuration + /// /// /// Thrown when fails to make API call /// @@ -566,7 +712,7 @@ public ApiResponse< RestApiResultAppConfigSalesChannel > GetAppConfigSalesChanne } /// - /// Get sales channel configuration + /// /// /// Thrown when fails to make API call /// @@ -579,7 +725,7 @@ public async System.Threading.Tasks.Task Get } /// - /// Get sales channel configuration + /// /// /// Thrown when fails to make API call /// @@ -642,7 +788,7 @@ public async System.Threading.Tasks.Task - /// Get statistics mobile apps + /// /// /// Thrown when fails to make API call /// @@ -655,7 +801,7 @@ public RestApiArrayResultMobileAppsStatistics GetStatistics (string appId, List< } /// - /// Get statistics mobile apps + /// /// /// Thrown when fails to make API call /// @@ -723,7 +869,7 @@ public ApiResponse< RestApiArrayResultMobileAppsStatistics > GetStatisticsWithHt } /// - /// Get statistics mobile apps + /// /// /// Thrown when fails to make API call /// @@ -737,7 +883,7 @@ public async System.Threading.Tasks.Task } /// - /// Get statistics mobile apps + /// /// /// Thrown when fails to make API call /// @@ -805,7 +951,7 @@ public async System.Threading.Tasks.Task - /// Get submission details mobile apps + /// /// /// Thrown when fails to make API call /// @@ -817,7 +963,7 @@ public RestApiResultMobileAppsSubmissionDetails GetSubmissionDetails (string app } /// - /// Get submission details mobile apps + /// /// /// Thrown when fails to make API call /// @@ -880,7 +1026,7 @@ public ApiResponse< RestApiResultMobileAppsSubmissionDetails > GetSubmissionDeta } /// - /// Get submission details mobile apps + /// /// /// Thrown when fails to make API call /// @@ -893,7 +1039,7 @@ public async System.Threading.Tasks.Task - /// Get submission details mobile apps + /// /// /// Thrown when fails to make API call /// @@ -956,35 +1102,35 @@ public async System.Threading.Tasks.Task - /// Get submission status mobile apps + /// /// /// Thrown when fails to make API call /// - /// + /// /// RestApiResultMobileAppsSubmissionStatus - public RestApiResultMobileAppsSubmissionStatus GetSubmissionStatus (string appId, int? mobileAppsSubmissionId) + public RestApiResultMobileAppsSubmissionStatus GetSubmissionStatus (string appId, int? submissionId) { - ApiResponse localVarResponse = GetSubmissionStatusWithHttpInfo(appId, mobileAppsSubmissionId); + ApiResponse localVarResponse = GetSubmissionStatusWithHttpInfo(appId, submissionId); return localVarResponse.Data; } /// - /// Get submission status mobile apps + /// /// /// Thrown when fails to make API call /// - /// + /// /// ApiResponse of RestApiResultMobileAppsSubmissionStatus - public ApiResponse< RestApiResultMobileAppsSubmissionStatus > GetSubmissionStatusWithHttpInfo (string appId, int? mobileAppsSubmissionId) + 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 'mobileAppsSubmissionId' is set - if (mobileAppsSubmissionId == null) - throw new ApiException(400, "Missing required parameter 'mobileAppsSubmissionId' 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/status"; + 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); @@ -1009,7 +1155,7 @@ public ApiResponse< RestApiResultMobileAppsSubmissionStatus > GetSubmissionStatu localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (mobileAppsSubmissionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "mobileAppsSubmissionId", mobileAppsSubmissionId)); // query parameter + if (submissionId != null) localVarPathParams.Add("submissionId", this.Configuration.ApiClient.ParameterToString(submissionId)); // path parameter // authentication (oauth2) required // oauth required @@ -1037,36 +1183,36 @@ public ApiResponse< RestApiResultMobileAppsSubmissionStatus > GetSubmissionStatu } /// - /// Get submission status mobile apps + /// /// /// Thrown when fails to make API call /// - /// + /// /// Task of RestApiResultMobileAppsSubmissionStatus - public async System.Threading.Tasks.Task GetSubmissionStatusAsync (string appId, int? mobileAppsSubmissionId) + public async System.Threading.Tasks.Task GetSubmissionStatusAsync (string appId, int? submissionId) { - ApiResponse localVarResponse = await GetSubmissionStatusAsyncWithHttpInfo(appId, mobileAppsSubmissionId); + ApiResponse localVarResponse = await GetSubmissionStatusAsyncWithHttpInfo(appId, submissionId); return localVarResponse.Data; } /// - /// Get submission status mobile apps + /// /// /// Thrown when fails to make API call /// - /// + /// /// Task of ApiResponse (RestApiResultMobileAppsSubmissionStatus) - public async System.Threading.Tasks.Task> GetSubmissionStatusAsyncWithHttpInfo (string appId, int? mobileAppsSubmissionId) + 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 'mobileAppsSubmissionId' is set - if (mobileAppsSubmissionId == null) - throw new ApiException(400, "Missing required parameter 'mobileAppsSubmissionId' 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/status"; + 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); @@ -1091,7 +1237,7 @@ public async System.Threading.Tasks.Task - /// Submission form mobile apps + /// /// /// Thrown when fails to make API call /// - /// - /// RestApiResultMobileAppsSubmission - public RestApiResultMobileAppsSubmission Submission (string appId, MobileAppsSubmission mobileAppsSubmission) + /// + /// (optional) + /// RestApiResultRestApiIntegerResult + public RestApiResultRestApiIntegerResult Publish (string appId, int? submissionId, string platformType = null) { - ApiResponse localVarResponse = SubmissionWithHttpInfo(appId, mobileAppsSubmission); + ApiResponse localVarResponse = PublishWithHttpInfo(appId, submissionId, platformType); return localVarResponse.Data; } /// - /// Submission form mobile apps + /// /// /// Thrown when fails to make API call /// - /// - /// ApiResponse of RestApiResultMobileAppsSubmission - public ApiResponse< RestApiResultMobileAppsSubmission > SubmissionWithHttpInfo (string appId, MobileAppsSubmission mobileAppsSubmission) + /// + /// (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->Submission"); - // verify the required parameter 'mobileAppsSubmission' is set - if (mobileAppsSubmission == null) - throw new ApiException(400, "Missing required parameter 'mobileAppsSubmission' when calling MobileAppsApi->Submission"); + 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"; + 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); @@ -1157,11 +1305,6 @@ public ApiResponse< RestApiResultMobileAppsSubmission > SubmissionWithHttpInfo ( // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -1177,15 +1320,94 @@ public ApiResponse< RestApiResultMobileAppsSubmission > SubmissionWithHttpInfo ( localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (mobileAppsSubmission != null && mobileAppsSubmission.GetType() != typeof(byte[])) + 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)) { - localVarPostBody = this.Configuration.ApiClient.Serialize(mobileAppsSubmission); // http body (model) parameter + localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; } - else + + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) { - localVarPostBody = mobileAppsSubmission; // byte array + 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)) @@ -1194,7 +1416,7 @@ public ApiResponse< RestApiResultMobileAppsSubmission > SubmissionWithHttpInfo ( } // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); @@ -1202,46 +1424,45 @@ public ApiResponse< RestApiResultMobileAppsSubmission > SubmissionWithHttpInfo ( if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("Submission", localVarResponse); + Exception exception = ExceptionFactory("Publish", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultMobileAppsSubmission) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultMobileAppsSubmission))); + (RestApiResultRestApiIntegerResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestApiIntegerResult))); } /// - /// Submission form mobile apps + /// /// /// Thrown when fails to make API call /// /// - /// Task of RestApiResultMobileAppsSubmission - public async System.Threading.Tasks.Task SubmissionAsync (string appId, MobileAppsSubmission mobileAppsSubmission) + /// RestApiResultMobileAppsSubmission + public RestApiResultMobileAppsSubmission Resubmission (string appId, MobileAppsSubmission mobileAppsSubmission) { - ApiResponse localVarResponse = await SubmissionAsyncWithHttpInfo(appId, mobileAppsSubmission); + ApiResponse localVarResponse = ResubmissionWithHttpInfo(appId, mobileAppsSubmission); return localVarResponse.Data; - } /// - /// Submission form mobile apps + /// /// /// Thrown when fails to make API call /// /// - /// Task of ApiResponse (RestApiResultMobileAppsSubmission) - public async System.Threading.Tasks.Task> SubmissionAsyncWithHttpInfo (string appId, MobileAppsSubmission mobileAppsSubmission) + /// 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->Submission"); + 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->Submission"); + throw new ApiException(400, "Missing required parameter 'mobileAppsSubmission' when calling MobileAppsApi->Resubmission"); - var localVarPath = "./api/v1.0/mobileapps/{appId}/submission"; + var localVarPath = "./api/v1.0/mobileapps/{appId}/resubmission"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1288,7 +1509,7 @@ public async System.Threading.Tasks.Task - /// Update the application sales channel configuration + /// + /// + /// 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 /// @@ -1319,7 +1990,7 @@ public RestApiResultAppConfigSalesChannel UpdateAppConfigSalesChannel (string ap } /// - /// Update the application sales channel configuration + /// /// /// Thrown when fails to make API call /// @@ -1399,7 +2070,7 @@ public ApiResponse< RestApiResultAppConfigSalesChannel > UpdateAppConfigSalesCha } /// - /// Update the application sales channel configuration + /// /// /// Thrown when fails to make API call /// @@ -1413,7 +2084,7 @@ public async System.Threading.Tasks.Task Upd } /// - /// Update the application sales channel configuration + /// /// /// Thrown when fails to make API call /// @@ -1493,40 +2164,40 @@ public async System.Threading.Tasks.Task - /// Update submission status + /// /// /// Thrown when fails to make API call /// - /// - /// + /// + /// /// RestApiResultUpdateMobileAppsSubmissionStatus - public RestApiResultUpdateMobileAppsSubmissionStatus UpdateSubmissionStatus (string appId, int? mobileAppsSubmissionId, UpdateMobileAppsSubmissionStatus updateMobileAppsSubmissionStatus) + public RestApiResultUpdateMobileAppsSubmissionStatus UpdateSubmissionStatus (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus) { - ApiResponse localVarResponse = UpdateSubmissionStatusWithHttpInfo(appId, mobileAppsSubmissionId, updateMobileAppsSubmissionStatus); + ApiResponse localVarResponse = UpdateSubmissionStatusWithHttpInfo(appId, submissionId, updateSubmissionStatus); return localVarResponse.Data; } /// - /// Update submission status + /// /// /// Thrown when fails to make API call /// - /// - /// + /// + /// /// ApiResponse of RestApiResultUpdateMobileAppsSubmissionStatus - public ApiResponse< RestApiResultUpdateMobileAppsSubmissionStatus > UpdateSubmissionStatusWithHttpInfo (string appId, int? mobileAppsSubmissionId, UpdateMobileAppsSubmissionStatus updateMobileAppsSubmissionStatus) + 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 'mobileAppsSubmissionId' is set - if (mobileAppsSubmissionId == null) - throw new ApiException(400, "Missing required parameter 'mobileAppsSubmissionId' when calling MobileAppsApi->UpdateSubmissionStatus"); - // verify the required parameter 'updateMobileAppsSubmissionStatus' is set - if (updateMobileAppsSubmissionStatus == null) - throw new ApiException(400, "Missing required parameter 'updateMobileAppsSubmissionStatus' when calling MobileAppsApi->UpdateSubmissionStatus"); - - var localVarPath = "./api/v1.0/mobileapps/{appId}/submission/{mobileAppsSubmissionId}/status"; + // 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); @@ -1556,14 +2227,14 @@ public ApiResponse< RestApiResultUpdateMobileAppsSubmissionStatus > UpdateSubmis localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (appId != null) localVarPathParams.Add("appId", this.Configuration.ApiClient.ParameterToString(appId)); // path parameter - if (mobileAppsSubmissionId != null) localVarPathParams.Add("mobileAppsSubmissionId", this.Configuration.ApiClient.ParameterToString(mobileAppsSubmissionId)); // path parameter - if (updateMobileAppsSubmissionStatus != null && updateMobileAppsSubmissionStatus.GetType() != typeof(byte[])) + 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(updateMobileAppsSubmissionStatus); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(updateSubmissionStatus); // http body (model) parameter } else { - localVarPostBody = updateMobileAppsSubmissionStatus; // byte array + localVarPostBody = updateSubmissionStatus; // byte array } // authentication (oauth2) required @@ -1592,41 +2263,41 @@ public ApiResponse< RestApiResultUpdateMobileAppsSubmissionStatus > UpdateSubmis } /// - /// Update submission status + /// /// /// Thrown when fails to make API call /// - /// - /// + /// + /// /// Task of RestApiResultUpdateMobileAppsSubmissionStatus - public async System.Threading.Tasks.Task UpdateSubmissionStatusAsync (string appId, int? mobileAppsSubmissionId, UpdateMobileAppsSubmissionStatus updateMobileAppsSubmissionStatus) + public async System.Threading.Tasks.Task UpdateSubmissionStatusAsync (string appId, int? submissionId, UpdateMobileAppsSubmissionStatus updateSubmissionStatus) { - ApiResponse localVarResponse = await UpdateSubmissionStatusAsyncWithHttpInfo(appId, mobileAppsSubmissionId, updateMobileAppsSubmissionStatus); + ApiResponse localVarResponse = await UpdateSubmissionStatusAsyncWithHttpInfo(appId, submissionId, updateSubmissionStatus); return localVarResponse.Data; } /// - /// Update submission status + /// /// /// Thrown when fails to make API call /// - /// - /// + /// + /// /// Task of ApiResponse (RestApiResultUpdateMobileAppsSubmissionStatus) - public async System.Threading.Tasks.Task> UpdateSubmissionStatusAsyncWithHttpInfo (string appId, int? mobileAppsSubmissionId, UpdateMobileAppsSubmissionStatus updateMobileAppsSubmissionStatus) + 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 'mobileAppsSubmissionId' is set - if (mobileAppsSubmissionId == null) - throw new ApiException(400, "Missing required parameter 'mobileAppsSubmissionId' when calling MobileAppsApi->UpdateSubmissionStatus"); - // verify the required parameter 'updateMobileAppsSubmissionStatus' is set - if (updateMobileAppsSubmissionStatus == null) - throw new ApiException(400, "Missing required parameter 'updateMobileAppsSubmissionStatus' when calling MobileAppsApi->UpdateSubmissionStatus"); - - var localVarPath = "./api/v1.0/mobileapps/{appId}/submission/{mobileAppsSubmissionId}/status"; + // 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); @@ -1656,14 +2327,14 @@ public async System.Threading.Tasks.Task - /// Upload image mobile apps + /// /// /// Thrown when fails to make API call /// @@ -1705,7 +2376,7 @@ public RestApiResultMobileAppsImage UploadImage (string appId, System.IO.Stream } /// - /// Upload image mobile apps + /// /// /// Thrown when fails to make API call /// @@ -1774,7 +2445,7 @@ public ApiResponse< RestApiResultMobileAppsImage > UploadImageWithHttpInfo (stri } /// - /// Upload image mobile apps + /// /// /// Thrown when fails to make API call /// @@ -1788,7 +2459,7 @@ public async System.Threading.Tasks.Task UploadIma } /// - /// Upload image mobile apps + /// /// /// Thrown when fails to make API call /// diff --git a/src/Flipdish/Api/OAuthClientsApi.cs b/src/Flipdish/Api/OAuthClientsApi.cs index 2c148ea5..34b6651d 100644 --- a/src/Flipdish/Api/OAuthClientsApi.cs +++ b/src/Flipdish/Api/OAuthClientsApi.cs @@ -25,78 +25,78 @@ public interface IOAuthClientsApi : IApiAccessor { #region Synchronous Operations /// - /// Create OAuth App redirect uri + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri + /// + /// /// /// RestApiResultOauthClientRedirectUri RestApiResultOauthClientRedirectUri AddRedirectUri (string oauthAppId, string uri, string appId); /// - /// Create OAuth App redirect uri + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri + /// + /// /// /// ApiResponse of RestApiResultOauthClientRedirectUri ApiResponse AddRedirectUriWithHttpInfo (string oauthAppId, string uri, string appId); /// - /// Create OAuth App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App + /// /// /// void CreateOAuthApp (OAuthApp oAuthApp, string appId); /// - /// Create OAuth App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App + /// /// /// ApiResponse of Object(void) ApiResponse CreateOAuthAppWithHttpInfo (OAuthApp oAuthApp, string appId); /// - /// Delete OAuth App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// void DeleteOAuthApp (string oauthAppId, string appId); /// - /// Delete OAuth App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// ApiResponse of Object(void) ApiResponse DeleteOAuthAppWithHttpInfo (string oauthAppId, string appId); /// - /// Get all OAuth Apps + /// /// /// /// @@ -108,7 +108,7 @@ public interface IOAuthClientsApi : IApiAccessor RestApiArrayResultOAuthApp GetOAuthApps (string appId, string oauthAppName = null); /// - /// Get all OAuth Apps + /// /// /// /// @@ -119,94 +119,94 @@ public interface IOAuthClientsApi : IApiAccessor /// ApiResponse of RestApiArrayResultOAuthApp ApiResponse GetOAuthAppsWithHttpInfo (string appId, string oauthAppName = null); /// - /// Get OAuth App by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// RestApiResultOAuthApp RestApiResultOAuthApp GetOAuthClientByClientId (string oauthAppId, string appId); /// - /// Get OAuth App by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// ApiResponse of RestApiResultOAuthApp ApiResponse GetOAuthClientByClientIdWithHttpInfo (string oauthAppId, string appId); /// - /// Get OAuth App secret key + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// RestApiStringResult RestApiStringResult GetOAuthClientSecret (string oauthAppId, string appId); /// - /// Get OAuth App secret key + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// ApiResponse of RestApiStringResult ApiResponse GetOAuthClientSecretWithHttpInfo (string oauthAppId, string appId); /// - /// Get OAuth access token for App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// RestApiStringResult RestApiStringResult GetOauthAccessToken (string oauthAppId, string appId); /// - /// Get OAuth access token for App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// ApiResponse of RestApiStringResult ApiResponse GetOauthAccessTokenWithHttpInfo (string oauthAppId, string appId); /// - /// Get OAuth App redirect uris + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// RestApiArrayResultOauthClientRedirectUri RestApiArrayResultOauthClientRedirectUri GetRedirectUris (string oauthAppId, string appId); /// - /// Get OAuth App redirect uris + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// ApiResponse of RestApiArrayResultOauthClientRedirectUri ApiResponse GetRedirectUrisWithHttpInfo (string oauthAppId, string appId); @@ -232,130 +232,130 @@ public interface IOAuthClientsApi : IApiAccessor /// ApiResponse of Object ApiResponse OAuthClientsGetApplicationsWithHttpInfo (string appId); /// - /// Delete OAuth App redirect uri + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri identifier + /// + /// /// /// void RemoveRedirectUri (string oauthAppId, int? uriId, string appId); /// - /// Delete OAuth App redirect uri + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri identifier + /// + /// /// /// ApiResponse of Object(void) ApiResponse RemoveRedirectUriWithHttpInfo (string oauthAppId, int? uriId, string appId); /// - /// Update OAuth App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// OAuth App + /// + /// /// /// void UpdateOAuthApp (string oauthAppId, OAuthApp oAuthApp, string appId); /// - /// Update OAuth App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// OAuth App + /// + /// /// /// ApiResponse of Object(void) ApiResponse UpdateOAuthAppWithHttpInfo (string oauthAppId, OAuthApp oAuthApp, string appId); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Create OAuth App redirect uri + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri + /// + /// /// /// Task of RestApiResultOauthClientRedirectUri System.Threading.Tasks.Task AddRedirectUriAsync (string oauthAppId, string uri, string appId); /// - /// Create OAuth App redirect uri + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri + /// + /// /// /// Task of ApiResponse (RestApiResultOauthClientRedirectUri) System.Threading.Tasks.Task> AddRedirectUriAsyncWithHttpInfo (string oauthAppId, string uri, string appId); /// - /// Create OAuth App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App + /// /// /// Task of void System.Threading.Tasks.Task CreateOAuthAppAsync (OAuthApp oAuthApp, string appId); /// - /// Create OAuth App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App + /// /// /// Task of ApiResponse System.Threading.Tasks.Task> CreateOAuthAppAsyncWithHttpInfo (OAuthApp oAuthApp, string appId); /// - /// Delete OAuth App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of void System.Threading.Tasks.Task DeleteOAuthAppAsync (string oauthAppId, string appId); /// - /// Delete OAuth App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of ApiResponse System.Threading.Tasks.Task> DeleteOAuthAppAsyncWithHttpInfo (string oauthAppId, string appId); /// - /// Get all OAuth Apps + /// /// /// /// @@ -367,7 +367,7 @@ public interface IOAuthClientsApi : IApiAccessor System.Threading.Tasks.Task GetOAuthAppsAsync (string appId, string oauthAppName = null); /// - /// Get all OAuth Apps + /// /// /// /// @@ -378,94 +378,94 @@ public interface IOAuthClientsApi : IApiAccessor /// Task of ApiResponse (RestApiArrayResultOAuthApp) System.Threading.Tasks.Task> GetOAuthAppsAsyncWithHttpInfo (string appId, string oauthAppName = null); /// - /// Get OAuth App by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of RestApiResultOAuthApp System.Threading.Tasks.Task GetOAuthClientByClientIdAsync (string oauthAppId, string appId); /// - /// Get OAuth App by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of ApiResponse (RestApiResultOAuthApp) System.Threading.Tasks.Task> GetOAuthClientByClientIdAsyncWithHttpInfo (string oauthAppId, string appId); /// - /// Get OAuth App secret key + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of RestApiStringResult System.Threading.Tasks.Task GetOAuthClientSecretAsync (string oauthAppId, string appId); /// - /// Get OAuth App secret key + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of ApiResponse (RestApiStringResult) System.Threading.Tasks.Task> GetOAuthClientSecretAsyncWithHttpInfo (string oauthAppId, string appId); /// - /// Get OAuth access token for App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of RestApiStringResult System.Threading.Tasks.Task GetOauthAccessTokenAsync (string oauthAppId, string appId); /// - /// Get OAuth access token for App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of ApiResponse (RestApiStringResult) System.Threading.Tasks.Task> GetOauthAccessTokenAsyncWithHttpInfo (string oauthAppId, string appId); /// - /// Get OAuth App redirect uris + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of RestApiArrayResultOauthClientRedirectUri System.Threading.Tasks.Task GetRedirectUrisAsync (string oauthAppId, string appId); /// - /// Get OAuth App redirect uris + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of ApiResponse (RestApiArrayResultOauthClientRedirectUri) System.Threading.Tasks.Task> GetRedirectUrisAsyncWithHttpInfo (string oauthAppId, string appId); @@ -491,52 +491,52 @@ public interface IOAuthClientsApi : IApiAccessor /// Task of ApiResponse (Object) System.Threading.Tasks.Task> OAuthClientsGetApplicationsAsyncWithHttpInfo (string appId); /// - /// Delete OAuth App redirect uri + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri identifier + /// + /// /// /// Task of void System.Threading.Tasks.Task RemoveRedirectUriAsync (string oauthAppId, int? uriId, string appId); /// - /// Delete OAuth App redirect uri + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri identifier + /// + /// /// /// Task of ApiResponse System.Threading.Tasks.Task> RemoveRedirectUriAsyncWithHttpInfo (string oauthAppId, int? uriId, string appId); /// - /// Update OAuth App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// OAuth App + /// + /// /// /// Task of void System.Threading.Tasks.Task UpdateOAuthAppAsync (string oauthAppId, OAuthApp oAuthApp, string appId); /// - /// Update OAuth App + /// /// /// /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// OAuth App + /// + /// /// /// Task of ApiResponse System.Threading.Tasks.Task> UpdateOAuthAppAsyncWithHttpInfo (string oauthAppId, OAuthApp oAuthApp, string appId); @@ -641,11 +641,11 @@ public void AddDefaultHeader(string key, string value) } /// - /// Create OAuth App redirect uri + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri + /// + /// /// /// RestApiResultOauthClientRedirectUri public RestApiResultOauthClientRedirectUri AddRedirectUri (string oauthAppId, string uri, string appId) @@ -655,11 +655,11 @@ public RestApiResultOauthClientRedirectUri AddRedirectUri (string oauthAppId, st } /// - /// Create OAuth App redirect uri + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri + /// + /// /// /// ApiResponse of RestApiResultOauthClientRedirectUri public ApiResponse< RestApiResultOauthClientRedirectUri > AddRedirectUriWithHttpInfo (string oauthAppId, string uri, string appId) @@ -740,11 +740,11 @@ public ApiResponse< RestApiResultOauthClientRedirectUri > AddRedirectUriWithHttp } /// - /// Create OAuth App redirect uri + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri + /// + /// /// /// Task of RestApiResultOauthClientRedirectUri public async System.Threading.Tasks.Task AddRedirectUriAsync (string oauthAppId, string uri, string appId) @@ -755,11 +755,11 @@ public async System.Threading.Tasks.Task Ad } /// - /// Create OAuth App redirect uri + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri + /// + /// /// /// Task of ApiResponse (RestApiResultOauthClientRedirectUri) public async System.Threading.Tasks.Task> AddRedirectUriAsyncWithHttpInfo (string oauthAppId, string uri, string appId) @@ -840,10 +840,10 @@ public async System.Threading.Tasks.Task - /// Create OAuth App + /// /// /// Thrown when fails to make API call - /// OAuth App + /// /// /// public void CreateOAuthApp (OAuthApp oAuthApp, string appId) @@ -852,10 +852,10 @@ public void CreateOAuthApp (OAuthApp oAuthApp, string appId) } /// - /// Create OAuth App + /// /// /// Thrown when fails to make API call - /// OAuth App + /// /// /// ApiResponse of Object(void) public ApiResponse CreateOAuthAppWithHttpInfo (OAuthApp oAuthApp, string appId) @@ -932,10 +932,10 @@ public ApiResponse CreateOAuthAppWithHttpInfo (OAuthApp oAuthApp, string } /// - /// Create OAuth App + /// /// /// Thrown when fails to make API call - /// OAuth App + /// /// /// Task of void public async System.Threading.Tasks.Task CreateOAuthAppAsync (OAuthApp oAuthApp, string appId) @@ -945,10 +945,10 @@ public async System.Threading.Tasks.Task CreateOAuthAppAsync (OAuthApp oAuthApp, } /// - /// Create OAuth App + /// /// /// Thrown when fails to make API call - /// OAuth App + /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> CreateOAuthAppAsyncWithHttpInfo (OAuthApp oAuthApp, string appId) @@ -1025,10 +1025,10 @@ public async System.Threading.Tasks.Task> CreateOAuthAppAsyn } /// - /// Delete OAuth App + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// public void DeleteOAuthApp (string oauthAppId, string appId) @@ -1037,10 +1037,10 @@ public void DeleteOAuthApp (string oauthAppId, string appId) } /// - /// Delete OAuth App + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// ApiResponse of Object(void) public ApiResponse DeleteOAuthAppWithHttpInfo (string oauthAppId, string appId) @@ -1105,10 +1105,10 @@ public ApiResponse DeleteOAuthAppWithHttpInfo (string oauthAppId, string } /// - /// Delete OAuth App + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of void public async System.Threading.Tasks.Task DeleteOAuthAppAsync (string oauthAppId, string appId) @@ -1118,10 +1118,10 @@ public async System.Threading.Tasks.Task DeleteOAuthAppAsync (string oauthAppId, } /// - /// Delete OAuth App + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> DeleteOAuthAppAsyncWithHttpInfo (string oauthAppId, string appId) @@ -1186,7 +1186,7 @@ public async System.Threading.Tasks.Task> DeleteOAuthAppAsyn } /// - /// Get all OAuth Apps + /// /// /// Thrown when fails to make API call /// @@ -1199,7 +1199,7 @@ public RestApiArrayResultOAuthApp GetOAuthApps (string appId, string oauthAppNam } /// - /// Get all OAuth Apps + /// /// /// Thrown when fails to make API call /// @@ -1264,7 +1264,7 @@ public ApiResponse< RestApiArrayResultOAuthApp > GetOAuthAppsWithHttpInfo (strin } /// - /// Get all OAuth Apps + /// /// /// Thrown when fails to make API call /// @@ -1278,7 +1278,7 @@ public async System.Threading.Tasks.Task GetOAuthApp } /// - /// Get all OAuth Apps + /// /// /// Thrown when fails to make API call /// @@ -1343,10 +1343,10 @@ public async System.Threading.Tasks.Task } /// - /// Get OAuth App by identifier + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// RestApiResultOAuthApp public RestApiResultOAuthApp GetOAuthClientByClientId (string oauthAppId, string appId) @@ -1356,10 +1356,10 @@ public RestApiResultOAuthApp GetOAuthClientByClientId (string oauthAppId, string } /// - /// Get OAuth App by identifier + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// ApiResponse of RestApiResultOAuthApp public ApiResponse< RestApiResultOAuthApp > GetOAuthClientByClientIdWithHttpInfo (string oauthAppId, string appId) @@ -1424,10 +1424,10 @@ public ApiResponse< RestApiResultOAuthApp > GetOAuthClientByClientIdWithHttpInfo } /// - /// Get OAuth App by identifier + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of RestApiResultOAuthApp public async System.Threading.Tasks.Task GetOAuthClientByClientIdAsync (string oauthAppId, string appId) @@ -1438,10 +1438,10 @@ public async System.Threading.Tasks.Task GetOAuthClientBy } /// - /// Get OAuth App by identifier + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of ApiResponse (RestApiResultOAuthApp) public async System.Threading.Tasks.Task> GetOAuthClientByClientIdAsyncWithHttpInfo (string oauthAppId, string appId) @@ -1506,10 +1506,10 @@ public async System.Threading.Tasks.Task> Get } /// - /// Get OAuth App secret key + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// RestApiStringResult public RestApiStringResult GetOAuthClientSecret (string oauthAppId, string appId) @@ -1519,10 +1519,10 @@ public RestApiStringResult GetOAuthClientSecret (string oauthAppId, string appId } /// - /// Get OAuth App secret key + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// ApiResponse of RestApiStringResult public ApiResponse< RestApiStringResult > GetOAuthClientSecretWithHttpInfo (string oauthAppId, string appId) @@ -1587,10 +1587,10 @@ public ApiResponse< RestApiStringResult > GetOAuthClientSecretWithHttpInfo (stri } /// - /// Get OAuth App secret key + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of RestApiStringResult public async System.Threading.Tasks.Task GetOAuthClientSecretAsync (string oauthAppId, string appId) @@ -1601,10 +1601,10 @@ public async System.Threading.Tasks.Task GetOAuthClientSecr } /// - /// Get OAuth App secret key + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of ApiResponse (RestApiStringResult) public async System.Threading.Tasks.Task> GetOAuthClientSecretAsyncWithHttpInfo (string oauthAppId, string appId) @@ -1669,10 +1669,10 @@ public async System.Threading.Tasks.Task> GetOA } /// - /// Get OAuth access token for App + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// RestApiStringResult public RestApiStringResult GetOauthAccessToken (string oauthAppId, string appId) @@ -1682,10 +1682,10 @@ public RestApiStringResult GetOauthAccessToken (string oauthAppId, string appId) } /// - /// Get OAuth access token for App + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// ApiResponse of RestApiStringResult public ApiResponse< RestApiStringResult > GetOauthAccessTokenWithHttpInfo (string oauthAppId, string appId) @@ -1750,10 +1750,10 @@ public ApiResponse< RestApiStringResult > GetOauthAccessTokenWithHttpInfo (strin } /// - /// Get OAuth access token for App + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of RestApiStringResult public async System.Threading.Tasks.Task GetOauthAccessTokenAsync (string oauthAppId, string appId) @@ -1764,10 +1764,10 @@ public async System.Threading.Tasks.Task GetOauthAccessToke } /// - /// Get OAuth access token for App + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of ApiResponse (RestApiStringResult) public async System.Threading.Tasks.Task> GetOauthAccessTokenAsyncWithHttpInfo (string oauthAppId, string appId) @@ -1832,10 +1832,10 @@ public async System.Threading.Tasks.Task> GetOa } /// - /// Get OAuth App redirect uris + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// RestApiArrayResultOauthClientRedirectUri public RestApiArrayResultOauthClientRedirectUri GetRedirectUris (string oauthAppId, string appId) @@ -1845,10 +1845,10 @@ public RestApiArrayResultOauthClientRedirectUri GetRedirectUris (string oauthApp } /// - /// Get OAuth App redirect uris + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// ApiResponse of RestApiArrayResultOauthClientRedirectUri public ApiResponse< RestApiArrayResultOauthClientRedirectUri > GetRedirectUrisWithHttpInfo (string oauthAppId, string appId) @@ -1913,10 +1913,10 @@ public ApiResponse< RestApiArrayResultOauthClientRedirectUri > GetRedirectUrisWi } /// - /// Get OAuth App redirect uris + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of RestApiArrayResultOauthClientRedirectUri public async System.Threading.Tasks.Task GetRedirectUrisAsync (string oauthAppId, string appId) @@ -1927,10 +1927,10 @@ public async System.Threading.Tasks.Task - /// Get OAuth App redirect uris + /// /// /// Thrown when fails to make API call - /// OAuth App identifier + /// /// /// Task of ApiResponse (RestApiArrayResultOauthClientRedirectUri) public async System.Threading.Tasks.Task> GetRedirectUrisAsyncWithHttpInfo (string oauthAppId, string appId) @@ -2146,11 +2146,11 @@ public async System.Threading.Tasks.Task> OAuthClientsGetApp } /// - /// Delete OAuth App redirect uri + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri identifier + /// + /// /// /// public void RemoveRedirectUri (string oauthAppId, int? uriId, string appId) @@ -2159,11 +2159,11 @@ public void RemoveRedirectUri (string oauthAppId, int? uriId, string appId) } /// - /// Delete OAuth App redirect uri + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri identifier + /// + /// /// /// ApiResponse of Object(void) public ApiResponse RemoveRedirectUriWithHttpInfo (string oauthAppId, int? uriId, string appId) @@ -2232,11 +2232,11 @@ public ApiResponse RemoveRedirectUriWithHttpInfo (string oauthAppId, int } /// - /// Delete OAuth App redirect uri + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri identifier + /// + /// /// /// Task of void public async System.Threading.Tasks.Task RemoveRedirectUriAsync (string oauthAppId, int? uriId, string appId) @@ -2246,11 +2246,11 @@ public async System.Threading.Tasks.Task RemoveRedirectUriAsync (string oauthApp } /// - /// Delete OAuth App redirect uri + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// Redirect uri identifier + /// + /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> RemoveRedirectUriAsyncWithHttpInfo (string oauthAppId, int? uriId, string appId) @@ -2319,11 +2319,11 @@ public async System.Threading.Tasks.Task> RemoveRedirectUriA } /// - /// Update OAuth App + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// OAuth App + /// + /// /// /// public void UpdateOAuthApp (string oauthAppId, OAuthApp oAuthApp, string appId) @@ -2332,11 +2332,11 @@ public void UpdateOAuthApp (string oauthAppId, OAuthApp oAuthApp, string appId) } /// - /// Update OAuth App + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// OAuth App + /// + /// /// /// ApiResponse of Object(void) public ApiResponse UpdateOAuthAppWithHttpInfo (string oauthAppId, OAuthApp oAuthApp, string appId) @@ -2417,11 +2417,11 @@ public ApiResponse UpdateOAuthAppWithHttpInfo (string oauthAppId, OAuthA } /// - /// Update OAuth App + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// OAuth App + /// + /// /// /// Task of void public async System.Threading.Tasks.Task UpdateOAuthAppAsync (string oauthAppId, OAuthApp oAuthApp, string appId) @@ -2431,11 +2431,11 @@ public async System.Threading.Tasks.Task UpdateOAuthAppAsync (string oauthAppId, } /// - /// Update OAuth App + /// /// /// Thrown when fails to make API call - /// OAuth App identifier - /// OAuth App + /// + /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateOAuthAppAsyncWithHttpInfo (string oauthAppId, OAuthApp oAuthApp, string appId) diff --git a/src/Flipdish/Api/OnboardingApi.cs b/src/Flipdish/Api/OnboardingApi.cs index 99bb7105..bd971d65 100644 --- a/src/Flipdish/Api/OnboardingApi.cs +++ b/src/Flipdish/Api/OnboardingApi.cs @@ -53,9 +53,31 @@ public interface IOnboardingApi : IApiAccessor /// /// 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); + Object OnboardingGetOnboardingItems (string appId, int? storeId, int? milestoneId = null); /// /// @@ -66,8 +88,34 @@ public interface IOnboardingApi : IApiAccessor /// 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 OnboardingGetOnboardingItemsWithHttpInfo (string appId, int? storeId); + ApiResponse OnboardingGetOnboardingItemsV2WithHttpInfo (string appId, int? storeId = null, int? milestoneId = null); /// /// /// @@ -99,6 +147,31 @@ public interface IOnboardingApi : IApiAccessor /// /// 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 + /// /// /// /// @@ -118,6 +191,33 @@ public interface IOnboardingApi : IApiAccessor /// /// 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 /// @@ -149,9 +249,31 @@ public interface IOnboardingApi : IApiAccessor /// /// 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); + System.Threading.Tasks.Task OnboardingGetOnboardingItemsAsync (string appId, int? storeId, int? milestoneId = null); /// /// @@ -162,8 +284,34 @@ public interface IOnboardingApi : IApiAccessor /// 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> OnboardingGetOnboardingItemsAsyncWithHttpInfo (string appId, int? storeId); + System.Threading.Tasks.Task> OnboardingGetOnboardingItemsV2AsyncWithHttpInfo (string appId, int? storeId = null, int? milestoneId = null); /// /// /// @@ -195,6 +343,31 @@ public interface IOnboardingApi : IApiAccessor /// /// 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 + /// /// /// /// @@ -214,6 +387,33 @@ public interface IOnboardingApi : IApiAccessor /// /// 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 } @@ -470,11 +670,10 @@ public async System.Threading.Tasks.Task> OnboardingGetOnboa /// /// Thrown when fails to make API call /// - /// /// Object - public Object OnboardingGetOnboardingItems (string appId, int? storeId) + public Object OnboardingGetOnboardingConfigs (string appId) { - ApiResponse localVarResponse = OnboardingGetOnboardingItemsWithHttpInfo(appId, storeId); + ApiResponse localVarResponse = OnboardingGetOnboardingConfigsWithHttpInfo(appId); return localVarResponse.Data; } @@ -483,18 +682,14 @@ public Object OnboardingGetOnboardingItems (string appId, int? storeId) /// /// Thrown when fails to make API call /// - /// /// ApiResponse of Object - public ApiResponse< Object > OnboardingGetOnboardingItemsWithHttpInfo (string appId, int? storeId) + 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->OnboardingGetOnboardingItems"); - // verify the required parameter 'storeId' is set - if (storeId == null) - throw new ApiException(400, "Missing required parameter 'storeId' when calling OnboardingApi->OnboardingGetOnboardingItems"); + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingGetOnboardingConfigs"); - var localVarPath = "./api/v1.0/clients/{appId}/onboarding/stores/{storeId}"; + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/configs"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -519,7 +714,6 @@ public ApiResponse< Object > OnboardingGetOnboardingItemsWithHttpInfo (string ap 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 @@ -537,7 +731,7 @@ public ApiResponse< Object > OnboardingGetOnboardingItemsWithHttpInfo (string ap if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("OnboardingGetOnboardingItems", localVarResponse); + Exception exception = ExceptionFactory("OnboardingGetOnboardingConfigs", localVarResponse); if (exception != null) throw exception; } @@ -551,11 +745,10 @@ public ApiResponse< Object > OnboardingGetOnboardingItemsWithHttpInfo (string ap /// /// Thrown when fails to make API call /// - /// /// Task of Object - public async System.Threading.Tasks.Task OnboardingGetOnboardingItemsAsync (string appId, int? storeId) + public async System.Threading.Tasks.Task OnboardingGetOnboardingConfigsAsync (string appId) { - ApiResponse localVarResponse = await OnboardingGetOnboardingItemsAsyncWithHttpInfo(appId, storeId); + ApiResponse localVarResponse = await OnboardingGetOnboardingConfigsAsyncWithHttpInfo(appId); return localVarResponse.Data; } @@ -565,18 +758,14 @@ public async System.Threading.Tasks.Task OnboardingGetOnboardingItemsAsy /// /// Thrown when fails to make API call /// - /// /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> OnboardingGetOnboardingItemsAsyncWithHttpInfo (string appId, int? storeId) + 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->OnboardingGetOnboardingItems"); - // verify the required parameter 'storeId' is set - if (storeId == null) - throw new ApiException(400, "Missing required parameter 'storeId' when calling OnboardingApi->OnboardingGetOnboardingItems"); + throw new ApiException(400, "Missing required parameter 'appId' when calling OnboardingApi->OnboardingGetOnboardingConfigs"); - var localVarPath = "./api/v1.0/clients/{appId}/onboarding/stores/{storeId}"; + var localVarPath = "./api/v1.0/clients/{appId}/onboarding/configs"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -601,7 +790,6 @@ public async System.Threading.Tasks.Task> OnboardingGetOnboa 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 @@ -619,7 +807,7 @@ public async System.Threading.Tasks.Task> OnboardingGetOnboa if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("OnboardingGetOnboardingItems", localVarResponse); + Exception exception = ExceptionFactory("OnboardingGetOnboardingConfigs", localVarResponse); if (exception != null) throw exception; } @@ -633,11 +821,12 @@ public async System.Threading.Tasks.Task> OnboardingGetOnboa /// /// Thrown when fails to make API call /// - /// + /// + /// (optional) /// Object - public Object OnboardingUpdateOnboardingConfig (string appId, OnboardingConfigUpdate configUpdate) + public Object OnboardingGetOnboardingItems (string appId, int? storeId, int? milestoneId = null) { - ApiResponse localVarResponse = OnboardingUpdateOnboardingConfigWithHttpInfo(appId, configUpdate); + ApiResponse localVarResponse = OnboardingGetOnboardingItemsWithHttpInfo(appId, storeId, milestoneId); return localVarResponse.Data; } @@ -646,18 +835,19 @@ public Object OnboardingUpdateOnboardingConfig (string appId, OnboardingConfigUp /// /// Thrown when fails to make API call /// - /// + /// + /// (optional) /// ApiResponse of Object - public ApiResponse< Object > OnboardingUpdateOnboardingConfigWithHttpInfo (string appId, OnboardingConfigUpdate configUpdate) + 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->OnboardingUpdateOnboardingConfig"); - // verify the required parameter 'configUpdate' is set - if (configUpdate == null) - throw new ApiException(400, "Missing required parameter 'configUpdate' when calling OnboardingApi->OnboardingUpdateOnboardingConfig"); + 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/config"; + 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); @@ -667,11 +857,6 @@ public ApiResponse< Object > OnboardingUpdateOnboardingConfigWithHttpInfo (strin // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -687,14 +872,8 @@ public ApiResponse< Object > OnboardingUpdateOnboardingConfigWithHttpInfo (strin 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 - } + 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 @@ -705,14 +884,14 @@ public ApiResponse< Object > OnboardingUpdateOnboardingConfigWithHttpInfo (strin // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("OnboardingUpdateOnboardingConfig", localVarResponse); + Exception exception = ExceptionFactory("OnboardingGetOnboardingItems", localVarResponse); if (exception != null) throw exception; } @@ -726,11 +905,12 @@ public ApiResponse< Object > OnboardingUpdateOnboardingConfigWithHttpInfo (strin /// /// Thrown when fails to make API call /// - /// + /// + /// (optional) /// Task of Object - public async System.Threading.Tasks.Task OnboardingUpdateOnboardingConfigAsync (string appId, OnboardingConfigUpdate configUpdate) + public async System.Threading.Tasks.Task OnboardingGetOnboardingItemsAsync (string appId, int? storeId, int? milestoneId = null) { - ApiResponse localVarResponse = await OnboardingUpdateOnboardingConfigAsyncWithHttpInfo(appId, configUpdate); + ApiResponse localVarResponse = await OnboardingGetOnboardingItemsAsyncWithHttpInfo(appId, storeId, milestoneId); return localVarResponse.Data; } @@ -740,18 +920,19 @@ public async System.Threading.Tasks.Task OnboardingUpdateOnboardingConfi /// /// Thrown when fails to make API call /// - /// + /// + /// (optional) /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> OnboardingUpdateOnboardingConfigAsyncWithHttpInfo (string appId, OnboardingConfigUpdate configUpdate) + 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->OnboardingUpdateOnboardingConfig"); - // verify the required parameter 'configUpdate' is set - if (configUpdate == null) - throw new ApiException(400, "Missing required parameter 'configUpdate' when calling OnboardingApi->OnboardingUpdateOnboardingConfig"); + 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/config"; + 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); @@ -761,11 +942,6 @@ public async System.Threading.Tasks.Task> OnboardingUpdateOn // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -781,14 +957,8 @@ public async System.Threading.Tasks.Task> OnboardingUpdateOn 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 - } + 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 @@ -799,14 +969,14 @@ public async System.Threading.Tasks.Task> OnboardingUpdateOn // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("OnboardingUpdateOnboardingConfig", localVarResponse); + Exception exception = ExceptionFactory("OnboardingGetOnboardingItems", localVarResponse); if (exception != null) throw exception; } @@ -820,11 +990,560 @@ public async System.Threading.Tasks.Task> OnboardingUpdateOn /// /// Thrown when fails to make API call /// - /// - /// - /// + /// (optional) + /// (optional) /// Object - public Object OnboardingUpdateOnboardingItem (string appId, int? storeId, int? onboardingItemId, OnboardingItemUpdate itemUpdate) + 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; @@ -1026,5 +1745,210 @@ public async System.Threading.Tasks.Task> OnboardingUpdateOn (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 index 173ea1fa..339790ba 100644 --- a/src/Flipdish/Api/OrderBatchesApi.cs +++ b/src/Flipdish/Api/OrderBatchesApi.cs @@ -25,111 +25,107 @@ public interface IOrderBatchesApi : IApiAccessor { #region Synchronous Operations /// - /// Returns order batches + /// /// /// - /// Entries are sorted by date, from the most recent. At most 100 entries are returned. + /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Start date for retrieving the entries (optional) - /// End date for retrieving the entries (optional) - /// RestApiArrayResultOrderBatchItem - RestApiArrayResultOrderBatchItem GetAllOrderBatches (string appId, int? storeId, DateTime? createdFrom = null, DateTime? createdTo = null); + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiArrayResultOrderBatch + RestApiArrayResultOrderBatch GetAllOrderBatches (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null); /// - /// Returns order batches + /// /// /// - /// Entries are sorted by date, from the most recent. At most 100 entries are returned. + /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Start date for retrieving the entries (optional) - /// End date for retrieving the entries (optional) - /// ApiResponse of RestApiArrayResultOrderBatchItem - ApiResponse GetAllOrderBatchesWithHttpInfo (string appId, int? storeId, DateTime? createdFrom = null, DateTime? createdTo = null); + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiArrayResultOrderBatch + ApiResponse GetAllOrderBatchesWithHttpInfo (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null); /// - /// Returns the order batch details + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Order Batch Id + /// + /// /// RestApiResultOrderBatch - RestApiResultOrderBatch GetOrderBatch (string appId, int? storeId, int? batchId); + RestApiResultOrderBatch GetOrderBatch (string appId, int? orderBatchId); /// - /// Returns the order batch details + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Order Batch Id + /// + /// /// ApiResponse of RestApiResultOrderBatch - ApiResponse GetOrderBatchWithHttpInfo (string appId, int? storeId, int? batchId); + ApiResponse GetOrderBatchWithHttpInfo (string appId, int? orderBatchId); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Returns order batches + /// /// /// - /// Entries are sorted by date, from the most recent. At most 100 entries are returned. + /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Start date for retrieving the entries (optional) - /// End date for retrieving the entries (optional) - /// Task of RestApiArrayResultOrderBatchItem - System.Threading.Tasks.Task GetAllOrderBatchesAsync (string appId, int? storeId, DateTime? createdFrom = null, DateTime? createdTo = null); + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiArrayResultOrderBatch + System.Threading.Tasks.Task GetAllOrderBatchesAsync (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null); /// - /// Returns order batches + /// /// /// - /// Entries are sorted by date, from the most recent. At most 100 entries are returned. + /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Start date for retrieving the entries (optional) - /// End date for retrieving the entries (optional) - /// Task of ApiResponse (RestApiArrayResultOrderBatchItem) - System.Threading.Tasks.Task> GetAllOrderBatchesAsyncWithHttpInfo (string appId, int? storeId, DateTime? createdFrom = null, DateTime? createdTo = null); + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiArrayResultOrderBatch) + System.Threading.Tasks.Task> GetAllOrderBatchesAsyncWithHttpInfo (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null); /// - /// Returns the order batch details + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Order Batch Id + /// + /// /// Task of RestApiResultOrderBatch - System.Threading.Tasks.Task GetOrderBatchAsync (string appId, int? storeId, int? batchId); + System.Threading.Tasks.Task GetOrderBatchAsync (string appId, int? orderBatchId); /// - /// Returns the order batch details + /// /// /// /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Order Batch Id + /// + /// /// Task of ApiResponse (RestApiResultOrderBatch) - System.Threading.Tasks.Task> GetOrderBatchAsyncWithHttpInfo (string appId, int? storeId, int? batchId); + System.Threading.Tasks.Task> GetOrderBatchAsyncWithHttpInfo (string appId, int? orderBatchId); #endregion Asynchronous Operations } @@ -231,39 +227,36 @@ public void AddDefaultHeader(string key, string value) } /// - /// Returns order batches Entries are sorted by date, from the most recent. At most 100 entries are returned. + /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Start date for retrieving the entries (optional) - /// End date for retrieving the entries (optional) - /// RestApiArrayResultOrderBatchItem - public RestApiArrayResultOrderBatchItem GetAllOrderBatches (string appId, int? storeId, DateTime? createdFrom = null, DateTime? createdTo = null) + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiArrayResultOrderBatch + public RestApiArrayResultOrderBatch GetAllOrderBatches (string appId, List storeIds = null, DateTime? createdFrom = null, DateTime? createdTo = null) { - ApiResponse localVarResponse = GetAllOrderBatchesWithHttpInfo(appId, storeId, createdFrom, createdTo); + ApiResponse localVarResponse = GetAllOrderBatchesWithHttpInfo(appId, storeIds, createdFrom, createdTo); return localVarResponse.Data; } /// - /// Returns order batches Entries are sorted by date, from the most recent. At most 100 entries are returned. + /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Start date for retrieving the entries (optional) - /// End date for retrieving the entries (optional) - /// ApiResponse of RestApiArrayResultOrderBatchItem - public ApiResponse< RestApiArrayResultOrderBatchItem > GetAllOrderBatchesWithHttpInfo (string appId, int? storeId, DateTime? createdFrom = null, DateTime? createdTo = null) + /// + /// (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"); - // verify the required parameter 'storeId' is set - if (storeId == null) - throw new ApiException(400, "Missing required parameter 'storeId' when calling OrderBatchesApi->GetAllOrderBatches"); - var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/order-batches"; + var localVarPath = "./api/v1.0/{appId}/order-batches"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -288,7 +281,7 @@ public ApiResponse< RestApiArrayResultOrderBatchItem > GetAllOrderBatchesWithHtt 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 (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 @@ -312,46 +305,43 @@ public ApiResponse< RestApiArrayResultOrderBatchItem > GetAllOrderBatchesWithHtt if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultOrderBatchItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultOrderBatchItem))); + (RestApiArrayResultOrderBatch) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultOrderBatch))); } /// - /// Returns order batches Entries are sorted by date, from the most recent. At most 100 entries are returned. + /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Start date for retrieving the entries (optional) - /// End date for retrieving the entries (optional) - /// Task of RestApiArrayResultOrderBatchItem - public async System.Threading.Tasks.Task GetAllOrderBatchesAsync (string appId, int? storeId, DateTime? createdFrom = null, DateTime? createdTo = null) + /// + /// (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, storeId, createdFrom, createdTo); + ApiResponse localVarResponse = await GetAllOrderBatchesAsyncWithHttpInfo(appId, storeIds, createdFrom, createdTo); return localVarResponse.Data; } /// - /// Returns order batches Entries are sorted by date, from the most recent. At most 100 entries are returned. + /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Start date for retrieving the entries (optional) - /// End date for retrieving the entries (optional) - /// Task of ApiResponse (RestApiArrayResultOrderBatchItem) - public async System.Threading.Tasks.Task> GetAllOrderBatchesAsyncWithHttpInfo (string appId, int? storeId, DateTime? createdFrom = null, DateTime? createdTo = null) + /// + /// (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"); - // verify the required parameter 'storeId' is set - if (storeId == null) - throw new ApiException(400, "Missing required parameter 'storeId' when calling OrderBatchesApi->GetAllOrderBatches"); - var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/order-batches"; + var localVarPath = "./api/v1.0/{appId}/order-batches"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -376,7 +366,7 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultOrderBatchItem) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultOrderBatchItem))); + (RestApiArrayResultOrderBatch) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultOrderBatch))); } /// - /// Returns the order batch details + /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Order Batch Id + /// + /// /// RestApiResultOrderBatch - public RestApiResultOrderBatch GetOrderBatch (string appId, int? storeId, int? batchId) + public RestApiResultOrderBatch GetOrderBatch (string appId, int? orderBatchId) { - ApiResponse localVarResponse = GetOrderBatchWithHttpInfo(appId, storeId, batchId); + ApiResponse localVarResponse = GetOrderBatchWithHttpInfo(appId, orderBatchId); return localVarResponse.Data; } /// - /// Returns the order batch details + /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Order Batch Id + /// + /// /// ApiResponse of RestApiResultOrderBatch - public ApiResponse< RestApiResultOrderBatch > GetOrderBatchWithHttpInfo (string appId, int? storeId, int? batchId) + 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 'storeId' is set - if (storeId == null) - throw new ApiException(400, "Missing required parameter 'storeId' when calling OrderBatchesApi->GetOrderBatch"); - // verify the required parameter 'batchId' is set - if (batchId == null) - throw new ApiException(400, "Missing required parameter 'batchId' when calling OrderBatchesApi->GetOrderBatch"); - - var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/order-batches/{batchId}"; + // 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); @@ -464,8 +449,7 @@ public ApiResponse< RestApiResultOrderBatch > GetOrderBatchWithHttpInfo (string 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 (batchId != null) localVarPathParams.Add("batchId", this.Configuration.ApiClient.ParameterToString(batchId)); // path parameter + if (orderBatchId != null) localVarPathParams.Add("orderBatchId", this.Configuration.ApiClient.ParameterToString(orderBatchId)); // path parameter // authentication (oauth2) required // oauth required @@ -493,41 +477,36 @@ public ApiResponse< RestApiResultOrderBatch > GetOrderBatchWithHttpInfo (string } /// - /// Returns the order batch details + /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Order Batch Id + /// + /// /// Task of RestApiResultOrderBatch - public async System.Threading.Tasks.Task GetOrderBatchAsync (string appId, int? storeId, int? batchId) + public async System.Threading.Tasks.Task GetOrderBatchAsync (string appId, int? orderBatchId) { - ApiResponse localVarResponse = await GetOrderBatchAsyncWithHttpInfo(appId, storeId, batchId); + ApiResponse localVarResponse = await GetOrderBatchAsyncWithHttpInfo(appId, orderBatchId); return localVarResponse.Data; } /// - /// Returns the order batch details + /// /// /// Thrown when fails to make API call - /// App Id - /// Store Id - /// Order Batch Id + /// + /// /// Task of ApiResponse (RestApiResultOrderBatch) - public async System.Threading.Tasks.Task> GetOrderBatchAsyncWithHttpInfo (string appId, int? storeId, int? batchId) + 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 'storeId' is set - if (storeId == null) - throw new ApiException(400, "Missing required parameter 'storeId' when calling OrderBatchesApi->GetOrderBatch"); - // verify the required parameter 'batchId' is set - if (batchId == null) - throw new ApiException(400, "Missing required parameter 'batchId' when calling OrderBatchesApi->GetOrderBatch"); - - var localVarPath = "./api/v1.0/{appId}/stores/{storeId}/order-batches/{batchId}"; + // 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); @@ -552,8 +531,7 @@ public async System.Threading.Tasks.Task> G 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 (batchId != null) localVarPathParams.Add("batchId", this.Configuration.ApiClient.ParameterToString(batchId)); // path parameter + if (orderBatchId != null) localVarPathParams.Add("orderBatchId", this.Configuration.ApiClient.ParameterToString(orderBatchId)); // path parameter // authentication (oauth2) required // oauth required diff --git a/src/Flipdish/Api/OrderBatchingConfigurationApi.cs b/src/Flipdish/Api/OrderBatchingConfigurationApi.cs index f8fb12ed..063dbd54 100644 --- a/src/Flipdish/Api/OrderBatchingConfigurationApi.cs +++ b/src/Flipdish/Api/OrderBatchingConfigurationApi.cs @@ -25,93 +25,93 @@ public interface IOrderBatchingConfigurationApi : IApiAccessor { #region Synchronous Operations /// - /// Returns order batching configuration for a specific store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id + /// /// RestApiResultOrderBatchingConfiguration RestApiResultOrderBatchingConfiguration Get (int? storeId); /// - /// Returns order batching configuration for a specific store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id + /// /// ApiResponse of RestApiResultOrderBatchingConfiguration ApiResponse GetWithHttpInfo (int? storeId); /// - /// Sets order batching configuration for a specific store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id - /// SetOrderBatchingConfiguration + /// + /// /// void Post (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration); /// - /// Sets order batching configuration for a specific store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id - /// SetOrderBatchingConfiguration + /// + /// /// ApiResponse of Object(void) ApiResponse PostWithHttpInfo (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Returns order batching configuration for a specific store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id + /// /// Task of RestApiResultOrderBatchingConfiguration System.Threading.Tasks.Task GetAsync (int? storeId); /// - /// Returns order batching configuration for a specific store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id + /// /// Task of ApiResponse (RestApiResultOrderBatchingConfiguration) System.Threading.Tasks.Task> GetAsyncWithHttpInfo (int? storeId); /// - /// Sets order batching configuration for a specific store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id - /// SetOrderBatchingConfiguration + /// + /// /// Task of void System.Threading.Tasks.Task PostAsync (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration); /// - /// Sets order batching configuration for a specific store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id - /// SetOrderBatchingConfiguration + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> PostAsyncWithHttpInfo (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration); #endregion Asynchronous Operations @@ -215,10 +215,10 @@ public void AddDefaultHeader(string key, string value) } /// - /// Returns order batching configuration for a specific store + /// /// /// Thrown when fails to make API call - /// Store Id + /// /// RestApiResultOrderBatchingConfiguration public RestApiResultOrderBatchingConfiguration Get (int? storeId) { @@ -227,10 +227,10 @@ public RestApiResultOrderBatchingConfiguration Get (int? storeId) } /// - /// Returns order batching configuration for a specific store + /// /// /// Thrown when fails to make API call - /// Store Id + /// /// ApiResponse of RestApiResultOrderBatchingConfiguration public ApiResponse< RestApiResultOrderBatchingConfiguration > GetWithHttpInfo (int? storeId) { @@ -290,10 +290,10 @@ public ApiResponse< RestApiResultOrderBatchingConfiguration > GetWithHttpInfo (i } /// - /// Returns order batching configuration for a specific store + /// /// /// Thrown when fails to make API call - /// Store Id + /// /// Task of RestApiResultOrderBatchingConfiguration public async System.Threading.Tasks.Task GetAsync (int? storeId) { @@ -303,10 +303,10 @@ public async System.Threading.Tasks.Task - /// Returns order batching configuration for a specific store + /// /// /// Thrown when fails to make API call - /// Store Id + /// /// Task of ApiResponse (RestApiResultOrderBatchingConfiguration) public async System.Threading.Tasks.Task> GetAsyncWithHttpInfo (int? storeId) { @@ -366,11 +366,11 @@ public async System.Threading.Tasks.Task - /// Sets order batching configuration for a specific store + /// /// /// Thrown when fails to make API call - /// Store Id - /// SetOrderBatchingConfiguration + /// + /// /// public void Post (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration) { @@ -378,11 +378,11 @@ public void Post (int? storeId, SetOrderBatchingConfiguration setOrderBatchingCo } /// - /// Sets order batching configuration for a specific store + /// /// /// Thrown when fails to make API call - /// Store Id - /// SetOrderBatchingConfiguration + /// + /// /// ApiResponse of Object(void) public ApiResponse PostWithHttpInfo (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration) { @@ -458,11 +458,11 @@ public ApiResponse PostWithHttpInfo (int? storeId, SetOrderBatchingConfi } /// - /// Sets order batching configuration for a specific store + /// /// /// Thrown when fails to make API call - /// Store Id - /// SetOrderBatchingConfiguration + /// + /// /// Task of void public async System.Threading.Tasks.Task PostAsync (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration) { @@ -471,11 +471,11 @@ public async System.Threading.Tasks.Task PostAsync (int? storeId, SetOrderBatchi } /// - /// Sets order batching configuration for a specific store + /// /// /// Thrown when fails to make API call - /// Store Id - /// SetOrderBatchingConfiguration + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> PostAsyncWithHttpInfo (int? storeId, SetOrderBatchingConfiguration setOrderBatchingConfiguration) { diff --git a/src/Flipdish/Api/OrdersApi.cs b/src/Flipdish/Api/OrdersApi.cs index f8244c6a..48a525af 100644 --- a/src/Flipdish/Api/OrdersApi.cs +++ b/src/Flipdish/Api/OrdersApi.cs @@ -25,623 +25,771 @@ public interface IOrdersApi : IApiAccessor { #region Synchronous Operations /// - /// Accept order + /// /// /// - /// To accept an order, you create an `accept` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier - /// Order accept parameters (eg: EstimatedMinutesForDelivery) + /// + /// /// void AcceptOrder (int? id, Accept acceptObject); /// - /// Accept order + /// /// /// - /// To accept an order, you create an `accept` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier - /// Order accept parameters (eg: EstimatedMinutesForDelivery) + /// + /// /// ApiResponse of Object(void) ApiResponse AcceptOrderWithHttpInfo (int? id, Accept acceptObject); /// - /// Dispatch order + /// /// /// - /// To dispatch an order send a POST request with `Id` path parameter which identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// void DispatchOrder (int? id); /// - /// Dispatch order + /// /// /// - /// To dispatch an order send a POST request with `Id` path parameter which identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// ApiResponse of Object(void) ApiResponse DispatchOrderWithHttpInfo (int? id); /// - /// Get order delivery information + /// /// /// - /// Returns an orders delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// RestApiResultOrderDeliveryInformation RestApiResultOrderDeliveryInformation GetDeliveryInformation (int? orderId); /// - /// Get order delivery information + /// /// /// - /// Returns an orders delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// ApiResponse of RestApiResultOrderDeliveryInformation ApiResponse GetDeliveryInformationWithHttpInfo (int? orderId); /// - /// Get order fulfillment state + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment state. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// RestApiResultOrderFulfillmentStatus RestApiResultOrderFulfillmentStatus GetFulfillmentState (int? orderId); /// - /// Get order fulfillment state + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment state. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// ApiResponse of RestApiResultOrderFulfillmentStatus ApiResponse GetFulfillmentStateWithHttpInfo (int? orderId); /// - /// Get order fulfillment state with actionable details like default next state + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment status and details about possible states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// RestApiResultOrderFulfillmentStatusWithConfigurationActions RestApiResultOrderFulfillmentStatusWithConfigurationActions GetFulfillmentStatusWithDetailsAndActions (int? orderId); /// - /// Get order fulfillment state with actionable details like default next state + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment status and details about possible states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// ApiResponse of RestApiResultOrderFulfillmentStatusWithConfigurationActions ApiResponse GetFulfillmentStatusWithDetailsAndActionsWithHttpInfo (int? orderId); /// - /// Get order by ID + /// /// /// /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// RestApiResultOrder RestApiResultOrder GetOrderById (int? id); /// - /// Get order by ID + /// /// /// /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// ApiResponse of RestApiResultOrder ApiResponse GetOrderByIdWithHttpInfo (int? id); /// - /// Get orders by filter + /// /// /// /// /// /// Thrown when fails to make API call - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Order has been placed after this parameter value (optional) - /// Order has been placed before this parameter value (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// (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); /// - /// Get orders by filter + /// /// /// /// /// /// Thrown when fails to make API call - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Order has been placed after this parameter value (optional) - /// Order has been placed before this parameter value (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// (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); /// - /// [PRIVATE API] Get summary of orders by filter + /// + /// + /// + /// + /// + /// 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 - /// App Name Id - /// Query string (optional) - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// + /// (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); + 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); /// - /// [PRIVATE API] Get summary of orders by filter + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Query string (optional) - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// + /// (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); + 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); /// - /// Refund order + /// /// /// - /// To refund an order, you create a `refund` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// void RefundOrder (int? id, Refund refundObject); /// - /// Refund order + /// /// /// - /// To refund an order, you create a `refund` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// ApiResponse of Object(void) ApiResponse RefundOrderWithHttpInfo (int? id, Refund refundObject); /// - /// Reject order + /// /// /// - /// To reject an order, you create a `reject` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// void RejectOrder (int? id, Reject rejectObject); /// - /// Reject order + /// /// /// - /// To reject an order, you create a `reject` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// ApiResponse of Object(void) ApiResponse RejectOrderWithHttpInfo (int? id, Reject rejectObject); /// - /// Get fulfillment status for a list of orders + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Returns fulfillment status for list of orders. + /// /// /// Thrown when fails to make API call - /// App Id - /// Flipdish Order Id list, comma separated + /// + /// /// RestApiArrayResultOrderFulfillmentStatus RestApiArrayResultOrderFulfillmentStatus SearchFulfillmentStatuses (string appId, string orderIds); /// - /// Get fulfillment status for a list of orders + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Returns fulfillment status for list of orders. + /// /// /// Thrown when fails to make API call - /// App Id - /// Flipdish Order Id list, comma separated + /// + /// /// ApiResponse of RestApiArrayResultOrderFulfillmentStatus ApiResponse SearchFulfillmentStatusesWithHttpInfo (string appId, string orderIds); /// - /// Add/update delivery-related information to an order + /// /// /// - /// Returns an order's delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Delivery Information + /// + /// /// void UpdateDeliveryInformation (int? orderId, OrderDeliveryInformationBase deliveryInformation); /// - /// Add/update delivery-related information to an order + /// /// /// - /// Returns an order's delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Delivery Information + /// + /// /// ApiResponse of Object(void) ApiResponse UpdateDeliveryInformationWithHttpInfo (int? orderId, OrderDeliveryInformationBase deliveryInformation); /// - /// Update fulfillment status information to an order + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Updates an order's fulfillment states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Fulfillment Status + /// + /// /// void UpdateFulfillmentState (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest); /// - /// Update fulfillment status information to an order + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Updates an order's fulfillment states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Fulfillment Status + /// + /// /// ApiResponse of Object(void) ApiResponse UpdateFulfillmentStateWithHttpInfo (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Accept order + /// /// /// - /// To accept an order, you create an `accept` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier - /// Order accept parameters (eg: EstimatedMinutesForDelivery) + /// + /// /// Task of void System.Threading.Tasks.Task AcceptOrderAsync (int? id, Accept acceptObject); /// - /// Accept order + /// /// /// - /// To accept an order, you create an `accept` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier - /// Order accept parameters (eg: EstimatedMinutesForDelivery) + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> AcceptOrderAsyncWithHttpInfo (int? id, Accept acceptObject); /// - /// Dispatch order + /// /// /// - /// To dispatch an order send a POST request with `Id` path parameter which identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// Task of void System.Threading.Tasks.Task DispatchOrderAsync (int? id); /// - /// Dispatch order + /// /// /// - /// To dispatch an order send a POST request with `Id` path parameter which identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// Task of ApiResponse System.Threading.Tasks.Task> DispatchOrderAsyncWithHttpInfo (int? id); /// - /// Get order delivery information + /// /// /// - /// Returns an orders delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// Task of RestApiResultOrderDeliveryInformation System.Threading.Tasks.Task GetDeliveryInformationAsync (int? orderId); /// - /// Get order delivery information + /// /// /// - /// Returns an orders delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// Task of ApiResponse (RestApiResultOrderDeliveryInformation) System.Threading.Tasks.Task> GetDeliveryInformationAsyncWithHttpInfo (int? orderId); /// - /// Get order fulfillment state + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment state. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// Task of RestApiResultOrderFulfillmentStatus System.Threading.Tasks.Task GetFulfillmentStateAsync (int? orderId); /// - /// Get order fulfillment state + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment state. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// Task of ApiResponse (RestApiResultOrderFulfillmentStatus) System.Threading.Tasks.Task> GetFulfillmentStateAsyncWithHttpInfo (int? orderId); /// - /// Get order fulfillment state with actionable details like default next state + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment status and details about possible states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// Task of RestApiResultOrderFulfillmentStatusWithConfigurationActions System.Threading.Tasks.Task GetFulfillmentStatusWithDetailsAndActionsAsync (int? orderId); /// - /// Get order fulfillment state with actionable details like default next state + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment status and details about possible states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// Task of ApiResponse (RestApiResultOrderFulfillmentStatusWithConfigurationActions) System.Threading.Tasks.Task> GetFulfillmentStatusWithDetailsAndActionsAsyncWithHttpInfo (int? orderId); /// - /// Get order by ID + /// /// /// /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// Task of RestApiResultOrder System.Threading.Tasks.Task GetOrderByIdAsync (int? id); /// - /// Get order by ID + /// /// /// /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// Task of ApiResponse (RestApiResultOrder) System.Threading.Tasks.Task> GetOrderByIdAsyncWithHttpInfo (int? id); /// - /// Get orders by filter + /// /// /// /// /// /// Thrown when fails to make API call - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Order has been placed after this parameter value (optional) - /// Order has been placed before this parameter value (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// (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); /// - /// Get orders by filter + /// /// /// /// /// /// Thrown when fails to make API call - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Order has been placed after this parameter value (optional) - /// Order has been placed before this parameter value (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// (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); /// - /// [PRIVATE API] Get summary of orders by filter + /// + /// + /// + /// + /// + /// 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 - /// App Name Id - /// Query string (optional) - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// + /// (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); + 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); /// - /// [PRIVATE API] Get summary of orders by filter + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Query string (optional) - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// + /// (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); + 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); /// - /// Refund order + /// /// /// - /// To refund an order, you create a `refund` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// Task of void System.Threading.Tasks.Task RefundOrderAsync (int? id, Refund refundObject); /// - /// Refund order + /// /// /// - /// To refund an order, you create a `refund` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// Task of ApiResponse System.Threading.Tasks.Task> RefundOrderAsyncWithHttpInfo (int? id, Refund refundObject); /// - /// Reject order + /// /// /// - /// To reject an order, you create a `reject` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// Task of void System.Threading.Tasks.Task RejectOrderAsync (int? id, Reject rejectObject); /// - /// Reject order + /// /// /// - /// To reject an order, you create a `reject` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// Task of ApiResponse System.Threading.Tasks.Task> RejectOrderAsyncWithHttpInfo (int? id, Reject rejectObject); /// - /// Get fulfillment status for a list of orders + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Returns fulfillment status for list of orders. + /// /// /// Thrown when fails to make API call - /// App Id - /// Flipdish Order Id list, comma separated + /// + /// /// Task of RestApiArrayResultOrderFulfillmentStatus System.Threading.Tasks.Task SearchFulfillmentStatusesAsync (string appId, string orderIds); /// - /// Get fulfillment status for a list of orders + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Returns fulfillment status for list of orders. + /// /// /// Thrown when fails to make API call - /// App Id - /// Flipdish Order Id list, comma separated + /// + /// /// Task of ApiResponse (RestApiArrayResultOrderFulfillmentStatus) System.Threading.Tasks.Task> SearchFulfillmentStatusesAsyncWithHttpInfo (string appId, string orderIds); /// - /// Add/update delivery-related information to an order + /// /// /// - /// Returns an order's delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Delivery Information + /// + /// /// Task of void System.Threading.Tasks.Task UpdateDeliveryInformationAsync (int? orderId, OrderDeliveryInformationBase deliveryInformation); /// - /// Add/update delivery-related information to an order + /// /// /// - /// Returns an order's delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Delivery Information + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> UpdateDeliveryInformationAsyncWithHttpInfo (int? orderId, OrderDeliveryInformationBase deliveryInformation); /// - /// Update fulfillment status information to an order + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Updates an order's fulfillment states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Fulfillment Status + /// + /// /// Task of void System.Threading.Tasks.Task UpdateFulfillmentStateAsync (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest); /// - /// Update fulfillment status information to an order + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] Updates an order's fulfillment states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Fulfillment Status + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> UpdateFulfillmentStateAsyncWithHttpInfo (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest); #endregion Asynchronous Operations @@ -745,11 +893,11 @@ public void AddDefaultHeader(string key, string value) } /// - /// Accept order To accept an order, you create an `accept` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier - /// Order accept parameters (eg: EstimatedMinutesForDelivery) + /// + /// /// public void AcceptOrder (int? id, Accept acceptObject) { @@ -757,11 +905,11 @@ public void AcceptOrder (int? id, Accept acceptObject) } /// - /// Accept order To accept an order, you create an `accept` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier - /// Order accept parameters (eg: EstimatedMinutesForDelivery) + /// + /// /// ApiResponse of Object(void) public ApiResponse AcceptOrderWithHttpInfo (int? id, Accept acceptObject) { @@ -837,11 +985,11 @@ public ApiResponse AcceptOrderWithHttpInfo (int? id, Accept acceptObject } /// - /// Accept order To accept an order, you create an `accept` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier - /// Order accept parameters (eg: EstimatedMinutesForDelivery) + /// + /// /// Task of void public async System.Threading.Tasks.Task AcceptOrderAsync (int? id, Accept acceptObject) { @@ -850,11 +998,11 @@ public async System.Threading.Tasks.Task AcceptOrderAsync (int? id, Accept accep } /// - /// Accept order To accept an order, you create an `accept` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier - /// Order accept parameters (eg: EstimatedMinutesForDelivery) + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> AcceptOrderAsyncWithHttpInfo (int? id, Accept acceptObject) { @@ -930,10 +1078,10 @@ public async System.Threading.Tasks.Task> AcceptOrderAsyncWi } /// - /// Dispatch order To dispatch an order send a POST request with `Id` path parameter which identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// public void DispatchOrder (int? id) { @@ -941,10 +1089,10 @@ public void DispatchOrder (int? id) } /// - /// Dispatch order To dispatch an order send a POST request with `Id` path parameter which identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// ApiResponse of Object(void) public ApiResponse DispatchOrderWithHttpInfo (int? id) { @@ -1004,10 +1152,10 @@ public ApiResponse DispatchOrderWithHttpInfo (int? id) } /// - /// Dispatch order To dispatch an order send a POST request with `Id` path parameter which identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// Task of void public async System.Threading.Tasks.Task DispatchOrderAsync (int? id) { @@ -1016,10 +1164,10 @@ public async System.Threading.Tasks.Task DispatchOrderAsync (int? id) } /// - /// Dispatch order To dispatch an order send a POST request with `Id` path parameter which identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> DispatchOrderAsyncWithHttpInfo (int? id) { @@ -1079,10 +1227,10 @@ public async System.Threading.Tasks.Task> DispatchOrderAsync } /// - /// Get order delivery information Returns an orders delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// RestApiResultOrderDeliveryInformation public RestApiResultOrderDeliveryInformation GetDeliveryInformation (int? orderId) { @@ -1091,10 +1239,10 @@ public RestApiResultOrderDeliveryInformation GetDeliveryInformation (int? orderI } /// - /// Get order delivery information Returns an orders delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// ApiResponse of RestApiResultOrderDeliveryInformation public ApiResponse< RestApiResultOrderDeliveryInformation > GetDeliveryInformationWithHttpInfo (int? orderId) { @@ -1154,10 +1302,10 @@ public ApiResponse< RestApiResultOrderDeliveryInformation > GetDeliveryInformati } /// - /// Get order delivery information Returns an orders delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// Task of RestApiResultOrderDeliveryInformation public async System.Threading.Tasks.Task GetDeliveryInformationAsync (int? orderId) { @@ -1167,10 +1315,10 @@ public async System.Threading.Tasks.Task } /// - /// Get order delivery information Returns an orders delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// Task of ApiResponse (RestApiResultOrderDeliveryInformation) public async System.Threading.Tasks.Task> GetDeliveryInformationAsyncWithHttpInfo (int? orderId) { @@ -1230,10 +1378,10 @@ public async System.Threading.Tasks.Task - /// Get order fulfillment state [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment state. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// RestApiResultOrderFulfillmentStatus public RestApiResultOrderFulfillmentStatus GetFulfillmentState (int? orderId) { @@ -1242,10 +1390,10 @@ public RestApiResultOrderFulfillmentStatus GetFulfillmentState (int? orderId) } /// - /// Get order fulfillment state [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment state. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// ApiResponse of RestApiResultOrderFulfillmentStatus public ApiResponse< RestApiResultOrderFulfillmentStatus > GetFulfillmentStateWithHttpInfo (int? orderId) { @@ -1305,10 +1453,10 @@ public ApiResponse< RestApiResultOrderFulfillmentStatus > GetFulfillmentStateWit } /// - /// Get order fulfillment state [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment state. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// Task of RestApiResultOrderFulfillmentStatus public async System.Threading.Tasks.Task GetFulfillmentStateAsync (int? orderId) { @@ -1318,10 +1466,10 @@ public async System.Threading.Tasks.Task Ge } /// - /// Get order fulfillment state [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment state. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// Task of ApiResponse (RestApiResultOrderFulfillmentStatus) public async System.Threading.Tasks.Task> GetFulfillmentStateAsyncWithHttpInfo (int? orderId) { @@ -1381,10 +1529,10 @@ public async System.Threading.Tasks.Task - /// Get order fulfillment state with actionable details like default next state [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment status and details about possible states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// RestApiResultOrderFulfillmentStatusWithConfigurationActions public RestApiResultOrderFulfillmentStatusWithConfigurationActions GetFulfillmentStatusWithDetailsAndActions (int? orderId) { @@ -1393,10 +1541,10 @@ public RestApiResultOrderFulfillmentStatusWithConfigurationActions GetFulfillmen } /// - /// Get order fulfillment state with actionable details like default next state [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment status and details about possible states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// ApiResponse of RestApiResultOrderFulfillmentStatusWithConfigurationActions public ApiResponse< RestApiResultOrderFulfillmentStatusWithConfigurationActions > GetFulfillmentStatusWithDetailsAndActionsWithHttpInfo (int? orderId) { @@ -1456,10 +1604,10 @@ public ApiResponse< RestApiResultOrderFulfillmentStatusWithConfigurationActions } /// - /// Get order fulfillment state with actionable details like default next state [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment status and details about possible states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// Task of RestApiResultOrderFulfillmentStatusWithConfigurationActions public async System.Threading.Tasks.Task GetFulfillmentStatusWithDetailsAndActionsAsync (int? orderId) { @@ -1469,10 +1617,10 @@ public async System.Threading.Tasks.Task - /// Get order fulfillment state with actionable details like default next state [BETA - this endpoint is under development, do not use it in your production system] Returns an order's fulfillment status and details about possible states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id + /// /// Task of ApiResponse (RestApiResultOrderFulfillmentStatusWithConfigurationActions) public async System.Threading.Tasks.Task> GetFulfillmentStatusWithDetailsAndActionsAsyncWithHttpInfo (int? orderId) { @@ -1532,10 +1680,10 @@ public async System.Threading.Tasks.Task - /// Get order by ID + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// RestApiResultOrder public RestApiResultOrder GetOrderById (int? id) { @@ -1544,10 +1692,10 @@ public RestApiResultOrder GetOrderById (int? id) } /// - /// Get order by ID + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// ApiResponse of RestApiResultOrder public ApiResponse< RestApiResultOrder > GetOrderByIdWithHttpInfo (int? id) { @@ -1607,10 +1755,10 @@ public ApiResponse< RestApiResultOrder > GetOrderByIdWithHttpInfo (int? id) } /// - /// Get order by ID + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// Task of RestApiResultOrder public async System.Threading.Tasks.Task GetOrderByIdAsync (int? id) { @@ -1620,10 +1768,10 @@ public async System.Threading.Tasks.Task GetOrderByIdAsync ( } /// - /// Get order by ID + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// Task of ApiResponse (RestApiResultOrder) public async System.Threading.Tasks.Task> GetOrderByIdAsyncWithHttpInfo (int? id) { @@ -1683,15 +1831,15 @@ public async System.Threading.Tasks.Task> GetOrd } /// - /// Get orders by filter + /// /// /// Thrown when fails to make API call - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Order has been placed after this parameter value (optional) - /// Order has been placed before this parameter value (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// (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) { @@ -1700,15 +1848,15 @@ public RestApiPaginationResultOrder GetOrders (List physicalRestaurantId = } /// - /// Get orders by filter + /// /// /// Thrown when fails to make API call - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Order has been placed after this parameter value (optional) - /// Order has been placed before this parameter value (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// (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) { @@ -1770,15 +1918,15 @@ public ApiResponse< RestApiPaginationResultOrder > GetOrdersWithHttpInfo (List - /// Get orders by filter + /// /// /// Thrown when fails to make API call - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Order has been placed after this parameter value (optional) - /// Order has been placed before this parameter value (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// (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) { @@ -1788,15 +1936,15 @@ public async System.Threading.Tasks.Task GetOrders } /// - /// Get orders by filter + /// /// /// Thrown when fails to make API call - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Order has been placed after this parameter value (optional) - /// Order has been placed before this parameter value (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// (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) { @@ -1858,38 +2006,46 @@ public async System.Threading.Tasks.Task - /// [PRIVATE API] Get summary of orders by filter + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Query string (optional) - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// + /// (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) + 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); + ApiResponse localVarResponse = GetOrdersSummaryWithHttpInfo(appId, searchQuery, physicalRestaurantId, state, page, limit, orderByRequestedForTime, channels, orderIds, from, to, logSql); return localVarResponse.Data; } /// - /// [PRIVATE API] Get summary of orders by filter + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Query string (optional) - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// + /// (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) + 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) @@ -1927,6 +2083,10 @@ public ApiResponse< RestApiPaginationResultOrderSummary > GetOrdersSummaryWithHt 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 @@ -1954,39 +2114,47 @@ public ApiResponse< RestApiPaginationResultOrderSummary > GetOrdersSummaryWithHt } /// - /// [PRIVATE API] Get summary of orders by filter + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Query string (optional) - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// + /// (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) + 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); + ApiResponse localVarResponse = await GetOrdersSummaryAsyncWithHttpInfo(appId, searchQuery, physicalRestaurantId, state, page, limit, orderByRequestedForTime, channels, orderIds, from, to, logSql); return localVarResponse.Data; } /// - /// [PRIVATE API] Get summary of orders by filter + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Query string (optional) - /// Physical restaurant identifiers (optional) - /// Order states (optional) - /// Requested page number (optional) - /// Requested page limit (optional) + /// + /// (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) + 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) @@ -2024,6 +2192,10 @@ public async System.Threading.Tasks.Task - /// Refund order To refund an order, you create a `refund` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// + /// + /// 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 - /// Order identifier + /// /// /// public void RefundOrder (int? id, Refund refundObject) @@ -2063,10 +2609,10 @@ public void RefundOrder (int? id, Refund refundObject) } /// - /// Refund order To refund an order, you create a `refund` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// ApiResponse of Object(void) public ApiResponse RefundOrderWithHttpInfo (int? id, Refund refundObject) @@ -2143,10 +2689,10 @@ public ApiResponse RefundOrderWithHttpInfo (int? id, Refund refundObject } /// - /// Refund order To refund an order, you create a `refund` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// Task of void public async System.Threading.Tasks.Task RefundOrderAsync (int? id, Refund refundObject) @@ -2156,10 +2702,10 @@ public async System.Threading.Tasks.Task RefundOrderAsync (int? id, Refund refun } /// - /// Refund order To refund an order, you create a `refund` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> RefundOrderAsyncWithHttpInfo (int? id, Refund refundObject) @@ -2236,10 +2782,10 @@ public async System.Threading.Tasks.Task> RefundOrderAsyncWi } /// - /// Reject order To reject an order, you create a `reject` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// public void RejectOrder (int? id, Reject rejectObject) @@ -2248,10 +2794,10 @@ public void RejectOrder (int? id, Reject rejectObject) } /// - /// Reject order To reject an order, you create a `reject` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// ApiResponse of Object(void) public ApiResponse RejectOrderWithHttpInfo (int? id, Reject rejectObject) @@ -2328,10 +2874,10 @@ public ApiResponse RejectOrderWithHttpInfo (int? id, Reject rejectObject } /// - /// Reject order To reject an order, you create a `reject` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// Task of void public async System.Threading.Tasks.Task RejectOrderAsync (int? id, Reject rejectObject) @@ -2341,10 +2887,10 @@ public async System.Threading.Tasks.Task RejectOrderAsync (int? id, Reject rejec } /// - /// Reject order To reject an order, you create a `reject` object and send it to Flipdish API using HTTP POST method. `Id` path parameter identifies the order. + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> RejectOrderAsyncWithHttpInfo (int? id, Reject rejectObject) @@ -2421,11 +2967,11 @@ public async System.Threading.Tasks.Task> RejectOrderAsyncWi } /// - /// Get fulfillment status for a list of orders [BETA - this endpoint is under development, do not use it in your production system] Returns fulfillment status for list of orders. + /// /// /// Thrown when fails to make API call - /// App Id - /// Flipdish Order Id list, comma separated + /// + /// /// RestApiArrayResultOrderFulfillmentStatus public RestApiArrayResultOrderFulfillmentStatus SearchFulfillmentStatuses (string appId, string orderIds) { @@ -2434,11 +2980,11 @@ public RestApiArrayResultOrderFulfillmentStatus SearchFulfillmentStatuses (strin } /// - /// Get fulfillment status for a list of orders [BETA - this endpoint is under development, do not use it in your production system] Returns fulfillment status for list of orders. + /// /// /// Thrown when fails to make API call - /// App Id - /// Flipdish Order Id list, comma separated + /// + /// /// ApiResponse of RestApiArrayResultOrderFulfillmentStatus public ApiResponse< RestApiArrayResultOrderFulfillmentStatus > SearchFulfillmentStatusesWithHttpInfo (string appId, string orderIds) { @@ -2502,11 +3048,11 @@ public ApiResponse< RestApiArrayResultOrderFulfillmentStatus > SearchFulfillment } /// - /// Get fulfillment status for a list of orders [BETA - this endpoint is under development, do not use it in your production system] Returns fulfillment status for list of orders. + /// /// /// Thrown when fails to make API call - /// App Id - /// Flipdish Order Id list, comma separated + /// + /// /// Task of RestApiArrayResultOrderFulfillmentStatus public async System.Threading.Tasks.Task SearchFulfillmentStatusesAsync (string appId, string orderIds) { @@ -2516,11 +3062,11 @@ public async System.Threading.Tasks.Task - /// Get fulfillment status for a list of orders [BETA - this endpoint is under development, do not use it in your production system] Returns fulfillment status for list of orders. + /// /// /// Thrown when fails to make API call - /// App Id - /// Flipdish Order Id list, comma separated + /// + /// /// Task of ApiResponse (RestApiArrayResultOrderFulfillmentStatus) public async System.Threading.Tasks.Task> SearchFulfillmentStatusesAsyncWithHttpInfo (string appId, string orderIds) { @@ -2584,11 +3130,11 @@ public async System.Threading.Tasks.Task - /// Add/update delivery-related information to an order Returns an order's delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Delivery Information + /// + /// /// public void UpdateDeliveryInformation (int? orderId, OrderDeliveryInformationBase deliveryInformation) { @@ -2596,11 +3142,11 @@ public void UpdateDeliveryInformation (int? orderId, OrderDeliveryInformationBas } /// - /// Add/update delivery-related information to an order Returns an order's delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Delivery Information + /// + /// /// ApiResponse of Object(void) public ApiResponse UpdateDeliveryInformationWithHttpInfo (int? orderId, OrderDeliveryInformationBase deliveryInformation) { @@ -2676,11 +3222,11 @@ public ApiResponse UpdateDeliveryInformationWithHttpInfo (int? orderId, } /// - /// Add/update delivery-related information to an order Returns an order's delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Delivery Information + /// + /// /// Task of void public async System.Threading.Tasks.Task UpdateDeliveryInformationAsync (int? orderId, OrderDeliveryInformationBase deliveryInformation) { @@ -2689,11 +3235,11 @@ public async System.Threading.Tasks.Task UpdateDeliveryInformationAsync (int? or } /// - /// Add/update delivery-related information to an order Returns an order's delivery information. This would be used to display the latest known delivery information on a screen. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Delivery Information + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateDeliveryInformationAsyncWithHttpInfo (int? orderId, OrderDeliveryInformationBase deliveryInformation) { @@ -2769,11 +3315,11 @@ public async System.Threading.Tasks.Task> UpdateDeliveryInfo } /// - /// Update fulfillment status information to an order [BETA - this endpoint is under development, do not use it in your production system] Updates an order's fulfillment states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Fulfillment Status + /// + /// /// public void UpdateFulfillmentState (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest) { @@ -2781,11 +3327,11 @@ public void UpdateFulfillmentState (int? orderId, OrderFulfillmentStatusUpdate f } /// - /// Update fulfillment status information to an order [BETA - this endpoint is under development, do not use it in your production system] Updates an order's fulfillment states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Fulfillment Status + /// + /// /// ApiResponse of Object(void) public ApiResponse UpdateFulfillmentStateWithHttpInfo (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest) { @@ -2861,11 +3407,11 @@ public ApiResponse UpdateFulfillmentStateWithHttpInfo (int? orderId, Ord } /// - /// Update fulfillment status information to an order [BETA - this endpoint is under development, do not use it in your production system] Updates an order's fulfillment states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Fulfillment Status + /// + /// /// Task of void public async System.Threading.Tasks.Task UpdateFulfillmentStateAsync (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest) { @@ -2874,11 +3420,11 @@ public async System.Threading.Tasks.Task UpdateFulfillmentStateAsync (int? order } /// - /// Update fulfillment status information to an order [BETA - this endpoint is under development, do not use it in your production system] Updates an order's fulfillment states. + /// /// /// Thrown when fails to make API call - /// Flipdish Order Id - /// Fulfillment Status + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateFulfillmentStateAsyncWithHttpInfo (int? orderId, OrderFulfillmentStatusUpdate fulfillmentStatusRequest) { diff --git a/src/Flipdish/Api/PaymentIntentsApi.cs b/src/Flipdish/Api/PaymentIntentsApi.cs index c8d31437..e20cd553 100644 --- a/src/Flipdish/Api/PaymentIntentsApi.cs +++ b/src/Flipdish/Api/PaymentIntentsApi.cs @@ -25,47 +25,47 @@ public interface IPaymentIntentsApi : IApiAccessor { #region Synchronous Operations /// - /// Returns stripe payment intent for a given id + /// /// /// /// /// /// Thrown when fails to make API call - /// Stripe payment intent identifier + /// /// RestApiResultPaymentIntent RestApiResultPaymentIntent GetPaymentIntent (string paymentIntentId); /// - /// Returns stripe payment intent for a given id + /// /// /// /// /// /// Thrown when fails to make API call - /// Stripe payment intent identifier + /// /// ApiResponse of RestApiResultPaymentIntent ApiResponse GetPaymentIntentWithHttpInfo (string paymentIntentId); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Returns stripe payment intent for a given id + /// /// /// /// /// /// Thrown when fails to make API call - /// Stripe payment intent identifier + /// /// Task of RestApiResultPaymentIntent System.Threading.Tasks.Task GetPaymentIntentAsync (string paymentIntentId); /// - /// Returns stripe payment intent for a given id + /// /// /// /// /// /// Thrown when fails to make API call - /// Stripe payment intent identifier + /// /// Task of ApiResponse (RestApiResultPaymentIntent) System.Threading.Tasks.Task> GetPaymentIntentAsyncWithHttpInfo (string paymentIntentId); #endregion Asynchronous Operations @@ -169,10 +169,10 @@ public void AddDefaultHeader(string key, string value) } /// - /// Returns stripe payment intent for a given id + /// /// /// Thrown when fails to make API call - /// Stripe payment intent identifier + /// /// RestApiResultPaymentIntent public RestApiResultPaymentIntent GetPaymentIntent (string paymentIntentId) { @@ -181,10 +181,10 @@ public RestApiResultPaymentIntent GetPaymentIntent (string paymentIntentId) } /// - /// Returns stripe payment intent for a given id + /// /// /// Thrown when fails to make API call - /// Stripe payment intent identifier + /// /// ApiResponse of RestApiResultPaymentIntent public ApiResponse< RestApiResultPaymentIntent > GetPaymentIntentWithHttpInfo (string paymentIntentId) { @@ -244,10 +244,10 @@ public ApiResponse< RestApiResultPaymentIntent > GetPaymentIntentWithHttpInfo (s } /// - /// Returns stripe payment intent for a given id + /// /// /// Thrown when fails to make API call - /// Stripe payment intent identifier + /// /// Task of RestApiResultPaymentIntent public async System.Threading.Tasks.Task GetPaymentIntentAsync (string paymentIntentId) { @@ -257,10 +257,10 @@ public async System.Threading.Tasks.Task GetPaymentI } /// - /// Returns stripe payment intent for a given id + /// /// /// Thrown when fails to make API call - /// Stripe payment intent identifier + /// /// Task of ApiResponse (RestApiResultPaymentIntent) public async System.Threading.Tasks.Task> GetPaymentIntentAsyncWithHttpInfo (string paymentIntentId) { diff --git a/src/Flipdish/Api/PaymentsApi.cs b/src/Flipdish/Api/PaymentsApi.cs index de37bbc0..8db117bb 100644 --- a/src/Flipdish/Api/PaymentsApi.cs +++ b/src/Flipdish/Api/PaymentsApi.cs @@ -25,47 +25,47 @@ public interface IPaymentsApi : IApiAccessor { #region Synchronous Operations /// - /// Returns payment refund information related to the order with the order id + /// /// /// /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// RestApiResultOrderPaymentInformation RestApiResultOrderPaymentInformation GetOrderPaymentInformation (int? orderId); /// - /// Returns payment refund information related to the order with the order id + /// /// /// /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// ApiResponse of RestApiResultOrderPaymentInformation ApiResponse GetOrderPaymentInformationWithHttpInfo (int? orderId); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Returns payment refund information related to the order with the order id + /// /// /// /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// Task of RestApiResultOrderPaymentInformation System.Threading.Tasks.Task GetOrderPaymentInformationAsync (int? orderId); /// - /// Returns payment refund information related to the order with the order id + /// /// /// /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// Task of ApiResponse (RestApiResultOrderPaymentInformation) System.Threading.Tasks.Task> GetOrderPaymentInformationAsyncWithHttpInfo (int? orderId); #endregion Asynchronous Operations @@ -169,10 +169,10 @@ public void AddDefaultHeader(string key, string value) } /// - /// Returns payment refund information related to the order with the order id + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// RestApiResultOrderPaymentInformation public RestApiResultOrderPaymentInformation GetOrderPaymentInformation (int? orderId) { @@ -181,10 +181,10 @@ public RestApiResultOrderPaymentInformation GetOrderPaymentInformation (int? ord } /// - /// Returns payment refund information related to the order with the order id + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// ApiResponse of RestApiResultOrderPaymentInformation public ApiResponse< RestApiResultOrderPaymentInformation > GetOrderPaymentInformationWithHttpInfo (int? orderId) { @@ -244,10 +244,10 @@ public ApiResponse< RestApiResultOrderPaymentInformation > GetOrderPaymentInform } /// - /// Returns payment refund information related to the order with the order id + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// Task of RestApiResultOrderPaymentInformation public async System.Threading.Tasks.Task GetOrderPaymentInformationAsync (int? orderId) { @@ -257,10 +257,10 @@ public async System.Threading.Tasks.Task G } /// - /// Returns payment refund information related to the order with the order id + /// /// /// Thrown when fails to make API call - /// Order identifier + /// /// Task of ApiResponse (RestApiResultOrderPaymentInformation) public async System.Threading.Tasks.Task> GetOrderPaymentInformationAsyncWithHttpInfo (int? orderId) { diff --git a/src/Flipdish/Api/PayoutsExportApi.cs b/src/Flipdish/Api/PayoutReportsApi.cs similarity index 59% rename from src/Flipdish/Api/PayoutsExportApi.cs rename to src/Flipdish/Api/PayoutReportsApi.cs index 16c91ba4..430695d6 100644 --- a/src/Flipdish/Api/PayoutsExportApi.cs +++ b/src/Flipdish/Api/PayoutReportsApi.cs @@ -21,11 +21,11 @@ namespace Flipdish.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IPayoutsExportApi : IApiAccessor + public interface IPayoutReportsApi : IApiAccessor { #region Synchronous Operations /// - /// Export a list of payout's chargebacks as CSV + /// /// /// /// @@ -35,11 +35,11 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// (optional) - /// string - string ExportPayoutChargebacks (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// RestApiResultPayoutReport3Details + RestApiResultPayoutReport3Details GetPayoutReport3Details (string appId, int? bankAccountId, int? payoutId, List storeIds = null); /// - /// Export a list of payout's chargebacks as CSV + /// /// /// /// @@ -49,10 +49,10 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// (optional) - /// ApiResponse of string - ApiResponse ExportPayoutChargebacksWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// ApiResponse of RestApiResultPayoutReport3Details + ApiResponse GetPayoutReport3DetailsWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null); /// - /// Export a list of payout's orders as CSV + /// /// /// /// @@ -61,12 +61,11 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// - /// (optional) - /// string - string ExportPayoutOrders (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// RestApiResultPayoutReport3Overview + RestApiResultPayoutReport3Overview GetPayoutReport3Overview (string appId, int? bankAccountId, int? payoutId); /// - /// Export a list of payout's orders as CSV + /// /// /// /// @@ -75,11 +74,10 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// - /// (optional) - /// ApiResponse of string - ApiResponse ExportPayoutOrdersWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// ApiResponse of RestApiResultPayoutReport3Overview + ApiResponse GetPayoutReport3OverviewWithHttpInfo (string appId, int? bankAccountId, int? payoutId); /// - /// Export a list of payout's other charges as CSV + /// /// /// /// @@ -88,12 +86,13 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// + /// (optional) /// (optional) - /// string - string ExportPayoutOtherCharges (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// RestApiResultPayoutReport3PropertyDetails + RestApiResultPayoutReport3PropertyDetails GetPayoutReport3PropertyDetails (string appId, int? bankAccountId, int? payoutId, List propertyIds = null, List storeIds = null); /// - /// Export a list of payout's other charges as CSV + /// /// /// /// @@ -102,11 +101,12 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// + /// (optional) /// (optional) - /// ApiResponse of string - ApiResponse ExportPayoutOtherChargesWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// ApiResponse of RestApiResultPayoutReport3PropertyDetails + ApiResponse GetPayoutReport3PropertyDetailsWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List propertyIds = null, List storeIds = null); /// - /// Export a list of payout's refunds as CSV + /// /// /// /// @@ -116,11 +116,13 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// (optional) - /// string - string ExportPayoutRefunds (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// (optional) + /// (optional) + /// RestApiPaginationResultPayoutReport3RefundedOrder + RestApiPaginationResultPayoutReport3RefundedOrder GetPayoutReport3RefundedOrders (string appId, int? bankAccountId, int? payoutId, List storeIds = null, int? page = null, int? limit = null); /// - /// Export a list of payout's refunds as CSV + /// /// /// /// @@ -130,10 +132,12 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// (optional) - /// ApiResponse of string - ApiResponse ExportPayoutRefundsWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// (optional) + /// (optional) + /// ApiResponse of RestApiPaginationResultPayoutReport3RefundedOrder + ApiResponse GetPayoutReport3RefundedOrdersWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null, int? page = null, int? limit = null); /// - /// Export payout's details as CSV + /// /// /// /// @@ -142,12 +146,12 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// - /// (optional) - /// string - string ExportPayoutStores (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// (optional) + /// RestApiResultPayoutReport3StorePayouts + RestApiResultPayoutReport3StorePayouts GetPayoutReport3Stores (string appId, int? bankAccountId, int? payoutId, List stores = null); /// - /// Export payout's details as CSV + /// /// /// /// @@ -156,42 +160,13 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// - /// (optional) - /// ApiResponse of string - ApiResponse ExportPayoutStoresWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null); - /// - /// Export payouts as CSV - /// - /// - /// - /// - /// 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) - /// string - string ExportPayouts (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); - - /// - /// Export payouts as CSV - /// - /// - /// - /// - /// 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 string - ApiResponse ExportPayoutsWithHttpInfo (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); + /// (optional) + /// ApiResponse of RestApiResultPayoutReport3StorePayouts + ApiResponse GetPayoutReport3StoresWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List stores = null); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Export a list of payout's chargebacks as CSV + /// /// /// /// @@ -201,11 +176,11 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// (optional) - /// Task of string - System.Threading.Tasks.Task ExportPayoutChargebacksAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// Task of RestApiResultPayoutReport3Details + System.Threading.Tasks.Task GetPayoutReport3DetailsAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null); /// - /// Export a list of payout's chargebacks as CSV + /// /// /// /// @@ -215,10 +190,10 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> ExportPayoutChargebacksAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// Task of ApiResponse (RestApiResultPayoutReport3Details) + System.Threading.Tasks.Task> GetPayoutReport3DetailsAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null); /// - /// Export a list of payout's orders as CSV + /// /// /// /// @@ -227,12 +202,11 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// - /// (optional) - /// Task of string - System.Threading.Tasks.Task ExportPayoutOrdersAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// Task of RestApiResultPayoutReport3Overview + System.Threading.Tasks.Task GetPayoutReport3OverviewAsync (string appId, int? bankAccountId, int? payoutId); /// - /// Export a list of payout's orders as CSV + /// /// /// /// @@ -241,11 +215,10 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// - /// (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> ExportPayoutOrdersAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// Task of ApiResponse (RestApiResultPayoutReport3Overview) + System.Threading.Tasks.Task> GetPayoutReport3OverviewAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId); /// - /// Export a list of payout's other charges as CSV + /// /// /// /// @@ -254,12 +227,13 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// + /// (optional) /// (optional) - /// Task of string - System.Threading.Tasks.Task ExportPayoutOtherChargesAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// Task of RestApiResultPayoutReport3PropertyDetails + System.Threading.Tasks.Task GetPayoutReport3PropertyDetailsAsync (string appId, int? bankAccountId, int? payoutId, List propertyIds = null, List storeIds = null); /// - /// Export a list of payout's other charges as CSV + /// /// /// /// @@ -268,11 +242,12 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// + /// (optional) /// (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> ExportPayoutOtherChargesAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// Task of ApiResponse (RestApiResultPayoutReport3PropertyDetails) + System.Threading.Tasks.Task> GetPayoutReport3PropertyDetailsAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List propertyIds = null, List storeIds = null); /// - /// Export a list of payout's refunds as CSV + /// /// /// /// @@ -282,11 +257,13 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// (optional) - /// Task of string - System.Threading.Tasks.Task ExportPayoutRefundsAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// (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); /// - /// Export a list of payout's refunds as CSV + /// /// /// /// @@ -296,10 +273,12 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> ExportPayoutRefundsAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// (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); /// - /// Export payout's details as CSV + /// /// /// /// @@ -308,12 +287,12 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// - /// (optional) - /// Task of string - System.Threading.Tasks.Task ExportPayoutStoresAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null); + /// (optional) + /// Task of RestApiResultPayoutReport3StorePayouts + System.Threading.Tasks.Task GetPayoutReport3StoresAsync (string appId, int? bankAccountId, int? payoutId, List stores = null); /// - /// Export payout's details as CSV + /// /// /// /// @@ -322,53 +301,24 @@ public interface IPayoutsExportApi : IApiAccessor /// /// /// - /// (optional) - /// Task of ApiResponse (string) - System.Threading.Tasks.Task> ExportPayoutStoresAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null); - /// - /// Export payouts as CSV - /// - /// - /// - /// - /// 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 string - System.Threading.Tasks.Task ExportPayoutsAsync (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); - - /// - /// Export payouts as CSV - /// - /// - /// - /// - /// 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 (string) - System.Threading.Tasks.Task> ExportPayoutsAsyncWithHttpInfo (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); + /// (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 PayoutsExportApi : IPayoutsExportApi + public partial class PayoutReportsApi : IPayoutReportsApi { private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - public PayoutsExportApi(String basePath) + public PayoutReportsApi(String basePath) { this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; @@ -376,12 +326,12 @@ public PayoutsExportApi(String basePath) } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// - public PayoutsExportApi(Flipdish.Client.Configuration configuration = null) + public PayoutReportsApi(Flipdish.Client.Configuration configuration = null) { if (configuration == null) // use the default one in Configuration this.Configuration = Flipdish.Client.Configuration.Default; @@ -455,42 +405,42 @@ public void AddDefaultHeader(string key, string value) } /// - /// Export a list of payout's chargebacks as CSV + /// /// /// Thrown when fails to make API call /// /// /// /// (optional) - /// string - public string ExportPayoutChargebacks (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// RestApiResultPayoutReport3Details + public RestApiResultPayoutReport3Details GetPayoutReport3Details (string appId, int? bankAccountId, int? payoutId, List storeIds = null) { - ApiResponse localVarResponse = ExportPayoutChargebacksWithHttpInfo(appId, bankAccountId, payoutId, storeIds); + ApiResponse localVarResponse = GetPayoutReport3DetailsWithHttpInfo(appId, bankAccountId, payoutId, storeIds); return localVarResponse.Data; } /// - /// Export a list of payout's chargebacks as CSV + /// /// /// Thrown when fails to make API call /// /// /// /// (optional) - /// ApiResponse of string - public ApiResponse< string > ExportPayoutChargebacksWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// 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 PayoutsExportApi->ExportPayoutChargebacks"); + 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 PayoutsExportApi->ExportPayoutChargebacks"); + 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 PayoutsExportApi->ExportPayoutChargebacks"); + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3Details"); - var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks/export"; + 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); @@ -535,53 +485,53 @@ public ApiResponse< string > ExportPayoutChargebacksWithHttpInfo (string appId, if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("ExportPayoutChargebacks", localVarResponse); + Exception exception = ExceptionFactory("GetPayoutReport3Details", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + (RestApiResultPayoutReport3Details) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3Details))); } /// - /// Export a list of payout's chargebacks as CSV + /// /// /// Thrown when fails to make API call /// /// /// /// (optional) - /// Task of string - public async System.Threading.Tasks.Task ExportPayoutChargebacksAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// Task of RestApiResultPayoutReport3Details + public async System.Threading.Tasks.Task GetPayoutReport3DetailsAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null) { - ApiResponse localVarResponse = await ExportPayoutChargebacksAsyncWithHttpInfo(appId, bankAccountId, payoutId, storeIds); + ApiResponse localVarResponse = await GetPayoutReport3DetailsAsyncWithHttpInfo(appId, bankAccountId, payoutId, storeIds); return localVarResponse.Data; } /// - /// Export a list of payout's chargebacks as CSV + /// /// /// Thrown when fails to make API call /// /// /// /// (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> ExportPayoutChargebacksAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// 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 PayoutsExportApi->ExportPayoutChargebacks"); + 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 PayoutsExportApi->ExportPayoutChargebacks"); + 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 PayoutsExportApi->ExportPayoutChargebacks"); + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3Details"); - var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/chargebacks/export"; + 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); @@ -626,52 +576,50 @@ public async System.Threading.Tasks.Task> ExportPayoutCharge if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("ExportPayoutChargebacks", localVarResponse); + Exception exception = ExceptionFactory("GetPayoutReport3Details", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + (RestApiResultPayoutReport3Details) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3Details))); } /// - /// Export a list of payout's orders as CSV + /// /// /// Thrown when fails to make API call /// /// /// - /// (optional) - /// string - public string ExportPayoutOrders (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// RestApiResultPayoutReport3Overview + public RestApiResultPayoutReport3Overview GetPayoutReport3Overview (string appId, int? bankAccountId, int? payoutId) { - ApiResponse localVarResponse = ExportPayoutOrdersWithHttpInfo(appId, bankAccountId, payoutId, storeIds); + ApiResponse localVarResponse = GetPayoutReport3OverviewWithHttpInfo(appId, bankAccountId, payoutId); return localVarResponse.Data; } /// - /// Export a list of payout's orders as CSV + /// /// /// Thrown when fails to make API call /// /// /// - /// (optional) - /// ApiResponse of string - public ApiResponse< string > ExportPayoutOrdersWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// 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 PayoutsExportApi->ExportPayoutOrders"); + 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 PayoutsExportApi->ExportPayoutOrders"); + 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 PayoutsExportApi->ExportPayoutOrders"); + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3Overview"); - var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders/export"; + 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); @@ -698,7 +646,6 @@ public ApiResponse< string > ExportPayoutOrdersWithHttpInfo (string appId, int? 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 @@ -716,53 +663,51 @@ public ApiResponse< string > ExportPayoutOrdersWithHttpInfo (string appId, int? if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("ExportPayoutOrders", localVarResponse); + Exception exception = ExceptionFactory("GetPayoutReport3Overview", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + (RestApiResultPayoutReport3Overview) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3Overview))); } /// - /// Export a list of payout's orders as CSV + /// /// /// Thrown when fails to make API call /// /// /// - /// (optional) - /// Task of string - public async System.Threading.Tasks.Task ExportPayoutOrdersAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// Task of RestApiResultPayoutReport3Overview + public async System.Threading.Tasks.Task GetPayoutReport3OverviewAsync (string appId, int? bankAccountId, int? payoutId) { - ApiResponse localVarResponse = await ExportPayoutOrdersAsyncWithHttpInfo(appId, bankAccountId, payoutId, storeIds); + ApiResponse localVarResponse = await GetPayoutReport3OverviewAsyncWithHttpInfo(appId, bankAccountId, payoutId); return localVarResponse.Data; } /// - /// Export a list of payout's orders as CSV + /// /// /// Thrown when fails to make API call /// /// /// - /// (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> ExportPayoutOrdersAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// 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 PayoutsExportApi->ExportPayoutOrders"); + 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 PayoutsExportApi->ExportPayoutOrders"); + 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 PayoutsExportApi->ExportPayoutOrders"); + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3Overview"); - var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/orders/export"; + 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); @@ -789,7 +734,6 @@ public async System.Threading.Tasks.Task> ExportPayoutOrders 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 @@ -807,52 +751,54 @@ public async System.Threading.Tasks.Task> ExportPayoutOrders if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("ExportPayoutOrders", localVarResponse); + Exception exception = ExceptionFactory("GetPayoutReport3Overview", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + (RestApiResultPayoutReport3Overview) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3Overview))); } /// - /// Export a list of payout's other charges as CSV + /// /// /// Thrown when fails to make API call /// /// /// + /// (optional) /// (optional) - /// string - public string ExportPayoutOtherCharges (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// RestApiResultPayoutReport3PropertyDetails + public RestApiResultPayoutReport3PropertyDetails GetPayoutReport3PropertyDetails (string appId, int? bankAccountId, int? payoutId, List propertyIds = null, List storeIds = null) { - ApiResponse localVarResponse = ExportPayoutOtherChargesWithHttpInfo(appId, bankAccountId, payoutId, storeIds); + ApiResponse localVarResponse = GetPayoutReport3PropertyDetailsWithHttpInfo(appId, bankAccountId, payoutId, propertyIds, storeIds); return localVarResponse.Data; } /// - /// Export a list of payout's other charges as CSV + /// /// /// Thrown when fails to make API call /// /// /// + /// (optional) /// (optional) - /// ApiResponse of string - public ApiResponse< string > ExportPayoutOtherChargesWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// 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 PayoutsExportApi->ExportPayoutOtherCharges"); + 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 PayoutsExportApi->ExportPayoutOtherCharges"); + 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 PayoutsExportApi->ExportPayoutOtherCharges"); + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3PropertyDetails"); - var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges/export"; + 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); @@ -879,6 +825,7 @@ public ApiResponse< string > ExportPayoutOtherChargesWithHttpInfo (string appId, 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 @@ -897,53 +844,55 @@ public ApiResponse< string > ExportPayoutOtherChargesWithHttpInfo (string appId, if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("ExportPayoutOtherCharges", localVarResponse); + Exception exception = ExceptionFactory("GetPayoutReport3PropertyDetails", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + (RestApiResultPayoutReport3PropertyDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3PropertyDetails))); } /// - /// Export a list of payout's other charges as CSV + /// /// /// Thrown when fails to make API call /// /// /// + /// (optional) /// (optional) - /// Task of string - public async System.Threading.Tasks.Task ExportPayoutOtherChargesAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// 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 ExportPayoutOtherChargesAsyncWithHttpInfo(appId, bankAccountId, payoutId, storeIds); + ApiResponse localVarResponse = await GetPayoutReport3PropertyDetailsAsyncWithHttpInfo(appId, bankAccountId, payoutId, propertyIds, storeIds); return localVarResponse.Data; } /// - /// Export a list of payout's other charges as CSV + /// /// /// Thrown when fails to make API call /// /// /// + /// (optional) /// (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> ExportPayoutOtherChargesAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// 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 PayoutsExportApi->ExportPayoutOtherCharges"); + 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 PayoutsExportApi->ExportPayoutOtherCharges"); + 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 PayoutsExportApi->ExportPayoutOtherCharges"); + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3PropertyDetails"); - var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/othercharges/export"; + 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); @@ -970,6 +919,7 @@ public async System.Threading.Tasks.Task> ExportPayoutOtherC 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 @@ -988,52 +938,56 @@ public async System.Threading.Tasks.Task> ExportPayoutOtherC if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("ExportPayoutOtherCharges", localVarResponse); + Exception exception = ExceptionFactory("GetPayoutReport3PropertyDetails", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + (RestApiResultPayoutReport3PropertyDetails) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3PropertyDetails))); } /// - /// Export a list of payout's refunds as CSV + /// /// /// Thrown when fails to make API call /// /// /// /// (optional) - /// string - public string ExportPayoutRefunds (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// (optional) + /// (optional) + /// RestApiPaginationResultPayoutReport3RefundedOrder + public RestApiPaginationResultPayoutReport3RefundedOrder GetPayoutReport3RefundedOrders (string appId, int? bankAccountId, int? payoutId, List storeIds = null, int? page = null, int? limit = null) { - ApiResponse localVarResponse = ExportPayoutRefundsWithHttpInfo(appId, bankAccountId, payoutId, storeIds); + ApiResponse localVarResponse = GetPayoutReport3RefundedOrdersWithHttpInfo(appId, bankAccountId, payoutId, storeIds, page, limit); return localVarResponse.Data; } /// - /// Export a list of payout's refunds as CSV + /// /// /// Thrown when fails to make API call /// /// /// /// (optional) - /// ApiResponse of string - public ApiResponse< string > ExportPayoutRefundsWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// (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 PayoutsExportApi->ExportPayoutRefunds"); + 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 PayoutsExportApi->ExportPayoutRefunds"); + 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 PayoutsExportApi->ExportPayoutRefunds"); + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3RefundedOrders"); - var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds/export"; + 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); @@ -1061,6 +1015,8 @@ public ApiResponse< string > ExportPayoutRefundsWithHttpInfo (string appId, int? 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 @@ -1078,53 +1034,57 @@ public ApiResponse< string > ExportPayoutRefundsWithHttpInfo (string appId, int? if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("ExportPayoutRefunds", localVarResponse); + Exception exception = ExceptionFactory("GetPayoutReport3RefundedOrders", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + (RestApiPaginationResultPayoutReport3RefundedOrder) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPayoutReport3RefundedOrder))); } /// - /// Export a list of payout's refunds as CSV + /// /// /// Thrown when fails to make API call /// /// /// /// (optional) - /// Task of string - public async System.Threading.Tasks.Task ExportPayoutRefundsAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// (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 ExportPayoutRefundsAsyncWithHttpInfo(appId, bankAccountId, payoutId, storeIds); + ApiResponse localVarResponse = await GetPayoutReport3RefundedOrdersAsyncWithHttpInfo(appId, bankAccountId, payoutId, storeIds, page, limit); return localVarResponse.Data; } /// - /// Export a list of payout's refunds as CSV + /// /// /// Thrown when fails to make API call /// /// /// /// (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> ExportPayoutRefundsAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// (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 PayoutsExportApi->ExportPayoutRefunds"); + 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 PayoutsExportApi->ExportPayoutRefunds"); + 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 PayoutsExportApi->ExportPayoutRefunds"); + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3RefundedOrders"); - var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/refunds/export"; + 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); @@ -1152,6 +1112,8 @@ public async System.Threading.Tasks.Task> ExportPayoutRefund 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 @@ -1169,52 +1131,52 @@ public async System.Threading.Tasks.Task> ExportPayoutRefund if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("ExportPayoutRefunds", localVarResponse); + Exception exception = ExceptionFactory("GetPayoutReport3RefundedOrders", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + (RestApiPaginationResultPayoutReport3RefundedOrder) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultPayoutReport3RefundedOrder))); } /// - /// Export payout's details as CSV + /// /// /// Thrown when fails to make API call /// /// /// - /// (optional) - /// string - public string ExportPayoutStores (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// (optional) + /// RestApiResultPayoutReport3StorePayouts + public RestApiResultPayoutReport3StorePayouts GetPayoutReport3Stores (string appId, int? bankAccountId, int? payoutId, List stores = null) { - ApiResponse localVarResponse = ExportPayoutStoresWithHttpInfo(appId, bankAccountId, payoutId, storeIds); + ApiResponse localVarResponse = GetPayoutReport3StoresWithHttpInfo(appId, bankAccountId, payoutId, stores); return localVarResponse.Data; } /// - /// Export payout's details as CSV + /// /// /// Thrown when fails to make API call /// /// /// - /// (optional) - /// ApiResponse of string - public ApiResponse< string > ExportPayoutStoresWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// (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 PayoutsExportApi->ExportPayoutStores"); + 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 PayoutsExportApi->ExportPayoutStores"); + 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 PayoutsExportApi->ExportPayoutStores"); + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3Stores"); - var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/export"; + 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); @@ -1241,7 +1203,7 @@ public ApiResponse< string > ExportPayoutStoresWithHttpInfo (string appId, int? 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 (stores != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "stores", stores)); // query parameter // authentication (oauth2) required // oauth required @@ -1259,53 +1221,53 @@ public ApiResponse< string > ExportPayoutStoresWithHttpInfo (string appId, int? if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("ExportPayoutStores", localVarResponse); + Exception exception = ExceptionFactory("GetPayoutReport3Stores", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + (RestApiResultPayoutReport3StorePayouts) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3StorePayouts))); } /// - /// Export payout's details as CSV + /// /// /// Thrown when fails to make API call /// /// /// - /// (optional) - /// Task of string - public async System.Threading.Tasks.Task ExportPayoutStoresAsync (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// (optional) + /// Task of RestApiResultPayoutReport3StorePayouts + public async System.Threading.Tasks.Task GetPayoutReport3StoresAsync (string appId, int? bankAccountId, int? payoutId, List stores = null) { - ApiResponse localVarResponse = await ExportPayoutStoresAsyncWithHttpInfo(appId, bankAccountId, payoutId, storeIds); + ApiResponse localVarResponse = await GetPayoutReport3StoresAsyncWithHttpInfo(appId, bankAccountId, payoutId, stores); return localVarResponse.Data; } /// - /// Export payout's details as CSV + /// /// /// Thrown when fails to make API call /// /// /// - /// (optional) - /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> ExportPayoutStoresAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, List storeIds = null) + /// (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 PayoutsExportApi->ExportPayoutStores"); + 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 PayoutsExportApi->ExportPayoutStores"); + 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 PayoutsExportApi->ExportPayoutStores"); + throw new ApiException(400, "Missing required parameter 'payoutId' when calling PayoutReportsApi->GetPayoutReport3Stores"); - var localVarPath = "./api/v1.0/{appId}/bankaccounts/{bankAccountId}/payouts/{payoutId}/export"; + 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); @@ -1332,182 +1294,7 @@ public async System.Threading.Tasks.Task> ExportPayoutStores 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("ExportPayoutStores", 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))); - } - - /// - /// Export payouts as CSV - /// - /// 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) - /// string - public string ExportPayouts (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) - { - ApiResponse localVarResponse = ExportPayoutsWithHttpInfo(appId, startDate, endDate, payoutRequestIdsBankAccountIds, payoutRequestIdsStates); - return localVarResponse.Data; - } - - /// - /// Export payouts as CSV - /// - /// 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 string - public ApiResponse< string > ExportPayoutsWithHttpInfo (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 PayoutsExportApi->ExportPayouts"); - - var localVarPath = "./api/v1.0/{appId}/payouts/export"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.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("ExportPayouts", 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))); - } - - /// - /// Export payouts as CSV - /// - /// 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 string - public async System.Threading.Tasks.Task ExportPayoutsAsync (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null) - { - ApiResponse localVarResponse = await ExportPayoutsAsyncWithHttpInfo(appId, startDate, endDate, payoutRequestIdsBankAccountIds, payoutRequestIdsStates); - return localVarResponse.Data; - - } - - /// - /// Export payouts as CSV - /// - /// 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 (string) - public async System.Threading.Tasks.Task> ExportPayoutsAsyncWithHttpInfo (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 PayoutsExportApi->ExportPayouts"); - - var localVarPath = "./api/v1.0/{appId}/payouts/export"; - var localVarPathParams = new Dictionary(); - var localVarQueryParams = new List>(); - var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); - var localVarFormParams = new Dictionary(); - var localVarFileParams = new Dictionary(); - Object localVarPostBody = null; - - // to determine the Content-Type header - String[] localVarHttpContentTypes = new String[] { - }; - String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml" - }; - String localVarHttpHeaderAccept = this.Configuration.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 + if (stores != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "stores", stores)); // query parameter // authentication (oauth2) required // oauth required @@ -1525,13 +1312,13 @@ public async System.Threading.Tasks.Task> ExportPayoutsAsync if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("ExportPayouts", localVarResponse); + Exception exception = ExceptionFactory("GetPayoutReport3Stores", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + (RestApiResultPayoutReport3StorePayouts) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultPayoutReport3StorePayouts))); } } diff --git a/src/Flipdish/Api/PayoutsApi.cs b/src/Flipdish/Api/PayoutsApi.cs index e34d27a0..b0a69afd 100644 --- a/src/Flipdish/Api/PayoutsApi.cs +++ b/src/Flipdish/Api/PayoutsApi.cs @@ -25,7 +25,7 @@ public interface IPayoutsApi : IApiAccessor { #region Synchronous Operations /// - /// Get Payout details broken down by Store + /// /// /// /// @@ -38,7 +38,7 @@ public interface IPayoutsApi : IApiAccessor PayoutDetail GetPayout (string appId, int? bankAccountId, int? payoutId); /// - /// Get Payout details broken down by Store + /// /// /// /// @@ -50,7 +50,7 @@ public interface IPayoutsApi : IApiAccessor /// ApiResponse of PayoutDetail ApiResponse GetPayoutWithHttpInfo (string appId, int? bankAccountId, int? payoutId); /// - /// Get list of payout's chargebacks + /// /// /// /// @@ -66,7 +66,7 @@ public interface IPayoutsApi : IApiAccessor RestApiPaginationResultPayoutChargeback GetPayoutChargebacks (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout's chargebacks + /// /// /// /// @@ -81,7 +81,7 @@ public interface IPayoutsApi : IApiAccessor /// ApiResponse of RestApiPaginationResultPayoutChargeback ApiResponse GetPayoutChargebacksWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout's orders + /// /// /// /// @@ -97,7 +97,7 @@ public interface IPayoutsApi : IApiAccessor RestApiPaginationResultPayoutOrder GetPayoutOrders (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout's orders + /// /// /// /// @@ -112,7 +112,7 @@ public interface IPayoutsApi : IApiAccessor /// ApiResponse of RestApiPaginationResultPayoutOrder ApiResponse GetPayoutOrdersWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout's other charges + /// /// /// /// @@ -128,7 +128,7 @@ public interface IPayoutsApi : IApiAccessor RestApiPaginationResultPayoutOtherCharge GetPayoutOtherCharges (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout's other charges + /// /// /// /// @@ -143,7 +143,7 @@ public interface IPayoutsApi : IApiAccessor /// ApiResponse of RestApiPaginationResultPayoutOtherCharge ApiResponse GetPayoutOtherChargesWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout's refunds + /// /// /// /// @@ -159,7 +159,7 @@ public interface IPayoutsApi : IApiAccessor RestApiPaginationResultPayoutRefund GetPayoutRefunds (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout's refunds + /// /// /// /// @@ -174,10 +174,10 @@ public interface IPayoutsApi : IApiAccessor /// ApiResponse of RestApiPaginationResultPayoutRefund ApiResponse GetPayoutRefundsWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout summaries + /// /// /// - /// BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -189,10 +189,10 @@ public interface IPayoutsApi : IApiAccessor RestApiArrayResultPayoutSummary GetPayoutSummaries (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); /// - /// Get list of payout summaries + /// /// /// - /// BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -203,10 +203,10 @@ public interface IPayoutsApi : IApiAccessor /// ApiResponse of RestApiArrayResultPayoutSummary ApiResponse GetPayoutSummariesWithHttpInfo (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); /// - /// Get list of payouts + /// /// /// - /// BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -220,10 +220,10 @@ public interface IPayoutsApi : IApiAccessor RestApiPaginationResultPayout GetPayouts (string appId, DateTime? startDate = null, DateTime? endDate = null, int? page = null, int? limit = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); /// - /// Get list of payouts + /// /// /// - /// BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -238,7 +238,7 @@ public interface IPayoutsApi : IApiAccessor #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get Payout details broken down by Store + /// /// /// /// @@ -251,7 +251,7 @@ public interface IPayoutsApi : IApiAccessor System.Threading.Tasks.Task GetPayoutAsync (string appId, int? bankAccountId, int? payoutId); /// - /// Get Payout details broken down by Store + /// /// /// /// @@ -263,7 +263,7 @@ public interface IPayoutsApi : IApiAccessor /// Task of ApiResponse (PayoutDetail) System.Threading.Tasks.Task> GetPayoutAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId); /// - /// Get list of payout's chargebacks + /// /// /// /// @@ -279,7 +279,7 @@ public interface IPayoutsApi : IApiAccessor System.Threading.Tasks.Task GetPayoutChargebacksAsync (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout's chargebacks + /// /// /// /// @@ -294,7 +294,7 @@ public interface IPayoutsApi : IApiAccessor /// Task of ApiResponse (RestApiPaginationResultPayoutChargeback) System.Threading.Tasks.Task> GetPayoutChargebacksAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout's orders + /// /// /// /// @@ -310,7 +310,7 @@ public interface IPayoutsApi : IApiAccessor System.Threading.Tasks.Task GetPayoutOrdersAsync (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout's orders + /// /// /// /// @@ -325,7 +325,7 @@ public interface IPayoutsApi : IApiAccessor /// Task of ApiResponse (RestApiPaginationResultPayoutOrder) System.Threading.Tasks.Task> GetPayoutOrdersAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout's other charges + /// /// /// /// @@ -341,7 +341,7 @@ public interface IPayoutsApi : IApiAccessor System.Threading.Tasks.Task GetPayoutOtherChargesAsync (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout's other charges + /// /// /// /// @@ -356,7 +356,7 @@ public interface IPayoutsApi : IApiAccessor /// Task of ApiResponse (RestApiPaginationResultPayoutOtherCharge) System.Threading.Tasks.Task> GetPayoutOtherChargesAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout's refunds + /// /// /// /// @@ -372,7 +372,7 @@ public interface IPayoutsApi : IApiAccessor System.Threading.Tasks.Task GetPayoutRefundsAsync (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout's refunds + /// /// /// /// @@ -387,10 +387,10 @@ public interface IPayoutsApi : IApiAccessor /// Task of ApiResponse (RestApiPaginationResultPayoutRefund) System.Threading.Tasks.Task> GetPayoutRefundsAsyncWithHttpInfo (string appId, int? bankAccountId, int? payoutId, int? page = null, int? limit = null, List storeIds = null); /// - /// Get list of payout summaries + /// /// /// - /// BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -402,10 +402,10 @@ public interface IPayoutsApi : IApiAccessor System.Threading.Tasks.Task GetPayoutSummariesAsync (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); /// - /// Get list of payout summaries + /// /// /// - /// BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -416,10 +416,10 @@ public interface IPayoutsApi : IApiAccessor /// Task of ApiResponse (RestApiArrayResultPayoutSummary) System.Threading.Tasks.Task> GetPayoutSummariesAsyncWithHttpInfo (string appId, DateTime? startDate = null, DateTime? endDate = null, List payoutRequestIdsBankAccountIds = null, List payoutRequestIdsStates = null); /// - /// Get list of payouts + /// /// /// - /// BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -433,10 +433,10 @@ public interface IPayoutsApi : IApiAccessor 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); /// - /// Get list of payouts + /// /// /// - /// BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -549,7 +549,7 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get Payout details broken down by Store + /// /// /// Thrown when fails to make API call /// @@ -563,7 +563,7 @@ public PayoutDetail GetPayout (string appId, int? bankAccountId, int? payoutId) } /// - /// Get Payout details broken down by Store + /// /// /// Thrown when fails to make API call /// @@ -636,7 +636,7 @@ public ApiResponse< PayoutDetail > GetPayoutWithHttpInfo (string appId, int? ban } /// - /// Get Payout details broken down by Store + /// /// /// Thrown when fails to make API call /// @@ -651,7 +651,7 @@ public async System.Threading.Tasks.Task GetPayoutAsync (string ap } /// - /// Get Payout details broken down by Store + /// /// /// Thrown when fails to make API call /// @@ -724,7 +724,7 @@ public async System.Threading.Tasks.Task> GetPayoutAsy } /// - /// Get list of payout's chargebacks + /// /// /// Thrown when fails to make API call /// @@ -741,7 +741,7 @@ public RestApiPaginationResultPayoutChargeback GetPayoutChargebacks (string appI } /// - /// Get list of payout's chargebacks + /// /// /// Thrown when fails to make API call /// @@ -820,7 +820,7 @@ public ApiResponse< RestApiPaginationResultPayoutChargeback > GetPayoutChargebac } /// - /// Get list of payout's chargebacks + /// /// /// Thrown when fails to make API call /// @@ -838,7 +838,7 @@ public async System.Threading.Tasks.Task - /// Get list of payout's chargebacks + /// /// /// Thrown when fails to make API call /// @@ -917,7 +917,7 @@ public async System.Threading.Tasks.Task - /// Get list of payout's orders + /// /// /// Thrown when fails to make API call /// @@ -934,7 +934,7 @@ public RestApiPaginationResultPayoutOrder GetPayoutOrders (string appId, int? ba } /// - /// Get list of payout's orders + /// /// /// Thrown when fails to make API call /// @@ -1013,7 +1013,7 @@ public ApiResponse< RestApiPaginationResultPayoutOrder > GetPayoutOrdersWithHttp } /// - /// Get list of payout's orders + /// /// /// Thrown when fails to make API call /// @@ -1031,7 +1031,7 @@ public async System.Threading.Tasks.Task Get } /// - /// Get list of payout's orders + /// /// /// Thrown when fails to make API call /// @@ -1110,7 +1110,7 @@ public async System.Threading.Tasks.Task - /// Get list of payout's other charges + /// /// /// Thrown when fails to make API call /// @@ -1127,7 +1127,7 @@ public RestApiPaginationResultPayoutOtherCharge GetPayoutOtherCharges (string ap } /// - /// Get list of payout's other charges + /// /// /// Thrown when fails to make API call /// @@ -1206,7 +1206,7 @@ public ApiResponse< RestApiPaginationResultPayoutOtherCharge > GetPayoutOtherCha } /// - /// Get list of payout's other charges + /// /// /// Thrown when fails to make API call /// @@ -1224,7 +1224,7 @@ public async System.Threading.Tasks.Task - /// Get list of payout's other charges + /// /// /// Thrown when fails to make API call /// @@ -1303,7 +1303,7 @@ public async System.Threading.Tasks.Task - /// Get list of payout's refunds + /// /// /// Thrown when fails to make API call /// @@ -1320,7 +1320,7 @@ public RestApiPaginationResultPayoutRefund GetPayoutRefunds (string appId, int? } /// - /// Get list of payout's refunds + /// /// /// Thrown when fails to make API call /// @@ -1399,7 +1399,7 @@ public ApiResponse< RestApiPaginationResultPayoutRefund > GetPayoutRefundsWithHt } /// - /// Get list of payout's refunds + /// /// /// Thrown when fails to make API call /// @@ -1417,7 +1417,7 @@ public async System.Threading.Tasks.Task Ge } /// - /// Get list of payout's refunds + /// /// /// Thrown when fails to make API call /// @@ -1496,7 +1496,7 @@ public async System.Threading.Tasks.Task - /// Get list of payout summaries BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -1512,7 +1512,7 @@ public RestApiArrayResultPayoutSummary GetPayoutSummaries (string appId, DateTim } /// - /// Get list of payout summaries BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -1583,7 +1583,7 @@ public ApiResponse< RestApiArrayResultPayoutSummary > GetPayoutSummariesWithHttp } /// - /// Get list of payout summaries BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -1600,7 +1600,7 @@ public async System.Threading.Tasks.Task GetPay } /// - /// Get list of payout summaries BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -1671,7 +1671,7 @@ public async System.Threading.Tasks.Task - /// Get list of payouts BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -1689,7 +1689,7 @@ public RestApiPaginationResultPayout GetPayouts (string appId, DateTime? startDa } /// - /// Get list of payouts BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -1764,7 +1764,7 @@ public ApiResponse< RestApiPaginationResultPayout > GetPayoutsWithHttpInfo (stri } /// - /// Get list of payouts BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// @@ -1783,7 +1783,7 @@ public async System.Threading.Tasks.Task GetPayou } /// - /// Get list of payouts BETA - this endpoint is under development, do not use it in your production system + /// /// /// Thrown when fails to make API call /// diff --git a/src/Flipdish/Api/ProcessingFeeConfigsApi.cs b/src/Flipdish/Api/ProcessingFeeConfigsApi.cs index 1ea04144..6d027817 100644 --- a/src/Flipdish/Api/ProcessingFeeConfigsApi.cs +++ b/src/Flipdish/Api/ProcessingFeeConfigsApi.cs @@ -25,47 +25,47 @@ public interface IProcessingFeeConfigsApi : IApiAccessor { #region Synchronous Operations /// - /// Get processing fee configs by store identifiers + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifiers + /// /// RestApiArrayResultProcessingFeeConfig RestApiArrayResultProcessingFeeConfig GetProcessingFeeConfigsByStoreIds (List storeIds); /// - /// Get processing fee configs by store identifiers + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifiers + /// /// ApiResponse of RestApiArrayResultProcessingFeeConfig ApiResponse GetProcessingFeeConfigsByStoreIdsWithHttpInfo (List storeIds); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get processing fee configs by store identifiers + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifiers + /// /// Task of RestApiArrayResultProcessingFeeConfig System.Threading.Tasks.Task GetProcessingFeeConfigsByStoreIdsAsync (List storeIds); /// - /// Get processing fee configs by store identifiers + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifiers + /// /// Task of ApiResponse (RestApiArrayResultProcessingFeeConfig) System.Threading.Tasks.Task> GetProcessingFeeConfigsByStoreIdsAsyncWithHttpInfo (List storeIds); #endregion Asynchronous Operations @@ -169,10 +169,10 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get processing fee configs by store identifiers + /// /// /// Thrown when fails to make API call - /// Store identifiers + /// /// RestApiArrayResultProcessingFeeConfig public RestApiArrayResultProcessingFeeConfig GetProcessingFeeConfigsByStoreIds (List storeIds) { @@ -181,10 +181,10 @@ public RestApiArrayResultProcessingFeeConfig GetProcessingFeeConfigsByStoreIds ( } /// - /// Get processing fee configs by store identifiers + /// /// /// Thrown when fails to make API call - /// Store identifiers + /// /// ApiResponse of RestApiArrayResultProcessingFeeConfig public ApiResponse< RestApiArrayResultProcessingFeeConfig > GetProcessingFeeConfigsByStoreIdsWithHttpInfo (List storeIds) { @@ -244,10 +244,10 @@ public ApiResponse< RestApiArrayResultProcessingFeeConfig > GetProcessingFeeConf } /// - /// Get processing fee configs by store identifiers + /// /// /// Thrown when fails to make API call - /// Store identifiers + /// /// Task of RestApiArrayResultProcessingFeeConfig public async System.Threading.Tasks.Task GetProcessingFeeConfigsByStoreIdsAsync (List storeIds) { @@ -257,10 +257,10 @@ public async System.Threading.Tasks.Task } /// - /// Get processing fee configs by store identifiers + /// /// /// Thrown when fails to make API call - /// Store identifiers + /// /// Task of ApiResponse (RestApiArrayResultProcessingFeeConfig) public async System.Threading.Tasks.Task> GetProcessingFeeConfigsByStoreIdsAsyncWithHttpInfo (List storeIds) { diff --git a/src/Flipdish/Api/PushNotificationsApi.cs b/src/Flipdish/Api/PushNotificationsApi.cs index 9931b7ac..9019195e 100644 --- a/src/Flipdish/Api/PushNotificationsApi.cs +++ b/src/Flipdish/Api/PushNotificationsApi.cs @@ -25,30 +25,30 @@ public interface IPushNotificationsApi : IApiAccessor { #region Synchronous Operations /// - /// [PRIVATE] Push notification to cutomers + /// /// /// /// /// /// Thrown when fails to make API call /// - /// ID of Scheduled push notifiaction to delete + /// /// void DeletePushNotification (string appId, int? scheduledPushNotificationId); /// - /// [PRIVATE] Push notification to cutomers + /// /// /// /// /// /// Thrown when fails to make API call /// - /// ID of Scheduled push notifiaction to delete + /// /// ApiResponse of Object(void) ApiResponse DeletePushNotificationWithHttpInfo (string appId, int? scheduledPushNotificationId); /// - /// [PRIVATE] Push notification to cutomers + /// /// /// /// @@ -61,7 +61,7 @@ public interface IPushNotificationsApi : IApiAccessor RestApiPaginationResultPushNotificationResponse GetPushNotifications (string appId, int? page = null, int? limit = null); /// - /// [PRIVATE] Push notification to cutomers + /// /// /// /// @@ -73,80 +73,80 @@ public interface IPushNotificationsApi : IApiAccessor /// ApiResponse of RestApiPaginationResultPushNotificationResponse ApiResponse GetPushNotificationsWithHttpInfo (string appId, int? page = null, int? limit = null); /// - /// [PRIVATE] Push notification to cutomers + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification to send + /// + /// /// RestApiResultPushNotificationResponse RestApiResultPushNotificationResponse SchedulePushNotification (string appId, PushNotificationRequest notification); /// - /// [PRIVATE] Push notification to cutomers + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification to send + /// + /// /// ApiResponse of RestApiResultPushNotificationResponse ApiResponse SchedulePushNotificationWithHttpInfo (string appId, PushNotificationRequest notification); /// - /// [PRIVATE] Update the push notification + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification Id - /// Notification to send + /// + /// + /// /// RestApiResultPushNotificationResponse RestApiResultPushNotificationResponse UpdatePushNotification (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification); /// - /// [PRIVATE] Update the push notification + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification Id - /// Notification to send + /// + /// + /// /// ApiResponse of RestApiResultPushNotificationResponse ApiResponse UpdatePushNotificationWithHttpInfo (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification); #endregion Synchronous Operations #region Asynchronous Operations /// - /// [PRIVATE] Push notification to cutomers + /// /// /// /// /// /// Thrown when fails to make API call /// - /// ID of Scheduled push notifiaction to delete + /// /// Task of void System.Threading.Tasks.Task DeletePushNotificationAsync (string appId, int? scheduledPushNotificationId); /// - /// [PRIVATE] Push notification to cutomers + /// /// /// /// /// /// Thrown when fails to make API call /// - /// ID of Scheduled push notifiaction to delete + /// /// Task of ApiResponse System.Threading.Tasks.Task> DeletePushNotificationAsyncWithHttpInfo (string appId, int? scheduledPushNotificationId); /// - /// [PRIVATE] Push notification to cutomers + /// /// /// /// @@ -159,7 +159,7 @@ public interface IPushNotificationsApi : IApiAccessor System.Threading.Tasks.Task GetPushNotificationsAsync (string appId, int? page = null, int? limit = null); /// - /// [PRIVATE] Push notification to cutomers + /// /// /// /// @@ -171,51 +171,51 @@ public interface IPushNotificationsApi : IApiAccessor /// Task of ApiResponse (RestApiPaginationResultPushNotificationResponse) System.Threading.Tasks.Task> GetPushNotificationsAsyncWithHttpInfo (string appId, int? page = null, int? limit = null); /// - /// [PRIVATE] Push notification to cutomers + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification to send + /// + /// /// Task of RestApiResultPushNotificationResponse System.Threading.Tasks.Task SchedulePushNotificationAsync (string appId, PushNotificationRequest notification); /// - /// [PRIVATE] Push notification to cutomers + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification to send + /// + /// /// Task of ApiResponse (RestApiResultPushNotificationResponse) System.Threading.Tasks.Task> SchedulePushNotificationAsyncWithHttpInfo (string appId, PushNotificationRequest notification); /// - /// [PRIVATE] Update the push notification + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification Id - /// Notification to send + /// + /// + /// /// Task of RestApiResultPushNotificationResponse System.Threading.Tasks.Task UpdatePushNotificationAsync (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification); /// - /// [PRIVATE] Update the push notification + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification Id - /// Notification to send + /// + /// + /// /// Task of ApiResponse (RestApiResultPushNotificationResponse) System.Threading.Tasks.Task> UpdatePushNotificationAsyncWithHttpInfo (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification); #endregion Asynchronous Operations @@ -319,11 +319,11 @@ public void AddDefaultHeader(string key, string value) } /// - /// [PRIVATE] Push notification to cutomers + /// /// /// Thrown when fails to make API call /// - /// ID of Scheduled push notifiaction to delete + /// /// public void DeletePushNotification (string appId, int? scheduledPushNotificationId) { @@ -331,11 +331,11 @@ public void DeletePushNotification (string appId, int? scheduledPushNotification } /// - /// [PRIVATE] Push notification to cutomers + /// /// /// Thrown when fails to make API call /// - /// ID of Scheduled push notifiaction to delete + /// /// ApiResponse of Object(void) public ApiResponse DeletePushNotificationWithHttpInfo (string appId, int? scheduledPushNotificationId) { @@ -399,11 +399,11 @@ public ApiResponse DeletePushNotificationWithHttpInfo (string appId, int } /// - /// [PRIVATE] Push notification to cutomers + /// /// /// Thrown when fails to make API call /// - /// ID of Scheduled push notifiaction to delete + /// /// Task of void public async System.Threading.Tasks.Task DeletePushNotificationAsync (string appId, int? scheduledPushNotificationId) { @@ -412,11 +412,11 @@ public async System.Threading.Tasks.Task DeletePushNotificationAsync (string app } /// - /// [PRIVATE] Push notification to cutomers + /// /// /// Thrown when fails to make API call /// - /// ID of Scheduled push notifiaction to delete + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> DeletePushNotificationAsyncWithHttpInfo (string appId, int? scheduledPushNotificationId) { @@ -480,7 +480,7 @@ public async System.Threading.Tasks.Task> DeletePushNotifica } /// - /// [PRIVATE] Push notification to cutomers + /// /// /// Thrown when fails to make API call /// @@ -494,7 +494,7 @@ public RestApiPaginationResultPushNotificationResponse GetPushNotifications (str } /// - /// [PRIVATE] Push notification to cutomers + /// /// /// Thrown when fails to make API call /// @@ -561,7 +561,7 @@ public ApiResponse< RestApiPaginationResultPushNotificationResponse > GetPushNot } /// - /// [PRIVATE] Push notification to cutomers + /// /// /// Thrown when fails to make API call /// @@ -576,7 +576,7 @@ public async System.Threading.Tasks.Task - /// [PRIVATE] Push notification to cutomers + /// /// /// Thrown when fails to make API call /// @@ -643,11 +643,11 @@ public async System.Threading.Tasks.Task - /// [PRIVATE] Push notification to cutomers + /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification to send + /// + /// /// RestApiResultPushNotificationResponse public RestApiResultPushNotificationResponse SchedulePushNotification (string appId, PushNotificationRequest notification) { @@ -656,11 +656,11 @@ public RestApiResultPushNotificationResponse SchedulePushNotification (string ap } /// - /// [PRIVATE] Push notification to cutomers + /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification to send + /// + /// /// ApiResponse of RestApiResultPushNotificationResponse public ApiResponse< RestApiResultPushNotificationResponse > SchedulePushNotificationWithHttpInfo (string appId, PushNotificationRequest notification) { @@ -736,11 +736,11 @@ public ApiResponse< RestApiResultPushNotificationResponse > SchedulePushNotifica } /// - /// [PRIVATE] Push notification to cutomers + /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification to send + /// + /// /// Task of RestApiResultPushNotificationResponse public async System.Threading.Tasks.Task SchedulePushNotificationAsync (string appId, PushNotificationRequest notification) { @@ -750,11 +750,11 @@ public async System.Threading.Tasks.Task } /// - /// [PRIVATE] Push notification to cutomers + /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification to send + /// + /// /// Task of ApiResponse (RestApiResultPushNotificationResponse) public async System.Threading.Tasks.Task> SchedulePushNotificationAsyncWithHttpInfo (string appId, PushNotificationRequest notification) { @@ -830,12 +830,12 @@ public async System.Threading.Tasks.Task - /// [PRIVATE] Update the push notification + /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification Id - /// Notification to send + /// + /// + /// /// RestApiResultPushNotificationResponse public RestApiResultPushNotificationResponse UpdatePushNotification (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification) { @@ -844,12 +844,12 @@ public RestApiResultPushNotificationResponse UpdatePushNotification (string appI } /// - /// [PRIVATE] Update the push notification + /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification Id - /// Notification to send + /// + /// + /// /// ApiResponse of RestApiResultPushNotificationResponse public ApiResponse< RestApiResultPushNotificationResponse > UpdatePushNotificationWithHttpInfo (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification) { @@ -929,12 +929,12 @@ public ApiResponse< RestApiResultPushNotificationResponse > UpdatePushNotificati } /// - /// [PRIVATE] Update the push notification + /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification Id - /// Notification to send + /// + /// + /// /// Task of RestApiResultPushNotificationResponse public async System.Threading.Tasks.Task UpdatePushNotificationAsync (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification) { @@ -944,12 +944,12 @@ public async System.Threading.Tasks.Task } /// - /// [PRIVATE] Update the push notification + /// /// /// Thrown when fails to make API call - /// Application Id - /// Notification Id - /// Notification to send + /// + /// + /// /// Task of ApiResponse (RestApiResultPushNotificationResponse) public async System.Threading.Tasks.Task> UpdatePushNotificationAsyncWithHttpInfo (string appId, int? scheduledPushNotificationId, PushNotificationRequest notification) { 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/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 index 4c63359e..f0c1df97 100644 --- a/src/Flipdish/Api/StoreGroupsApi.cs +++ b/src/Flipdish/Api/StoreGroupsApi.cs @@ -25,293 +25,389 @@ public interface IStoreGroupsApi : IApiAccessor { #region Synchronous Operations /// - /// Creates a Store Group It will be attached to an existing App + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store group definition + /// + /// + /// + /// + 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); /// - /// Creates a Store Group It will be attached to an existing App + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store group definition + /// + /// /// ApiResponse of RestApiResultStoreGroup ApiResponse CreateStoreGroupWithHttpInfo (string appNameId, StoreGroupBase storeGroup); /// - /// Returns a Store Groups + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// RestApiResultStoreGroup RestApiResultStoreGroup GetStoreGroup (int? storeGroupId); /// - /// Returns a Store Groups + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// ApiResponse of RestApiResultStoreGroup ApiResponse GetStoreGroupWithHttpInfo (int? storeGroupId); /// - /// Returns a paginated list of Store Groups + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultStoreGroup RestApiPaginationResultStoreGroup GetStoreGroups (string appNameId, string searchQuery = null, int? page = null, int? limit = null); /// - /// Returns a paginated list of Store Groups + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiPaginationResultStoreGroup ApiResponse GetStoreGroupsWithHttpInfo (string appNameId, string searchQuery = null, int? page = null, int? limit = null); /// - /// [PRIVATE API] Returns a paginated list of Extended Store Groups + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// (optional) /// RestApiPaginationResultStoreGroupExtended RestApiPaginationResultStoreGroupExtended GetStoreGroupsExtended (string appNameId, string searchQuery = null, int? page = null, int? limit = null, int? groupingRadius = null); /// - /// [PRIVATE API] Returns a paginated list of Extended Store Groups + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// (optional) /// ApiResponse of RestApiPaginationResultStoreGroupExtended ApiResponse GetStoreGroupsExtendedWithHttpInfo (string appNameId, string searchQuery = null, int? page = null, int? limit = null, int? groupingRadius = null); /// - /// Deletes a Store Group Can only remove a store group if there is no stores attached to the group + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// void RemoveStoreGroup (int? storeGroupId); /// - /// Deletes a Store Group Can only remove a store group if there is no stores attached to the group + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// ApiResponse of Object(void) ApiResponse RemoveStoreGroupWithHttpInfo (int? storeGroupId); /// - /// Updates Store Group + /// + /// + /// + /// + /// + /// 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 - /// Store Group Id - /// Store Group Delta + /// + /// /// RestApiResultStoreGroupBase RestApiResultStoreGroupBase UpdateStoreGroup (int? storeGroupId, StoreGroupBase storeGroup); /// - /// Updates Store Group + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group Id - /// Store Group Delta + /// + /// /// ApiResponse of RestApiResultStoreGroupBase ApiResponse UpdateStoreGroupWithHttpInfo (int? storeGroupId, StoreGroupBase storeGroup); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Creates a Store Group It will be attached to an existing App + /// + /// + /// + /// + /// + /// 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 - /// App Name Id - /// Store group definition + /// + /// + /// + /// 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); /// - /// Creates a Store Group It will be attached to an existing App + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store group definition + /// + /// /// Task of ApiResponse (RestApiResultStoreGroup) System.Threading.Tasks.Task> CreateStoreGroupAsyncWithHttpInfo (string appNameId, StoreGroupBase storeGroup); /// - /// Returns a Store Groups + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// Task of RestApiResultStoreGroup System.Threading.Tasks.Task GetStoreGroupAsync (int? storeGroupId); /// - /// Returns a Store Groups + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// Task of ApiResponse (RestApiResultStoreGroup) System.Threading.Tasks.Task> GetStoreGroupAsyncWithHttpInfo (int? storeGroupId); /// - /// Returns a paginated list of Store Groups + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// Task of RestApiPaginationResultStoreGroup System.Threading.Tasks.Task GetStoreGroupsAsync (string appNameId, string searchQuery = null, int? page = null, int? limit = null); /// - /// Returns a paginated list of Store Groups + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// Task of ApiResponse (RestApiPaginationResultStoreGroup) System.Threading.Tasks.Task> GetStoreGroupsAsyncWithHttpInfo (string appNameId, string searchQuery = null, int? page = null, int? limit = null); /// - /// [PRIVATE API] Returns a paginated list of Extended Store Groups + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (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); /// - /// [PRIVATE API] Returns a paginated list of Extended Store Groups + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (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); /// - /// Deletes a Store Group Can only remove a store group if there is no stores attached to the group + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// Task of void System.Threading.Tasks.Task RemoveStoreGroupAsync (int? storeGroupId); /// - /// Deletes a Store Group Can only remove a store group if there is no stores attached to the group + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// Task of ApiResponse System.Threading.Tasks.Task> RemoveStoreGroupAsyncWithHttpInfo (int? storeGroupId); /// - /// Updates Store Group + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group Id - /// Store Group Delta + /// + /// + /// 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); /// - /// Updates Store Group + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group Id - /// Store Group Delta + /// + /// /// Task of ApiResponse (RestApiResultStoreGroupBase) System.Threading.Tasks.Task> UpdateStoreGroupAsyncWithHttpInfo (int? storeGroupId, StoreGroupBase storeGroup); #endregion Asynchronous Operations @@ -415,11 +511,208 @@ public void AddDefaultHeader(string key, string value) } /// - /// Creates a Store Group It will be attached to an existing App + /// + /// + /// 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 - /// App Name Id - /// Store group definition + /// + /// /// RestApiResultStoreGroup public RestApiResultStoreGroup CreateStoreGroup (string appNameId, StoreGroupBase storeGroup) { @@ -428,11 +721,11 @@ public RestApiResultStoreGroup CreateStoreGroup (string appNameId, StoreGroupBas } /// - /// Creates a Store Group It will be attached to an existing App + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store group definition + /// + /// /// ApiResponse of RestApiResultStoreGroup public ApiResponse< RestApiResultStoreGroup > CreateStoreGroupWithHttpInfo (string appNameId, StoreGroupBase storeGroup) { @@ -508,11 +801,11 @@ public ApiResponse< RestApiResultStoreGroup > CreateStoreGroupWithHttpInfo (stri } /// - /// Creates a Store Group It will be attached to an existing App + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store group definition + /// + /// /// Task of RestApiResultStoreGroup public async System.Threading.Tasks.Task CreateStoreGroupAsync (string appNameId, StoreGroupBase storeGroup) { @@ -522,11 +815,11 @@ public async System.Threading.Tasks.Task CreateStoreGro } /// - /// Creates a Store Group It will be attached to an existing App + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store group definition + /// + /// /// Task of ApiResponse (RestApiResultStoreGroup) public async System.Threading.Tasks.Task> CreateStoreGroupAsyncWithHttpInfo (string appNameId, StoreGroupBase storeGroup) { @@ -602,10 +895,10 @@ public async System.Threading.Tasks.Task> C } /// - /// Returns a Store Groups + /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// RestApiResultStoreGroup public RestApiResultStoreGroup GetStoreGroup (int? storeGroupId) { @@ -614,10 +907,10 @@ public RestApiResultStoreGroup GetStoreGroup (int? storeGroupId) } /// - /// Returns a Store Groups + /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// ApiResponse of RestApiResultStoreGroup public ApiResponse< RestApiResultStoreGroup > GetStoreGroupWithHttpInfo (int? storeGroupId) { @@ -677,10 +970,10 @@ public ApiResponse< RestApiResultStoreGroup > GetStoreGroupWithHttpInfo (int? st } /// - /// Returns a Store Groups + /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// Task of RestApiResultStoreGroup public async System.Threading.Tasks.Task GetStoreGroupAsync (int? storeGroupId) { @@ -690,10 +983,10 @@ public async System.Threading.Tasks.Task GetStoreGroupA } /// - /// Returns a Store Groups + /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// Task of ApiResponse (RestApiResultStoreGroup) public async System.Threading.Tasks.Task> GetStoreGroupAsyncWithHttpInfo (int? storeGroupId) { @@ -753,13 +1046,13 @@ public async System.Threading.Tasks.Task> G } /// - /// Returns a paginated list of Store Groups + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultStoreGroup public RestApiPaginationResultStoreGroup GetStoreGroups (string appNameId, string searchQuery = null, int? page = null, int? limit = null) { @@ -768,13 +1061,13 @@ public RestApiPaginationResultStoreGroup GetStoreGroups (string appNameId, strin } /// - /// Returns a paginated list of Store Groups + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiPaginationResultStoreGroup public ApiResponse< RestApiPaginationResultStoreGroup > GetStoreGroupsWithHttpInfo (string appNameId, string searchQuery = null, int? page = null, int? limit = null) { @@ -837,13 +1130,13 @@ public ApiResponse< RestApiPaginationResultStoreGroup > GetStoreGroupsWithHttpIn } /// - /// Returns a paginated list of Store Groups + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// Task of RestApiPaginationResultStoreGroup public async System.Threading.Tasks.Task GetStoreGroupsAsync (string appNameId, string searchQuery = null, int? page = null, int? limit = null) { @@ -853,13 +1146,13 @@ public async System.Threading.Tasks.Task GetS } /// - /// Returns a paginated list of Store Groups + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (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) { @@ -922,13 +1215,13 @@ public async System.Threading.Tasks.Task - /// [PRIVATE API] Returns a paginated list of Extended Store Groups + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// (optional) /// RestApiPaginationResultStoreGroupExtended public RestApiPaginationResultStoreGroupExtended GetStoreGroupsExtended (string appNameId, string searchQuery = null, int? page = null, int? limit = null, int? groupingRadius = null) @@ -938,13 +1231,13 @@ public RestApiPaginationResultStoreGroupExtended GetStoreGroupsExtended (string } /// - /// [PRIVATE API] Returns a paginated list of Extended Store Groups + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (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) @@ -1009,13 +1302,13 @@ public ApiResponse< RestApiPaginationResultStoreGroupExtended > GetStoreGroupsEx } /// - /// [PRIVATE API] Returns a paginated list of Extended Store Groups + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (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) @@ -1026,13 +1319,13 @@ public async System.Threading.Tasks.Task - /// [PRIVATE API] Returns a paginated list of Extended Store Groups + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (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) @@ -1097,10 +1390,10 @@ public async System.Threading.Tasks.Task - /// Deletes a Store Group Can only remove a store group if there is no stores attached to the group + /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// public void RemoveStoreGroup (int? storeGroupId) { @@ -1108,10 +1401,10 @@ public void RemoveStoreGroup (int? storeGroupId) } /// - /// Deletes a Store Group Can only remove a store group if there is no stores attached to the group + /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// ApiResponse of Object(void) public ApiResponse RemoveStoreGroupWithHttpInfo (int? storeGroupId) { @@ -1171,10 +1464,10 @@ public ApiResponse RemoveStoreGroupWithHttpInfo (int? storeGroupId) } /// - /// Deletes a Store Group Can only remove a store group if there is no stores attached to the group + /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// Task of void public async System.Threading.Tasks.Task RemoveStoreGroupAsync (int? storeGroupId) { @@ -1183,10 +1476,10 @@ public async System.Threading.Tasks.Task RemoveStoreGroupAsync (int? storeGroupI } /// - /// Deletes a Store Group Can only remove a store group if there is no stores attached to the group + /// /// /// Thrown when fails to make API call - /// Store Group Id + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> RemoveStoreGroupAsyncWithHttpInfo (int? storeGroupId) { @@ -1246,11 +1539,196 @@ public async System.Threading.Tasks.Task> RemoveStoreGroupAs } /// - /// Updates Store Group + /// + /// + /// 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 - /// Store Group Id - /// Store Group Delta + /// + /// /// RestApiResultStoreGroupBase public RestApiResultStoreGroupBase UpdateStoreGroup (int? storeGroupId, StoreGroupBase storeGroup) { @@ -1259,11 +1737,11 @@ public RestApiResultStoreGroupBase UpdateStoreGroup (int? storeGroupId, StoreGro } /// - /// Updates Store Group + /// /// /// Thrown when fails to make API call - /// Store Group Id - /// Store Group Delta + /// + /// /// ApiResponse of RestApiResultStoreGroupBase public ApiResponse< RestApiResultStoreGroupBase > UpdateStoreGroupWithHttpInfo (int? storeGroupId, StoreGroupBase storeGroup) { @@ -1339,11 +1817,11 @@ public ApiResponse< RestApiResultStoreGroupBase > UpdateStoreGroupWithHttpInfo ( } /// - /// Updates Store Group + /// /// /// Thrown when fails to make API call - /// Store Group Id - /// Store Group Delta + /// + /// /// Task of RestApiResultStoreGroupBase public async System.Threading.Tasks.Task UpdateStoreGroupAsync (int? storeGroupId, StoreGroupBase storeGroup) { @@ -1353,11 +1831,11 @@ public async System.Threading.Tasks.Task UpdateStor } /// - /// Updates Store Group + /// /// /// Thrown when fails to make API call - /// Store Group Id - /// Store Group Delta + /// + /// /// Task of ApiResponse (RestApiResultStoreGroupBase) public async System.Threading.Tasks.Task> UpdateStoreGroupAsyncWithHttpInfo (int? storeGroupId, StoreGroupBase storeGroup) { diff --git a/src/Flipdish/Api/StoreOrderCapacityApi.cs b/src/Flipdish/Api/StoreOrderCapacityApi.cs index 2f44cc13..27dfcc41 100644 --- a/src/Flipdish/Api/StoreOrderCapacityApi.cs +++ b/src/Flipdish/Api/StoreOrderCapacityApi.cs @@ -25,108 +25,108 @@ public interface IStoreOrderCapacityApi : IApiAccessor { #region Synchronous Operations /// - /// Get store's order capacity configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id - /// Delivery / Pickup + /// + /// + /// /// RestApiResultStoreOrderCapacityConfig RestApiResultStoreOrderCapacityConfig GetStoreOrderCapacity (string appId, int? storeId, string deliveryType); /// - /// Get store's order capacity configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id - /// Delivery / Pickup + /// + /// + /// /// ApiResponse of RestApiResultStoreOrderCapacityConfig ApiResponse GetStoreOrderCapacityWithHttpInfo (string appId, int? storeId, string deliveryType); /// - /// Create or update a store's order capacity configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery / Pickup - /// new order capacity configuration + /// + /// + /// /// /// void UpdateStoreOrderCapacityConfig (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId); /// - /// Create or update a store's order capacity configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery / Pickup - /// new order capacity configuration + /// + /// + /// /// /// ApiResponse of Object(void) ApiResponse UpdateStoreOrderCapacityConfigWithHttpInfo (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get store's order capacity configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id - /// Delivery / Pickup + /// + /// + /// /// Task of RestApiResultStoreOrderCapacityConfig System.Threading.Tasks.Task GetStoreOrderCapacityAsync (string appId, int? storeId, string deliveryType); /// - /// Get store's order capacity configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id - /// Delivery / Pickup + /// + /// + /// /// Task of ApiResponse (RestApiResultStoreOrderCapacityConfig) System.Threading.Tasks.Task> GetStoreOrderCapacityAsyncWithHttpInfo (string appId, int? storeId, string deliveryType); /// - /// Create or update a store's order capacity configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery / Pickup - /// new order capacity configuration + /// + /// + /// /// /// Task of void System.Threading.Tasks.Task UpdateStoreOrderCapacityConfigAsync (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId); /// - /// Create or update a store's order capacity configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery / Pickup - /// new order capacity configuration + /// + /// + /// /// /// Task of ApiResponse System.Threading.Tasks.Task> UpdateStoreOrderCapacityConfigAsyncWithHttpInfo (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId); @@ -231,12 +231,12 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get store's order capacity configuration + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id - /// Delivery / Pickup + /// + /// + /// /// RestApiResultStoreOrderCapacityConfig public RestApiResultStoreOrderCapacityConfig GetStoreOrderCapacity (string appId, int? storeId, string deliveryType) { @@ -245,12 +245,12 @@ public RestApiResultStoreOrderCapacityConfig GetStoreOrderCapacity (string appId } /// - /// Get store's order capacity configuration + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id - /// Delivery / Pickup + /// + /// + /// /// ApiResponse of RestApiResultStoreOrderCapacityConfig public ApiResponse< RestApiResultStoreOrderCapacityConfig > GetStoreOrderCapacityWithHttpInfo (string appId, int? storeId, string deliveryType) { @@ -318,12 +318,12 @@ public ApiResponse< RestApiResultStoreOrderCapacityConfig > GetStoreOrderCapacit } /// - /// Get store's order capacity configuration + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id - /// Delivery / Pickup + /// + /// + /// /// Task of RestApiResultStoreOrderCapacityConfig public async System.Threading.Tasks.Task GetStoreOrderCapacityAsync (string appId, int? storeId, string deliveryType) { @@ -333,12 +333,12 @@ public async System.Threading.Tasks.Task } /// - /// Get store's order capacity configuration + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Id - /// Delivery / Pickup + /// + /// + /// /// Task of ApiResponse (RestApiResultStoreOrderCapacityConfig) public async System.Threading.Tasks.Task> GetStoreOrderCapacityAsyncWithHttpInfo (string appId, int? storeId, string deliveryType) { @@ -406,12 +406,12 @@ public async System.Threading.Tasks.Task - /// Create or update a store's order capacity configuration + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery / Pickup - /// new order capacity configuration + /// + /// + /// /// /// public void UpdateStoreOrderCapacityConfig (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId) @@ -420,12 +420,12 @@ public void UpdateStoreOrderCapacityConfig (int? storeId, string deliveryType, S } /// - /// Create or update a store's order capacity configuration + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery / Pickup - /// new order capacity configuration + /// + /// + /// /// /// ApiResponse of Object(void) public ApiResponse UpdateStoreOrderCapacityConfigWithHttpInfo (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId) @@ -510,12 +510,12 @@ public ApiResponse UpdateStoreOrderCapacityConfigWithHttpInfo (int? stor } /// - /// Create or update a store's order capacity configuration + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery / Pickup - /// new order capacity configuration + /// + /// + /// /// /// Task of void public async System.Threading.Tasks.Task UpdateStoreOrderCapacityConfigAsync (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId) @@ -525,12 +525,12 @@ public async System.Threading.Tasks.Task UpdateStoreOrderCapacityConfigAsync (in } /// - /// Create or update a store's order capacity configuration + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery / Pickup - /// new order capacity configuration + /// + /// + /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateStoreOrderCapacityConfigAsyncWithHttpInfo (int? storeId, string deliveryType, StoreOrderCapacityConfigEditModel newOrderCapacityConfig, string appId) diff --git a/src/Flipdish/Api/StoresApi.cs b/src/Flipdish/Api/StoresApi.cs index df8554bd..a092671a 100644 --- a/src/Flipdish/Api/StoresApi.cs +++ b/src/Flipdish/Api/StoresApi.cs @@ -25,143 +25,170 @@ public interface IStoresApi : IApiAccessor { #region Synchronous Operations /// - /// Archive store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// void ArchiveStore (int? storeId); /// - /// Archive store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// ApiResponse of Object(void) ApiResponse ArchiveStoreWithHttpInfo (int? storeId); /// - /// Assign Menu to Store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Id of Menu to assign to store + /// + /// /// RestApiArrayResultRestApiDefaultResponse RestApiArrayResultRestApiDefaultResponse AssignMenu (int? storeId, int? menuId); /// - /// Assign Menu to Store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Id of Menu to assign to store + /// + /// /// ApiResponse of RestApiArrayResultRestApiDefaultResponse ApiResponse AssignMenuWithHttpInfo (int? storeId, int? menuId); /// - /// Clone store with store clone settings + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Settings for cloning the store + /// + /// /// RestApiResultStore RestApiResultStore CloneStore (int? storeId, StoreCloneSettings settings); /// - /// Clone store with store clone settings + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Settings for cloning the store + /// + /// /// ApiResponse of RestApiResultStore ApiResponse CloneStoreWithHttpInfo (int? storeId, StoreCloneSettings settings); /// - /// Configure Store Service Charge; Idempotent Operation + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Service charge + /// + /// /// RestApiResultServiceCharge RestApiResultServiceCharge ConfigureStoreServiceCharge (int? storeId, ServiceCharge serviceCharge); /// - /// Configure Store Service Charge; Idempotent Operation + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Service charge + /// + /// /// ApiResponse of RestApiResultServiceCharge ApiResponse ConfigureStoreServiceChargeWithHttpInfo (int? storeId, ServiceCharge serviceCharge); /// - /// Create Business Hours Override for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Business Hours Override + /// + /// /// RestApiResultBusinessHoursOverride RestApiResultBusinessHoursOverride CreateBusinessHoursOverrideByStoreId (int? storeId, BusinessHoursOverrideBase businessHoursOverride); /// - /// Create Business Hours Override for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Business Hours Override + /// + /// /// ApiResponse of RestApiResultBusinessHoursOverride ApiResponse CreateBusinessHoursOverrideByStoreIdWithHttpInfo (int? storeId, BusinessHoursOverrideBase businessHoursOverride); /// - /// Create store with Store Group identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store + /// + /// /// RestApiResultStore RestApiResultStore CreateStore (int? storeGroupId, StoreCreateBase store); /// - /// Create store with Store Group identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store + /// + /// /// ApiResponse of RestApiResultStore ApiResponse CreateStoreWithHttpInfo (int? storeGroupId, StoreCreateBase store); /// - /// Delete Business Hours Override for a 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); + /// + /// /// /// /// @@ -173,7 +200,7 @@ public interface IStoresApi : IApiAccessor RestApiArrayResultRestApiDefaultResponse DeleteBusinessHoursOverride (int? storeId, int? businessHoursOverrideId); /// - /// Delete Business Hours Override for a store + /// /// /// /// @@ -184,131 +211,131 @@ public interface IStoresApi : IApiAccessor /// ApiResponse of RestApiArrayResultRestApiDefaultResponse ApiResponse DeleteBusinessHoursOverrideWithHttpInfo (int? storeId, int? businessHoursOverrideId); /// - /// Get Stores Bank Account Id + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// RestApiResultAssignedBankAccount RestApiResultAssignedBankAccount GetBankAccountForStore (int? storeId); /// - /// Get Stores Bank Account Id + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// ApiResponse of RestApiResultAssignedBankAccount ApiResponse GetBankAccountForStoreWithHttpInfo (int? storeId); /// - /// Get Business hours + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type + /// + /// /// RestApiArrayResultBusinessHoursPeriod RestApiArrayResultBusinessHoursPeriod GetBusinessHours (int? storeId, string deliveryType); /// - /// Get Business hours + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type + /// + /// /// ApiResponse of RestApiArrayResultBusinessHoursPeriod ApiResponse GetBusinessHoursWithHttpInfo (int? storeId, string deliveryType); /// - /// Get business hours overrides by store identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Return results that ended after this datetime. Default value is the current datetime. (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultBusinessHoursOverride RestApiPaginationResultBusinessHoursOverride GetBusinessHoursOverrideByStoreId (int? storeId, DateTime? after = null, int? page = null, int? limit = null); /// - /// Get business hours overrides by store identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Return results that ended after this datetime. Default value is the current datetime. (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiPaginationResultBusinessHoursOverride ApiResponse GetBusinessHoursOverrideByStoreIdWithHttpInfo (int? storeId, DateTime? after = null, int? page = null, int? limit = null); /// - /// Get store end of day report + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store identifier (optional) + /// + /// (optional) /// RestApiResultStoreEndOfDayReport RestApiResultStoreEndOfDayReport GetEndOfDayReport (int? storeId, DateTime? date = null); /// - /// Get store end of day report + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store identifier (optional) + /// + /// (optional) /// ApiResponse of RestApiResultStoreEndOfDayReport ApiResponse GetEndOfDayReportWithHttpInfo (int? storeId, DateTime? date = null); /// - /// Get the pre order config for a store, by type + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// RestApiResultPreOrderConfig RestApiResultPreOrderConfig GetPreOrderConfig (int? storeId, string deliveryType); /// - /// Get the pre order config for a store, by type + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// ApiResponse of RestApiResultPreOrderConfig ApiResponse GetPreOrderConfigWithHttpInfo (int? storeId, string deliveryType); /// - /// Get the Preview times of the pre-order configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// Lead Time in Minutes (optional) /// Interval in minutes (optional) /// Max Days to order ahead (optional) @@ -323,14 +350,14 @@ public interface IStoresApi : IApiAccessor 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); /// - /// Get the Preview times of the pre-order configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// Lead Time in Minutes (optional) /// Interval in minutes (optional) /// Max Days to order ahead (optional) @@ -344,598 +371,792 @@ public interface IStoresApi : IApiAccessor /// 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); /// - /// Get processing fee configs by store identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// + /// (optional) /// RestApiArrayResultProcessingFeeConfig RestApiArrayResultProcessingFeeConfig GetProcessingFeeConfigsByStoreId (int? storeId, string appNameId = null); /// - /// Get processing fee configs by store identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// + /// (optional) /// ApiResponse of RestApiArrayResultProcessingFeeConfig ApiResponse GetProcessingFeeConfigsByStoreIdWithHttpInfo (int? storeId, string appNameId = null); /// - /// Get processing fee configs by store identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// (optional) /// RestApiResultProcessingFeeConfig RestApiResultProcessingFeeConfig GetProcessingFeeConfigsByStoreIdAndPaymentAccountType (int? storeId, string paymentAccountType, string appNameId = null); /// - /// Get processing fee configs by store identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// (optional) /// ApiResponse of RestApiResultProcessingFeeConfig ApiResponse GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeWithHttpInfo (int? storeId, string paymentAccountType, string appNameId = null); /// - /// Get store by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// RestApiResultStore RestApiResultStore GetStoreById (int? storeId); /// - /// Get store by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// ApiResponse of RestApiResultStore ApiResponse GetStoreByIdWithHttpInfo (int? storeId); /// - /// Retrieve Store feeConfig + /// + /// + /// + /// + /// + /// 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 - /// Store identifier + /// /// StoreFeeConfig StoreFeeConfig GetStoreFeeConfig (int? storeId); /// - /// Retrieve Store feeConfig + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// ApiResponse of StoreFeeConfig ApiResponse GetStoreFeeConfigWithHttpInfo (int? storeId); /// - /// Get all stores by app name id + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// (optional) + /// (optional) /// (optional) /// (optional) /// RestApiPaginationResultStoreHeader - RestApiPaginationResultStoreHeader GetStoreHeadersByAppId (string appId, string storeNameQuery = null, int? page = null, int? limit = null); + RestApiPaginationResultStoreHeader GetStoreHeadersByAppId (string appId, string storeNameQuery = null, string salesChannelType = null, int? page = null, int? limit = null); /// - /// Get all stores by app name id + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// (optional) + /// (optional) /// (optional) /// (optional) /// ApiResponse of RestApiPaginationResultStoreHeader - ApiResponse GetStoreHeadersByAppIdWithHttpInfo (string appId, string storeNameQuery = null, int? page = null, int? limit = null); + 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); /// - /// Get stores statistics by app name id and storeIds + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Ids + /// + /// /// RestApiArrayResultStoreStatistics RestApiArrayResultStoreStatistics GetStoreNetSales (string appId, List storeId); /// - /// Get stores statistics by app name id and storeIds + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Ids + /// + /// /// ApiResponse of RestApiArrayResultStoreStatistics ApiResponse GetStoreNetSalesWithHttpInfo (string appId, List storeId); /// - /// Retrieve Store Service Charge + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// ServiceCharge ServiceCharge GetStoreServiceCharge (int? storeId); /// - /// Retrieve Store Service Charge + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// ApiResponse of ServiceCharge ApiResponse GetStoreServiceChargeWithHttpInfo (int? storeId); /// - /// Get all stores, excluding archived ones + /// /// /// /// /// /// Thrown when fails to make API call - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) - /// Store Group Id (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultStore RestApiPaginationResultStore GetStores (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null); /// - /// Get all stores, excluding archived ones + /// /// /// /// /// /// Thrown when fails to make API call - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) - /// Store Group Id (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiPaginationResultStore ApiResponse GetStoresWithHttpInfo (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null); /// - /// Get all stores by app name id + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultStore - RestApiPaginationResultStore GetStoresByAppId (string appId, string searchQuery = null, int? page = null, int? limit = null); + RestApiPaginationResultStore GetStoresByAppId (string appId, string searchQuery = null, string salesChannelType = null, bool? excludeUnpublished = null, int? page = null, int? limit = null); /// - /// Get all stores by app name id + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiPaginationResultStore - ApiResponse GetStoresByAppIdWithHttpInfo (string appId, string searchQuery = null, int? page = null, int? limit = null); + ApiResponse GetStoresByAppIdWithHttpInfo (string appId, string searchQuery = null, string salesChannelType = null, bool? excludeUnpublished = null, int? page = null, int? limit = null); /// - /// Get store validation by storeIds + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// - /// Requested page index (optional) - /// Requested page limit (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultStoreValidationConfig RestApiPaginationResultStoreValidationConfig GetStoresByStoreIdWithValidations (List storeId, string appId, int? page = null, int? limit = null); /// - /// Get store validation by storeIds + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// - /// Requested page index (optional) - /// Requested page limit (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiPaginationResultStoreValidationConfig ApiResponse GetStoresByStoreIdWithValidationsWithHttpInfo (List storeId, string appId, int? page = null, int? limit = null); /// - /// Publish store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// void PublishStore (int? storeId); /// - /// Publish store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// ApiResponse of Object(void) ApiResponse PublishStoreWithHttpInfo (int? storeId); /// - /// Set Business hours + /// + /// + /// + /// + /// + /// 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 - /// Store identifier - /// Delivery type - /// Business Hours Period + /// + /// + /// /// RestApiResultBusinessHoursPeriod RestApiResultBusinessHoursPeriod SetBusinessHours (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod); /// - /// Set Business hours + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type - /// Business Hours Period + /// + /// + /// /// ApiResponse of RestApiResultBusinessHoursPeriod ApiResponse SetBusinessHoursWithHttpInfo (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod); /// - /// UPDATE pre order config for a store, by type + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values + /// + /// + /// /// RestApiArrayResultRestApiDefaultResponse RestApiArrayResultRestApiDefaultResponse SetPreOrdeEnabled (int? storeId, string deliveryType, bool? enabled); /// - /// UPDATE pre order config for a store, by type + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values + /// + /// + /// /// ApiResponse of RestApiArrayResultRestApiDefaultResponse ApiResponse SetPreOrdeEnabledWithHttpInfo (int? storeId, string deliveryType, bool? enabled); /// - /// Unpublish store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// - void UnpublishStore (int? storeId); + /// + /// + /// (optional) + /// RestApiResultRestApiDefaultResponse + RestApiResultRestApiDefaultResponse SetStoreCollectionSettings (int? storeId, StoreCollectionSettings settings, bool? inheritFromProperty = null); /// - /// Unpublish store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// ApiResponse of Object(void) - ApiResponse UnpublishStoreWithHttpInfo (int? storeId); + /// + /// + /// (optional) + /// ApiResponse of RestApiResultRestApiDefaultResponse + ApiResponse SetStoreCollectionSettingsWithHttpInfo (int? storeId, StoreCollectionSettings settings, bool? inheritFromProperty = null); /// - /// UPDATE pre order config for a store, by type + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values - /// RestApiArrayResultRestApiDefaultResponse - RestApiArrayResultRestApiDefaultResponse UpdatePreOrderConfig (int? storeId, string deliveryType, PreOrderConfig preOrderConfig); + /// + /// + /// RestApiResultOrderLeadTimes + RestApiResultOrderLeadTimes SetStoreLeadTimes (int? storeId, LeadTime leadTime); /// - /// UPDATE pre order config for a store, by type + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values - /// ApiResponse of RestApiArrayResultRestApiDefaultResponse - ApiResponse UpdatePreOrderConfigWithHttpInfo (int? storeId, string deliveryType, PreOrderConfig preOrderConfig); + /// + /// + /// ApiResponse of RestApiResultOrderLeadTimes + ApiResponse SetStoreLeadTimesWithHttpInfo (int? storeId, LeadTime leadTime); /// - /// Update store by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store - /// RestApiResultStore - RestApiResultStore UpdateStore (int? storeId, StoreBase store); + /// + /// + /// Object + Object StoresSetPropertyId (int? storeId, string propertyId); /// - /// Update store by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store - /// ApiResponse of RestApiResultStore - ApiResponse UpdateStoreWithHttpInfo (int? storeId, StoreBase store); + /// + /// + /// ApiResponse of Object + ApiResponse StoresSetPropertyIdWithHttpInfo (int? storeId, string propertyId); /// - /// Update store address + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address - /// RestApiResultStoreAddress - RestApiResultStoreAddress UpdateStoreAddress (int? storeId, StoreAddressBase storeAddress); + /// + /// + /// + /// + void SupportedSalesChannelsTypes (string propertyId, int? storeId, List salesChannelTypes); /// - /// Update store address + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address - /// ApiResponse of RestApiResultStoreAddress - ApiResponse UpdateStoreAddressWithHttpInfo (int? storeId, StoreAddressBase storeAddress); + /// + /// + /// + /// ApiResponse of Object(void) + ApiResponse SupportedSalesChannelsTypesWithHttpInfo (string propertyId, int? storeId, List salesChannelTypes); /// - /// Update store address coordinates + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address coordinates - /// App Name Id(Not used, still here for compatability reasons) (optional) - /// RestApiResultCoordinates - RestApiResultCoordinates UpdateStoreAddressCoordinates (int? storeId, Coordinates coordinates, string appNameId = null); + /// + /// + void UnpublishStore (int? storeId); /// - /// Update store address coordinates + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address coordinates - /// App Name Id(Not used, still here for compatability reasons) (optional) - /// ApiResponse of RestApiResultCoordinates - ApiResponse UpdateStoreAddressCoordinatesWithHttpInfo (int? storeId, Coordinates coordinates, string appNameId = null); + /// + /// ApiResponse of Object(void) + ApiResponse UnpublishStoreWithHttpInfo (int? storeId); /// - /// Update store address + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address - /// Object - Object UpdateStoreAddressForm (int? storeId, StoreAddressForm address); + /// + /// + /// + /// RestApiArrayResultRestApiDefaultResponse + RestApiArrayResultRestApiDefaultResponse UpdatePreOrderConfig (int? storeId, string deliveryType, PreOrderConfig preOrderConfig); /// - /// Update store address + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address - /// ApiResponse of Object - ApiResponse UpdateStoreAddressFormWithHttpInfo (int? storeId, StoreAddressForm address); - #endregion Synchronous Operations - #region Asynchronous Operations + /// + /// + /// + /// ApiResponse of RestApiArrayResultRestApiDefaultResponse + ApiResponse UpdatePreOrderConfigWithHttpInfo (int? storeId, string deliveryType, PreOrderConfig preOrderConfig); /// - /// Archive store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Task of void - System.Threading.Tasks.Task ArchiveStoreAsync (int? storeId); + /// + /// + /// RestApiResultStore + RestApiResultStore UpdateStore (int? storeId, StoreBase store); /// - /// Archive store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Task of ApiResponse + /// + /// + /// 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); /// - /// Assign Menu to Store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Id of Menu to assign to store + /// + /// /// Task of RestApiArrayResultRestApiDefaultResponse System.Threading.Tasks.Task AssignMenuAsync (int? storeId, int? menuId); /// - /// Assign Menu to Store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Id of Menu to assign to store + /// + /// /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) System.Threading.Tasks.Task> AssignMenuAsyncWithHttpInfo (int? storeId, int? menuId); /// - /// Clone store with store clone settings + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Settings for cloning the store + /// + /// /// Task of RestApiResultStore System.Threading.Tasks.Task CloneStoreAsync (int? storeId, StoreCloneSettings settings); /// - /// Clone store with store clone settings + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Settings for cloning the store + /// + /// /// Task of ApiResponse (RestApiResultStore) System.Threading.Tasks.Task> CloneStoreAsyncWithHttpInfo (int? storeId, StoreCloneSettings settings); /// - /// Configure Store Service Charge; Idempotent Operation + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Service charge + /// + /// /// Task of RestApiResultServiceCharge System.Threading.Tasks.Task ConfigureStoreServiceChargeAsync (int? storeId, ServiceCharge serviceCharge); /// - /// Configure Store Service Charge; Idempotent Operation + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Service charge + /// + /// /// Task of ApiResponse (RestApiResultServiceCharge) System.Threading.Tasks.Task> ConfigureStoreServiceChargeAsyncWithHttpInfo (int? storeId, ServiceCharge serviceCharge); /// - /// Create Business Hours Override for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Business Hours Override + /// + /// /// Task of RestApiResultBusinessHoursOverride System.Threading.Tasks.Task CreateBusinessHoursOverrideByStoreIdAsync (int? storeId, BusinessHoursOverrideBase businessHoursOverride); /// - /// Create Business Hours Override for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Business Hours Override + /// + /// /// Task of ApiResponse (RestApiResultBusinessHoursOverride) System.Threading.Tasks.Task> CreateBusinessHoursOverrideByStoreIdAsyncWithHttpInfo (int? storeId, BusinessHoursOverrideBase businessHoursOverride); /// - /// Create store with Store Group identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store + /// + /// /// Task of RestApiResultStore System.Threading.Tasks.Task CreateStoreAsync (int? storeGroupId, StoreCreateBase store); /// - /// Create store with Store Group identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store + /// + /// /// Task of ApiResponse (RestApiResultStore) System.Threading.Tasks.Task> CreateStoreAsyncWithHttpInfo (int? storeGroupId, StoreCreateBase store); /// - /// Delete Business Hours Override for a 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); + /// + /// /// /// /// @@ -947,7 +1168,7 @@ public interface IStoresApi : IApiAccessor System.Threading.Tasks.Task DeleteBusinessHoursOverrideAsync (int? storeId, int? businessHoursOverrideId); /// - /// Delete Business Hours Override for a store + /// /// /// /// @@ -958,131 +1179,131 @@ public interface IStoresApi : IApiAccessor /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) System.Threading.Tasks.Task> DeleteBusinessHoursOverrideAsyncWithHttpInfo (int? storeId, int? businessHoursOverrideId); /// - /// Get Stores Bank Account Id + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of RestApiResultAssignedBankAccount System.Threading.Tasks.Task GetBankAccountForStoreAsync (int? storeId); /// - /// Get Stores Bank Account Id + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of ApiResponse (RestApiResultAssignedBankAccount) System.Threading.Tasks.Task> GetBankAccountForStoreAsyncWithHttpInfo (int? storeId); /// - /// Get Business hours + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type + /// + /// /// Task of RestApiArrayResultBusinessHoursPeriod System.Threading.Tasks.Task GetBusinessHoursAsync (int? storeId, string deliveryType); /// - /// Get Business hours + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type + /// + /// /// Task of ApiResponse (RestApiArrayResultBusinessHoursPeriod) System.Threading.Tasks.Task> GetBusinessHoursAsyncWithHttpInfo (int? storeId, string deliveryType); /// - /// Get business hours overrides by store identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Return results that ended after this datetime. Default value is the current datetime. (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// Task of RestApiPaginationResultBusinessHoursOverride System.Threading.Tasks.Task GetBusinessHoursOverrideByStoreIdAsync (int? storeId, DateTime? after = null, int? page = null, int? limit = null); /// - /// Get business hours overrides by store identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Return results that ended after this datetime. Default value is the current datetime. (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// Task of ApiResponse (RestApiPaginationResultBusinessHoursOverride) System.Threading.Tasks.Task> GetBusinessHoursOverrideByStoreIdAsyncWithHttpInfo (int? storeId, DateTime? after = null, int? page = null, int? limit = null); /// - /// Get store end of day report + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store identifier (optional) + /// + /// (optional) /// Task of RestApiResultStoreEndOfDayReport System.Threading.Tasks.Task GetEndOfDayReportAsync (int? storeId, DateTime? date = null); /// - /// Get store end of day report + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store identifier (optional) + /// + /// (optional) /// Task of ApiResponse (RestApiResultStoreEndOfDayReport) System.Threading.Tasks.Task> GetEndOfDayReportAsyncWithHttpInfo (int? storeId, DateTime? date = null); /// - /// Get the pre order config for a store, by type + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// Task of RestApiResultPreOrderConfig System.Threading.Tasks.Task GetPreOrderConfigAsync (int? storeId, string deliveryType); /// - /// Get the pre order config for a store, by type + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// Task of ApiResponse (RestApiResultPreOrderConfig) System.Threading.Tasks.Task> GetPreOrderConfigAsyncWithHttpInfo (int? storeId, string deliveryType); /// - /// Get the Preview times of the pre-order configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// Lead Time in Minutes (optional) /// Interval in minutes (optional) /// Max Days to order ahead (optional) @@ -1097,14 +1318,14 @@ public interface IStoresApi : IApiAccessor 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); /// - /// Get the Preview times of the pre-order configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// Lead Time in Minutes (optional) /// Interval in minutes (optional) /// Max Days to order ahead (optional) @@ -1118,456 +1339,623 @@ public interface IStoresApi : IApiAccessor /// 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); /// - /// Get processing fee configs by store identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// + /// (optional) /// Task of RestApiArrayResultProcessingFeeConfig System.Threading.Tasks.Task GetProcessingFeeConfigsByStoreIdAsync (int? storeId, string appNameId = null); /// - /// Get processing fee configs by store identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// + /// (optional) /// Task of ApiResponse (RestApiArrayResultProcessingFeeConfig) System.Threading.Tasks.Task> GetProcessingFeeConfigsByStoreIdAsyncWithHttpInfo (int? storeId, string appNameId = null); /// - /// Get processing fee configs by store identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// (optional) /// Task of RestApiResultProcessingFeeConfig System.Threading.Tasks.Task GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeAsync (int? storeId, string paymentAccountType, string appNameId = null); /// - /// Get processing fee configs by store identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// (optional) /// Task of ApiResponse (RestApiResultProcessingFeeConfig) System.Threading.Tasks.Task> GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeAsyncWithHttpInfo (int? storeId, string paymentAccountType, string appNameId = null); /// - /// Get store by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of RestApiResultStore System.Threading.Tasks.Task GetStoreByIdAsync (int? storeId); /// - /// Get store by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of ApiResponse (RestApiResultStore) System.Threading.Tasks.Task> GetStoreByIdAsyncWithHttpInfo (int? storeId); /// - /// Retrieve Store feeConfig + /// + /// + /// + /// + /// + /// 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 - /// Store identifier + /// /// Task of StoreFeeConfig System.Threading.Tasks.Task GetStoreFeeConfigAsync (int? storeId); /// - /// Retrieve Store feeConfig + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of ApiResponse (StoreFeeConfig) System.Threading.Tasks.Task> GetStoreFeeConfigAsyncWithHttpInfo (int? storeId); /// - /// Get all stores by app name id + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// (optional) + /// (optional) /// (optional) /// (optional) /// Task of RestApiPaginationResultStoreHeader - System.Threading.Tasks.Task GetStoreHeadersByAppIdAsync (string appId, string storeNameQuery = null, int? page = null, int? limit = null); + System.Threading.Tasks.Task GetStoreHeadersByAppIdAsync (string appId, string storeNameQuery = null, string salesChannelType = null, int? page = null, int? limit = null); /// - /// Get all stores by app name id + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id + /// /// (optional) + /// (optional) /// (optional) /// (optional) /// Task of ApiResponse (RestApiPaginationResultStoreHeader) - System.Threading.Tasks.Task> GetStoreHeadersByAppIdAsyncWithHttpInfo (string appId, string storeNameQuery = null, int? page = null, int? limit = null); + 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); /// - /// Get stores statistics by app name id and storeIds + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Ids + /// + /// /// Task of RestApiArrayResultStoreStatistics System.Threading.Tasks.Task GetStoreNetSalesAsync (string appId, List storeId); /// - /// Get stores statistics by app name id and storeIds + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Ids + /// + /// /// Task of ApiResponse (RestApiArrayResultStoreStatistics) System.Threading.Tasks.Task> GetStoreNetSalesAsyncWithHttpInfo (string appId, List storeId); /// - /// Retrieve Store Service Charge + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of ServiceCharge System.Threading.Tasks.Task GetStoreServiceChargeAsync (int? storeId); /// - /// Retrieve Store Service Charge + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of ApiResponse (ServiceCharge) System.Threading.Tasks.Task> GetStoreServiceChargeAsyncWithHttpInfo (int? storeId); /// - /// Get all stores, excluding archived ones + /// /// /// /// /// /// Thrown when fails to make API call - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) - /// Store Group Id (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) /// Task of RestApiPaginationResultStore System.Threading.Tasks.Task GetStoresAsync (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null); /// - /// Get all stores, excluding archived ones + /// /// /// /// /// /// Thrown when fails to make API call - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) - /// Store Group Id (optional) + /// (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); /// - /// Get all stores by app name id + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) /// Task of RestApiPaginationResultStore - System.Threading.Tasks.Task GetStoresByAppIdAsync (string appId, string searchQuery = null, int? page = null, int? limit = null); + System.Threading.Tasks.Task GetStoresByAppIdAsync (string appId, string searchQuery = null, string salesChannelType = null, bool? excludeUnpublished = null, int? page = null, int? limit = null); /// - /// Get all stores by app name id + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) /// Task of ApiResponse (RestApiPaginationResultStore) - System.Threading.Tasks.Task> GetStoresByAppIdAsyncWithHttpInfo (string appId, string searchQuery = null, int? page = null, int? limit = null); + System.Threading.Tasks.Task> GetStoresByAppIdAsyncWithHttpInfo (string appId, string searchQuery = null, string salesChannelType = null, bool? excludeUnpublished = null, int? page = null, int? limit = null); /// - /// Get store validation by storeIds + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// - /// Requested page index (optional) - /// Requested page limit (optional) + /// (optional) + /// (optional) /// Task of RestApiPaginationResultStoreValidationConfig System.Threading.Tasks.Task GetStoresByStoreIdWithValidationsAsync (List storeId, string appId, int? page = null, int? limit = null); /// - /// Get store validation by storeIds + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// - /// Requested page index (optional) - /// Requested page limit (optional) + /// (optional) + /// (optional) /// Task of ApiResponse (RestApiPaginationResultStoreValidationConfig) System.Threading.Tasks.Task> GetStoresByStoreIdWithValidationsAsyncWithHttpInfo (List storeId, string appId, int? page = null, int? limit = null); /// - /// Publish store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of void System.Threading.Tasks.Task PublishStoreAsync (int? storeId); /// - /// Publish store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of ApiResponse System.Threading.Tasks.Task> PublishStoreAsyncWithHttpInfo (int? storeId); /// - /// Set Business hours + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type - /// Business Hours Period - /// Task of RestApiResultBusinessHoursPeriod - System.Threading.Tasks.Task SetBusinessHoursAsync (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod); + /// + /// + /// Task of void + System.Threading.Tasks.Task PutStoreDeliveryFeeConfigAsync (int? storeId, StoreDeliveryZoneFeeConfigUpdateRequest feeConfigUpdateRequest); /// - /// Set Business hours + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type - /// Business Hours Period - /// Task of ApiResponse (RestApiResultBusinessHoursPeriod) - System.Threading.Tasks.Task> SetBusinessHoursAsyncWithHttpInfo (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod); + /// + /// + /// Task of ApiResponse + System.Threading.Tasks.Task> PutStoreDeliveryFeeConfigAsyncWithHttpInfo (int? storeId, StoreDeliveryZoneFeeConfigUpdateRequest feeConfigUpdateRequest); /// - /// UPDATE pre order config for a store, by type + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values - /// Task of RestApiArrayResultRestApiDefaultResponse - System.Threading.Tasks.Task SetPreOrdeEnabledAsync (int? storeId, string deliveryType, bool? enabled); + /// + /// + /// + /// 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); /// - /// UPDATE pre order config for a store, by type + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values + /// + /// + /// /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) System.Threading.Tasks.Task> SetPreOrdeEnabledAsyncWithHttpInfo (int? storeId, string deliveryType, bool? enabled); /// - /// Unpublish store + /// + /// + /// + /// + /// + /// 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 - /// Store identifier + /// /// Task of void System.Threading.Tasks.Task UnpublishStoreAsync (int? storeId); /// - /// Unpublish store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of ApiResponse System.Threading.Tasks.Task> UnpublishStoreAsyncWithHttpInfo (int? storeId); /// - /// UPDATE pre order config for a store, by type + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values + /// + /// + /// /// Task of RestApiArrayResultRestApiDefaultResponse System.Threading.Tasks.Task UpdatePreOrderConfigAsync (int? storeId, string deliveryType, PreOrderConfig preOrderConfig); /// - /// UPDATE pre order config for a store, by type + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values + /// + /// + /// /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) System.Threading.Tasks.Task> UpdatePreOrderConfigAsyncWithHttpInfo (int? storeId, string deliveryType, PreOrderConfig preOrderConfig); /// - /// Update store by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store + /// + /// /// Task of RestApiResultStore System.Threading.Tasks.Task UpdateStoreAsync (int? storeId, StoreBase store); /// - /// Update store by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store + /// + /// /// Task of ApiResponse (RestApiResultStore) System.Threading.Tasks.Task> UpdateStoreAsyncWithHttpInfo (int? storeId, StoreBase store); /// - /// Update store address + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address + /// + /// /// Task of RestApiResultStoreAddress System.Threading.Tasks.Task UpdateStoreAddressAsync (int? storeId, StoreAddressBase storeAddress); /// - /// Update store address + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address + /// + /// /// Task of ApiResponse (RestApiResultStoreAddress) System.Threading.Tasks.Task> UpdateStoreAddressAsyncWithHttpInfo (int? storeId, StoreAddressBase storeAddress); /// - /// Update store address coordinates + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address coordinates - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// + /// + /// (optional) /// Task of RestApiResultCoordinates System.Threading.Tasks.Task UpdateStoreAddressCoordinatesAsync (int? storeId, Coordinates coordinates, string appNameId = null); /// - /// Update store address coordinates + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address coordinates - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// + /// + /// (optional) /// Task of ApiResponse (RestApiResultCoordinates) System.Threading.Tasks.Task> UpdateStoreAddressCoordinatesAsyncWithHttpInfo (int? storeId, Coordinates coordinates, string appNameId = null); /// - /// Update store address + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address + /// + /// /// Task of Object System.Threading.Tasks.Task UpdateStoreAddressFormAsync (int? storeId, StoreAddressForm address); /// - /// Update store address + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address + /// + /// /// Task of ApiResponse (Object) System.Threading.Tasks.Task> UpdateStoreAddressFormAsyncWithHttpInfo (int? storeId, StoreAddressForm address); #endregion Asynchronous Operations @@ -1671,10 +2059,10 @@ public void AddDefaultHeader(string key, string value) } /// - /// Archive store + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// public void ArchiveStore (int? storeId) { @@ -1682,10 +2070,10 @@ public void ArchiveStore (int? storeId) } /// - /// Archive store + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// ApiResponse of Object(void) public ApiResponse ArchiveStoreWithHttpInfo (int? storeId) { @@ -1745,10 +2133,10 @@ public ApiResponse ArchiveStoreWithHttpInfo (int? storeId) } /// - /// Archive store + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of void public async System.Threading.Tasks.Task ArchiveStoreAsync (int? storeId) { @@ -1757,10 +2145,10 @@ public async System.Threading.Tasks.Task ArchiveStoreAsync (int? storeId) } /// - /// Archive store + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> ArchiveStoreAsyncWithHttpInfo (int? storeId) { @@ -1820,11 +2208,11 @@ public async System.Threading.Tasks.Task> ArchiveStoreAsyncW } /// - /// Assign Menu to Store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Id of Menu to assign to store + /// + /// /// RestApiArrayResultRestApiDefaultResponse public RestApiArrayResultRestApiDefaultResponse AssignMenu (int? storeId, int? menuId) { @@ -1833,11 +2221,11 @@ public RestApiArrayResultRestApiDefaultResponse AssignMenu (int? storeId, int? m } /// - /// Assign Menu to Store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Id of Menu to assign to store + /// + /// /// ApiResponse of RestApiArrayResultRestApiDefaultResponse public ApiResponse< RestApiArrayResultRestApiDefaultResponse > AssignMenuWithHttpInfo (int? storeId, int? menuId) { @@ -1901,11 +2289,11 @@ public ApiResponse< RestApiArrayResultRestApiDefaultResponse > AssignMenuWithHtt } /// - /// Assign Menu to Store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Id of Menu to assign to store + /// + /// /// Task of RestApiArrayResultRestApiDefaultResponse public async System.Threading.Tasks.Task AssignMenuAsync (int? storeId, int? menuId) { @@ -1915,11 +2303,11 @@ public async System.Threading.Tasks.Task - /// Assign Menu to Store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Id of Menu to assign to store + /// + /// /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) public async System.Threading.Tasks.Task> AssignMenuAsyncWithHttpInfo (int? storeId, int? menuId) { @@ -1983,11 +2371,11 @@ public async System.Threading.Tasks.Task - /// Clone store with store clone settings + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Settings for cloning the store + /// + /// /// RestApiResultStore public RestApiResultStore CloneStore (int? storeId, StoreCloneSettings settings) { @@ -1996,11 +2384,11 @@ public RestApiResultStore CloneStore (int? storeId, StoreCloneSettings settings) } /// - /// Clone store with store clone settings + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Settings for cloning the store + /// + /// /// ApiResponse of RestApiResultStore public ApiResponse< RestApiResultStore > CloneStoreWithHttpInfo (int? storeId, StoreCloneSettings settings) { @@ -2076,11 +2464,11 @@ public ApiResponse< RestApiResultStore > CloneStoreWithHttpInfo (int? storeId, S } /// - /// Clone store with store clone settings + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Settings for cloning the store + /// + /// /// Task of RestApiResultStore public async System.Threading.Tasks.Task CloneStoreAsync (int? storeId, StoreCloneSettings settings) { @@ -2090,11 +2478,11 @@ public async System.Threading.Tasks.Task CloneStoreAsync (in } /// - /// Clone store with store clone settings + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Settings for cloning the store + /// + /// /// Task of ApiResponse (RestApiResultStore) public async System.Threading.Tasks.Task> CloneStoreAsyncWithHttpInfo (int? storeId, StoreCloneSettings settings) { @@ -2170,11 +2558,11 @@ public async System.Threading.Tasks.Task> CloneS } /// - /// Configure Store Service Charge; Idempotent Operation + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Service charge + /// + /// /// RestApiResultServiceCharge public RestApiResultServiceCharge ConfigureStoreServiceCharge (int? storeId, ServiceCharge serviceCharge) { @@ -2183,11 +2571,11 @@ public RestApiResultServiceCharge ConfigureStoreServiceCharge (int? storeId, Ser } /// - /// Configure Store Service Charge; Idempotent Operation + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Service charge + /// + /// /// ApiResponse of RestApiResultServiceCharge public ApiResponse< RestApiResultServiceCharge > ConfigureStoreServiceChargeWithHttpInfo (int? storeId, ServiceCharge serviceCharge) { @@ -2263,11 +2651,11 @@ public ApiResponse< RestApiResultServiceCharge > ConfigureStoreServiceChargeWith } /// - /// Configure Store Service Charge; Idempotent Operation + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Service charge + /// + /// /// Task of RestApiResultServiceCharge public async System.Threading.Tasks.Task ConfigureStoreServiceChargeAsync (int? storeId, ServiceCharge serviceCharge) { @@ -2277,11 +2665,11 @@ public async System.Threading.Tasks.Task ConfigureSt } /// - /// Configure Store Service Charge; Idempotent Operation + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Service charge + /// + /// /// Task of ApiResponse (RestApiResultServiceCharge) public async System.Threading.Tasks.Task> ConfigureStoreServiceChargeAsyncWithHttpInfo (int? storeId, ServiceCharge serviceCharge) { @@ -2357,11 +2745,11 @@ public async System.Threading.Tasks.Task } /// - /// Create Business Hours Override for a store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Business Hours Override + /// + /// /// RestApiResultBusinessHoursOverride public RestApiResultBusinessHoursOverride CreateBusinessHoursOverrideByStoreId (int? storeId, BusinessHoursOverrideBase businessHoursOverride) { @@ -2370,11 +2758,11 @@ public RestApiResultBusinessHoursOverride CreateBusinessHoursOverrideByStoreId ( } /// - /// Create Business Hours Override for a store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Business Hours Override + /// + /// /// ApiResponse of RestApiResultBusinessHoursOverride public ApiResponse< RestApiResultBusinessHoursOverride > CreateBusinessHoursOverrideByStoreIdWithHttpInfo (int? storeId, BusinessHoursOverrideBase businessHoursOverride) { @@ -2450,11 +2838,11 @@ public ApiResponse< RestApiResultBusinessHoursOverride > CreateBusinessHoursOver } /// - /// Create Business Hours Override for a store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Business Hours Override + /// + /// /// Task of RestApiResultBusinessHoursOverride public async System.Threading.Tasks.Task CreateBusinessHoursOverrideByStoreIdAsync (int? storeId, BusinessHoursOverrideBase businessHoursOverride) { @@ -2464,11 +2852,11 @@ public async System.Threading.Tasks.Task Cre } /// - /// Create Business Hours Override for a store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Business Hours Override + /// + /// /// Task of ApiResponse (RestApiResultBusinessHoursOverride) public async System.Threading.Tasks.Task> CreateBusinessHoursOverrideByStoreIdAsyncWithHttpInfo (int? storeId, BusinessHoursOverrideBase businessHoursOverride) { @@ -2544,11 +2932,11 @@ public async System.Threading.Tasks.Task - /// Create store with Store Group identifier + /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store + /// + /// /// RestApiResultStore public RestApiResultStore CreateStore (int? storeGroupId, StoreCreateBase store) { @@ -2557,11 +2945,11 @@ public RestApiResultStore CreateStore (int? storeGroupId, StoreCreateBase store) } /// - /// Create store with Store Group identifier + /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store + /// + /// /// ApiResponse of RestApiResultStore public ApiResponse< RestApiResultStore > CreateStoreWithHttpInfo (int? storeGroupId, StoreCreateBase store) { @@ -2637,11 +3025,11 @@ public ApiResponse< RestApiResultStore > CreateStoreWithHttpInfo (int? storeGrou } /// - /// Create store with Store Group identifier + /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store + /// + /// /// Task of RestApiResultStore public async System.Threading.Tasks.Task CreateStoreAsync (int? storeGroupId, StoreCreateBase store) { @@ -2651,11 +3039,11 @@ public async System.Threading.Tasks.Task CreateStoreAsync (i } /// - /// Create store with Store Group identifier + /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store + /// + /// /// Task of ApiResponse (RestApiResultStore) public async System.Threading.Tasks.Task> CreateStoreAsyncWithHttpInfo (int? storeGroupId, StoreCreateBase store) { @@ -2731,35 +3119,42 @@ public async System.Threading.Tasks.Task> Create } /// - /// Delete Business Hours Override for a store + /// /// /// Thrown when fails to make API call - /// - /// - /// RestApiArrayResultRestApiDefaultResponse - public RestApiArrayResultRestApiDefaultResponse DeleteBusinessHoursOverride (int? storeId, int? businessHoursOverrideId) + /// + /// + /// + /// (optional) + /// RestApiResultStore + public RestApiResultStore CreateStoreInProperty (int? storeGroupId, string propertyId, StoreCreateBase store, bool? autoAssignMenu = null) { - ApiResponse localVarResponse = DeleteBusinessHoursOverrideWithHttpInfo(storeId, businessHoursOverrideId); + ApiResponse localVarResponse = CreateStoreInPropertyWithHttpInfo(storeGroupId, propertyId, store, autoAssignMenu); return localVarResponse.Data; } /// - /// Delete Business Hours Override for a store + /// /// /// Thrown when fails to make API call - /// - /// - /// ApiResponse of RestApiArrayResultRestApiDefaultResponse - public ApiResponse< RestApiArrayResultRestApiDefaultResponse > DeleteBusinessHoursOverrideWithHttpInfo (int? storeId, int? businessHoursOverrideId) + /// + /// + /// + /// (optional) + /// ApiResponse of RestApiResultStore + public ApiResponse< RestApiResultStore > CreateStoreInPropertyWithHttpInfo (int? storeGroupId, string propertyId, StoreCreateBase store, bool? autoAssignMenu = null) { - // 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"); + // 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/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId}"; + var localVarPath = "./api/v1.0/properties/{propertyId}/stores"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2769,6 +3164,11 @@ public ApiResponse< RestApiArrayResultRestApiDefaultResponse > DeleteBusinessHou // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -2783,8 +3183,17 @@ public ApiResponse< RestApiArrayResultRestApiDefaultResponse > DeleteBusinessHou 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 + 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 @@ -2795,53 +3204,60 @@ public ApiResponse< RestApiArrayResultRestApiDefaultResponse > DeleteBusinessHou // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("DeleteBusinessHoursOverride", localVarResponse); + Exception exception = ExceptionFactory("CreateStoreInProperty", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestApiDefaultResponse))); + (RestApiResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStore))); } /// - /// Delete Business Hours Override for a store + /// /// /// Thrown when fails to make API call - /// - /// - /// Task of RestApiArrayResultRestApiDefaultResponse - public async System.Threading.Tasks.Task DeleteBusinessHoursOverrideAsync (int? storeId, int? businessHoursOverrideId) + /// + /// + /// + /// (optional) + /// Task of RestApiResultStore + public async System.Threading.Tasks.Task CreateStoreInPropertyAsync (int? storeGroupId, string propertyId, StoreCreateBase store, bool? autoAssignMenu = null) { - ApiResponse localVarResponse = await DeleteBusinessHoursOverrideAsyncWithHttpInfo(storeId, businessHoursOverrideId); + ApiResponse localVarResponse = await CreateStoreInPropertyAsyncWithHttpInfo(storeGroupId, propertyId, store, autoAssignMenu); return localVarResponse.Data; } /// - /// Delete Business Hours Override for a store + /// /// /// Thrown when fails to make API call - /// - /// - /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) - public async System.Threading.Tasks.Task> DeleteBusinessHoursOverrideAsyncWithHttpInfo (int? storeId, int? businessHoursOverrideId) + /// + /// + /// + /// (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 '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"); + // 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/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId}"; + var localVarPath = "./api/v1.0/properties/{propertyId}/stores"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2851,6 +3267,11 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestApiDefaultResponse))); + (RestApiResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStore))); } /// - /// Get Stores Bank Account Id + /// /// /// Thrown when fails to make API call - /// Store identifier - /// RestApiResultAssignedBankAccount - public RestApiResultAssignedBankAccount GetBankAccountForStore (int? storeId) + /// + /// + /// RestApiArrayResultRestApiDefaultResponse + public RestApiArrayResultRestApiDefaultResponse DeleteBusinessHoursOverride (int? storeId, int? businessHoursOverrideId) { - ApiResponse localVarResponse = GetBankAccountForStoreWithHttpInfo(storeId); + ApiResponse localVarResponse = DeleteBusinessHoursOverrideWithHttpInfo(storeId, businessHoursOverrideId); return localVarResponse.Data; } /// - /// Get Stores Bank Account Id + /// /// /// Thrown when fails to make API call - /// Store identifier - /// ApiResponse of RestApiResultAssignedBankAccount - public ApiResponse< RestApiResultAssignedBankAccount > GetBankAccountForStoreWithHttpInfo (int? storeId) + /// + /// + /// 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->GetBankAccountForStore"); + 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}/bankaccount"; + var localVarPath = "./api/v1.0/stores/{storeId}/businesshoursoverrides/{businessHoursOverrideId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -2942,6 +3377,7 @@ public ApiResponse< RestApiResultAssignedBankAccount > GetBankAccountForStoreWit 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 @@ -2952,7 +3388,164 @@ public ApiResponse< RestApiResultAssignedBankAccount > GetBankAccountForStoreWit // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + 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; @@ -2969,10 +3562,10 @@ public ApiResponse< RestApiResultAssignedBankAccount > GetBankAccountForStoreWit } /// - /// Get Stores Bank Account Id + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of RestApiResultAssignedBankAccount public async System.Threading.Tasks.Task GetBankAccountForStoreAsync (int? storeId) { @@ -2982,10 +3575,10 @@ public async System.Threading.Tasks.Task GetBa } /// - /// Get Stores Bank Account Id + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of ApiResponse (RestApiResultAssignedBankAccount) public async System.Threading.Tasks.Task> GetBankAccountForStoreAsyncWithHttpInfo (int? storeId) { @@ -3045,11 +3638,11 @@ public async System.Threading.Tasks.Task - /// Get Business hours + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type + /// + /// /// RestApiArrayResultBusinessHoursPeriod public RestApiArrayResultBusinessHoursPeriod GetBusinessHours (int? storeId, string deliveryType) { @@ -3058,11 +3651,11 @@ public RestApiArrayResultBusinessHoursPeriod GetBusinessHours (int? storeId, str } /// - /// Get Business hours + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type + /// + /// /// ApiResponse of RestApiArrayResultBusinessHoursPeriod public ApiResponse< RestApiArrayResultBusinessHoursPeriod > GetBusinessHoursWithHttpInfo (int? storeId, string deliveryType) { @@ -3126,11 +3719,11 @@ public ApiResponse< RestApiArrayResultBusinessHoursPeriod > GetBusinessHoursWith } /// - /// Get Business hours + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type + /// + /// /// Task of RestApiArrayResultBusinessHoursPeriod public async System.Threading.Tasks.Task GetBusinessHoursAsync (int? storeId, string deliveryType) { @@ -3140,11 +3733,11 @@ public async System.Threading.Tasks.Task } /// - /// Get Business hours + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type + /// + /// /// Task of ApiResponse (RestApiArrayResultBusinessHoursPeriod) public async System.Threading.Tasks.Task> GetBusinessHoursAsyncWithHttpInfo (int? storeId, string deliveryType) { @@ -3208,13 +3801,13 @@ public async System.Threading.Tasks.Task - /// Get business hours overrides by store identifier + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Return results that ended after this datetime. Default value is the current datetime. (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultBusinessHoursOverride public RestApiPaginationResultBusinessHoursOverride GetBusinessHoursOverrideByStoreId (int? storeId, DateTime? after = null, int? page = null, int? limit = null) { @@ -3223,13 +3816,13 @@ public RestApiPaginationResultBusinessHoursOverride GetBusinessHoursOverrideBySt } /// - /// Get business hours overrides by store identifier + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Return results that ended after this datetime. Default value is the current datetime. (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiPaginationResultBusinessHoursOverride public ApiResponse< RestApiPaginationResultBusinessHoursOverride > GetBusinessHoursOverrideByStoreIdWithHttpInfo (int? storeId, DateTime? after = null, int? page = null, int? limit = null) { @@ -3292,13 +3885,13 @@ public ApiResponse< RestApiPaginationResultBusinessHoursOverride > GetBusinessHo } /// - /// Get business hours overrides by store identifier + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Return results that ended after this datetime. Default value is the current datetime. (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (optional) + /// (optional) + /// (optional) /// Task of RestApiPaginationResultBusinessHoursOverride public async System.Threading.Tasks.Task GetBusinessHoursOverrideByStoreIdAsync (int? storeId, DateTime? after = null, int? page = null, int? limit = null) { @@ -3308,13 +3901,13 @@ public async System.Threading.Tasks.Task - /// Get business hours overrides by store identifier + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Return results that ended after this datetime. Default value is the current datetime. (optional) - /// Requested page index (optional) - /// Requested page limit (optional) + /// + /// (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) { @@ -3377,11 +3970,11 @@ public async System.Threading.Tasks.Task - /// Get store end of day report + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store identifier (optional) + /// + /// (optional) /// RestApiResultStoreEndOfDayReport public RestApiResultStoreEndOfDayReport GetEndOfDayReport (int? storeId, DateTime? date = null) { @@ -3390,11 +3983,11 @@ public RestApiResultStoreEndOfDayReport GetEndOfDayReport (int? storeId, DateTim } /// - /// Get store end of day report + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store identifier (optional) + /// + /// (optional) /// ApiResponse of RestApiResultStoreEndOfDayReport public ApiResponse< RestApiResultStoreEndOfDayReport > GetEndOfDayReportWithHttpInfo (int? storeId, DateTime? date = null) { @@ -3455,11 +4048,11 @@ public ApiResponse< RestApiResultStoreEndOfDayReport > GetEndOfDayReportWithHttp } /// - /// Get store end of day report + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store identifier (optional) + /// + /// (optional) /// Task of RestApiResultStoreEndOfDayReport public async System.Threading.Tasks.Task GetEndOfDayReportAsync (int? storeId, DateTime? date = null) { @@ -3469,11 +4062,11 @@ public async System.Threading.Tasks.Task GetEn } /// - /// Get store end of day report + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store identifier (optional) + /// + /// (optional) /// Task of ApiResponse (RestApiResultStoreEndOfDayReport) public async System.Threading.Tasks.Task> GetEndOfDayReportAsyncWithHttpInfo (int? storeId, DateTime? date = null) { @@ -3534,11 +4127,11 @@ public async System.Threading.Tasks.Task - /// Get the pre order config for a store, by type + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// RestApiResultPreOrderConfig public RestApiResultPreOrderConfig GetPreOrderConfig (int? storeId, string deliveryType) { @@ -3547,11 +4140,11 @@ public RestApiResultPreOrderConfig GetPreOrderConfig (int? storeId, string deliv } /// - /// Get the pre order config for a store, by type + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// ApiResponse of RestApiResultPreOrderConfig public ApiResponse< RestApiResultPreOrderConfig > GetPreOrderConfigWithHttpInfo (int? storeId, string deliveryType) { @@ -3615,11 +4208,11 @@ public ApiResponse< RestApiResultPreOrderConfig > GetPreOrderConfigWithHttpInfo } /// - /// Get the pre order config for a store, by type + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// Task of RestApiResultPreOrderConfig public async System.Threading.Tasks.Task GetPreOrderConfigAsync (int? storeId, string deliveryType) { @@ -3629,11 +4222,11 @@ public async System.Threading.Tasks.Task GetPreOrde } /// - /// Get the pre order config for a store, by type + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// Task of ApiResponse (RestApiResultPreOrderConfig) public async System.Threading.Tasks.Task> GetPreOrderConfigAsyncWithHttpInfo (int? storeId, string deliveryType) { @@ -3697,11 +4290,11 @@ public async System.Threading.Tasks.Task - /// Get the Preview times of the pre-order configuration + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// Lead Time in Minutes (optional) /// Interval in minutes (optional) /// Max Days to order ahead (optional) @@ -3720,11 +4313,11 @@ public RestApiArrayResultPreOrderTime GetPreOrderPreview (int? storeId, string d } /// - /// Get the Preview times of the pre-order configuration + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// Lead Time in Minutes (optional) /// Interval in minutes (optional) /// Max Days to order ahead (optional) @@ -3813,11 +4406,11 @@ public ApiResponse< RestApiArrayResultPreOrderTime > GetPreOrderPreviewWithHttpI } /// - /// Get the Preview times of the pre-order configuration + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// Lead Time in Minutes (optional) /// Interval in minutes (optional) /// Max Days to order ahead (optional) @@ -3837,11 +4430,11 @@ public async System.Threading.Tasks.Task GetPreO } /// - /// Get the Preview times of the pre-order configuration + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" + /// + /// /// Lead Time in Minutes (optional) /// Interval in minutes (optional) /// Max Days to order ahead (optional) @@ -3930,11 +4523,11 @@ public async System.Threading.Tasks.Task - /// Get processing fee configs by store identifier + /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// + /// (optional) /// RestApiArrayResultProcessingFeeConfig public RestApiArrayResultProcessingFeeConfig GetProcessingFeeConfigsByStoreId (int? storeId, string appNameId = null) { @@ -3943,11 +4536,11 @@ public RestApiArrayResultProcessingFeeConfig GetProcessingFeeConfigsByStoreId (i } /// - /// Get processing fee configs by store identifier + /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// + /// (optional) /// ApiResponse of RestApiArrayResultProcessingFeeConfig public ApiResponse< RestApiArrayResultProcessingFeeConfig > GetProcessingFeeConfigsByStoreIdWithHttpInfo (int? storeId, string appNameId = null) { @@ -4008,11 +4601,11 @@ public ApiResponse< RestApiArrayResultProcessingFeeConfig > GetProcessingFeeConf } /// - /// Get processing fee configs by store identifier + /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// + /// (optional) /// Task of RestApiArrayResultProcessingFeeConfig public async System.Threading.Tasks.Task GetProcessingFeeConfigsByStoreIdAsync (int? storeId, string appNameId = null) { @@ -4022,11 +4615,11 @@ public async System.Threading.Tasks.Task } /// - /// Get processing fee configs by store identifier + /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// + /// (optional) /// Task of ApiResponse (RestApiArrayResultProcessingFeeConfig) public async System.Threading.Tasks.Task> GetProcessingFeeConfigsByStoreIdAsyncWithHttpInfo (int? storeId, string appNameId = null) { @@ -4087,12 +4680,12 @@ public async System.Threading.Tasks.Task - /// Get processing fee configs by store identifier + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// (optional) /// RestApiResultProcessingFeeConfig public RestApiResultProcessingFeeConfig GetProcessingFeeConfigsByStoreIdAndPaymentAccountType (int? storeId, string paymentAccountType, string appNameId = null) { @@ -4101,12 +4694,12 @@ public RestApiResultProcessingFeeConfig GetProcessingFeeConfigsByStoreIdAndPayme } /// - /// Get processing fee configs by store identifier + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// (optional) /// ApiResponse of RestApiResultProcessingFeeConfig public ApiResponse< RestApiResultProcessingFeeConfig > GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeWithHttpInfo (int? storeId, string paymentAccountType, string appNameId = null) { @@ -4171,12 +4764,12 @@ public ApiResponse< RestApiResultProcessingFeeConfig > GetProcessingFeeConfigsBy } /// - /// Get processing fee configs by store identifier + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// (optional) /// Task of RestApiResultProcessingFeeConfig public async System.Threading.Tasks.Task GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeAsync (int? storeId, string paymentAccountType, string appNameId = null) { @@ -4186,12 +4779,12 @@ public async System.Threading.Tasks.Task GetPr } /// - /// Get processing fee configs by store identifier + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// (optional) /// Task of ApiResponse (RestApiResultProcessingFeeConfig) public async System.Threading.Tasks.Task> GetProcessingFeeConfigsByStoreIdAndPaymentAccountTypeAsyncWithHttpInfo (int? storeId, string paymentAccountType, string appNameId = null) { @@ -4256,10 +4849,10 @@ public async System.Threading.Tasks.Task - /// Get store by identifier + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// RestApiResultStore public RestApiResultStore GetStoreById (int? storeId) { @@ -4268,10 +4861,10 @@ public RestApiResultStore GetStoreById (int? storeId) } /// - /// Get store by identifier + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// ApiResponse of RestApiResultStore public ApiResponse< RestApiResultStore > GetStoreByIdWithHttpInfo (int? storeId) { @@ -4331,10 +4924,10 @@ public ApiResponse< RestApiResultStore > GetStoreByIdWithHttpInfo (int? storeId) } /// - /// Get store by identifier + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of RestApiResultStore public async System.Threading.Tasks.Task GetStoreByIdAsync (int? storeId) { @@ -4344,10 +4937,10 @@ public async System.Threading.Tasks.Task GetStoreByIdAsync ( } /// - /// Get store by identifier + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of ApiResponse (RestApiResultStore) public async System.Threading.Tasks.Task> GetStoreByIdAsyncWithHttpInfo (int? storeId) { @@ -4407,30 +5000,30 @@ public async System.Threading.Tasks.Task> GetSto } /// - /// Retrieve Store feeConfig + /// /// /// Thrown when fails to make API call - /// Store identifier - /// StoreFeeConfig - public StoreFeeConfig GetStoreFeeConfig (int? storeId) + /// + /// RestApiArrayResultStoreDeliveryZoneFeeConfig + public RestApiArrayResultStoreDeliveryZoneFeeConfig GetStoreDeliveryFeeConfig (int? storeId) { - ApiResponse localVarResponse = GetStoreFeeConfigWithHttpInfo(storeId); + ApiResponse localVarResponse = GetStoreDeliveryFeeConfigWithHttpInfo(storeId); return localVarResponse.Data; } /// - /// Retrieve Store feeConfig + /// /// /// Thrown when fails to make API call - /// Store identifier - /// ApiResponse of StoreFeeConfig - public ApiResponse< StoreFeeConfig > GetStoreFeeConfigWithHttpInfo (int? storeId) + /// + /// 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->GetStoreFeeConfig"); + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreDeliveryFeeConfig"); - var localVarPath = "./api/v1.0/stores/{storeId}/feeConfig"; + var localVarPath = "./api/v1.0/stores/{storeId}/feeConfig/deliveryZones"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -4472,41 +5065,41 @@ public ApiResponse< StoreFeeConfig > GetStoreFeeConfigWithHttpInfo (int? storeId if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetStoreFeeConfig", localVarResponse); + Exception exception = ExceptionFactory("GetStoreDeliveryFeeConfig", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (StoreFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StoreFeeConfig))); + (RestApiArrayResultStoreDeliveryZoneFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreDeliveryZoneFeeConfig))); } /// - /// Retrieve Store feeConfig + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Task of StoreFeeConfig - public async System.Threading.Tasks.Task GetStoreFeeConfigAsync (int? storeId) + /// + /// Task of RestApiArrayResultStoreDeliveryZoneFeeConfig + public async System.Threading.Tasks.Task GetStoreDeliveryFeeConfigAsync (int? storeId) { - ApiResponse localVarResponse = await GetStoreFeeConfigAsyncWithHttpInfo(storeId); + ApiResponse localVarResponse = await GetStoreDeliveryFeeConfigAsyncWithHttpInfo(storeId); return localVarResponse.Data; } /// - /// Retrieve Store feeConfig + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Task of ApiResponse (StoreFeeConfig) - public async System.Threading.Tasks.Task> GetStoreFeeConfigAsyncWithHttpInfo (int? storeId) + /// + /// 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->GetStoreFeeConfig"); + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreDeliveryFeeConfig"); - var localVarPath = "./api/v1.0/stores/{storeId}/feeConfig"; + var localVarPath = "./api/v1.0/stores/{storeId}/feeConfig/deliveryZones"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -4548,46 +5141,40 @@ public async System.Threading.Tasks.Task> GetStoreFe if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetStoreFeeConfig", localVarResponse); + Exception exception = ExceptionFactory("GetStoreDeliveryFeeConfig", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (StoreFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StoreFeeConfig))); + (RestApiArrayResultStoreDeliveryZoneFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreDeliveryZoneFeeConfig))); } /// - /// Get all stores by app name id + /// /// /// Thrown when fails to make API call - /// App Name Id - /// (optional) - /// (optional) - /// (optional) - /// RestApiPaginationResultStoreHeader - public RestApiPaginationResultStoreHeader GetStoreHeadersByAppId (string appId, string storeNameQuery = null, int? page = null, int? limit = null) + /// + /// StoreFeeConfig + public StoreFeeConfig GetStoreFeeConfig (int? storeId) { - ApiResponse localVarResponse = GetStoreHeadersByAppIdWithHttpInfo(appId, storeNameQuery, page, limit); + ApiResponse localVarResponse = GetStoreFeeConfigWithHttpInfo(storeId); return localVarResponse.Data; } /// - /// Get all stores by app name id + /// /// /// Thrown when fails to make API call - /// App Name Id - /// (optional) - /// (optional) - /// (optional) - /// ApiResponse of RestApiPaginationResultStoreHeader - public ApiResponse< RestApiPaginationResultStoreHeader > GetStoreHeadersByAppIdWithHttpInfo (string appId, string storeNameQuery = null, int? page = null, int? limit = null) + /// + /// ApiResponse of StoreFeeConfig + public ApiResponse< StoreFeeConfig > GetStoreFeeConfigWithHttpInfo (int? storeId) { - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoreHeadersByAppId"); + // 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/{appId}/stores/header"; + var localVarPath = "./api/v1.0/stores/{storeId}/feeConfig"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -4611,10 +5198,7 @@ public ApiResponse< RestApiPaginationResultStoreHeader > GetStoreHeadersByAppIdW 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 (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) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter // authentication (oauth2) required // oauth required @@ -4632,47 +5216,41 @@ public ApiResponse< RestApiPaginationResultStoreHeader > GetStoreHeadersByAppIdW if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetStoreHeadersByAppId", localVarResponse); + Exception exception = ExceptionFactory("GetStoreFeeConfig", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiPaginationResultStoreHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStoreHeader))); + (StoreFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StoreFeeConfig))); } /// - /// Get all stores by app name id + /// /// /// Thrown when fails to make API call - /// App Name Id - /// (optional) - /// (optional) - /// (optional) - /// Task of RestApiPaginationResultStoreHeader - public async System.Threading.Tasks.Task GetStoreHeadersByAppIdAsync (string appId, string storeNameQuery = null, int? page = null, int? limit = null) + /// + /// Task of StoreFeeConfig + public async System.Threading.Tasks.Task GetStoreFeeConfigAsync (int? storeId) { - ApiResponse localVarResponse = await GetStoreHeadersByAppIdAsyncWithHttpInfo(appId, storeNameQuery, page, limit); + ApiResponse localVarResponse = await GetStoreFeeConfigAsyncWithHttpInfo(storeId); return localVarResponse.Data; } /// - /// Get all stores by app name id + /// /// /// Thrown when fails to make API call - /// App Name Id - /// (optional) - /// (optional) - /// (optional) - /// Task of ApiResponse (RestApiPaginationResultStoreHeader) - public async System.Threading.Tasks.Task> GetStoreHeadersByAppIdAsyncWithHttpInfo (string appId, string storeNameQuery = null, int? page = null, int? limit = null) + /// + /// Task of ApiResponse (StoreFeeConfig) + public async System.Threading.Tasks.Task> GetStoreFeeConfigAsyncWithHttpInfo (int? storeId) { - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoreHeadersByAppId"); + // 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/{appId}/stores/header"; + var localVarPath = "./api/v1.0/stores/{storeId}/feeConfig"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -4696,10 +5274,7 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiPaginationResultStoreHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStoreHeader))); + (StoreFeeConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StoreFeeConfig))); } /// - /// Get stores statistics by app name id and storeIds + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Ids - /// RestApiArrayResultStoreStatistics - public RestApiArrayResultStoreStatistics GetStoreNetSales (string appId, List storeId) + /// + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultStoreHeader + public RestApiPaginationResultStoreHeader GetStoreHeadersByAppId (string appId, string storeNameQuery = null, string salesChannelType = null, int? page = null, int? limit = null) { - ApiResponse localVarResponse = GetStoreNetSalesWithHttpInfo(appId, storeId); + ApiResponse localVarResponse = GetStoreHeadersByAppIdWithHttpInfo(appId, storeNameQuery, salesChannelType, page, limit); return localVarResponse.Data; } /// - /// Get stores statistics by app name id and storeIds + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Ids - /// ApiResponse of RestApiArrayResultStoreStatistics - public ApiResponse< RestApiArrayResultStoreStatistics > GetStoreNetSalesWithHttpInfo (string appId, List storeId) + /// + /// (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->GetStoreNetSales"); - // verify the required parameter 'storeId' is set - if (storeId == null) - throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreNetSales"); + throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoreHeadersByAppId"); - var localVarPath = "./api/v1.0/{appId}/stores/stats"; + var localVarPath = "./api/v1.0/{appId}/stores/header"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -4780,7 +5358,10 @@ public ApiResponse< RestApiArrayResultStoreStatistics > GetStoreNetSalesWithHttp 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 (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 @@ -4798,46 +5379,49 @@ public ApiResponse< RestApiArrayResultStoreStatistics > GetStoreNetSalesWithHttp if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetStoreNetSales", localVarResponse); + Exception exception = ExceptionFactory("GetStoreHeadersByAppId", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultStoreStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreStatistics))); + (RestApiPaginationResultStoreHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStoreHeader))); } /// - /// Get stores statistics by app name id and storeIds + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Ids - /// Task of RestApiArrayResultStoreStatistics - public async System.Threading.Tasks.Task GetStoreNetSalesAsync (string appId, List storeId) + /// + /// (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 GetStoreNetSalesAsyncWithHttpInfo(appId, storeId); + ApiResponse localVarResponse = await GetStoreHeadersByAppIdAsyncWithHttpInfo(appId, storeNameQuery, salesChannelType, page, limit); return localVarResponse.Data; } /// - /// Get stores statistics by app name id and storeIds + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Store Ids - /// Task of ApiResponse (RestApiArrayResultStoreStatistics) - public async System.Threading.Tasks.Task> GetStoreNetSalesAsyncWithHttpInfo (string appId, List storeId) + /// + /// (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->GetStoreNetSales"); - // verify the required parameter 'storeId' is set - if (storeId == null) - throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreNetSales"); + throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoreHeadersByAppId"); - var localVarPath = "./api/v1.0/{appId}/stores/stats"; + var localVarPath = "./api/v1.0/{appId}/stores/header"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -4862,7 +5446,10 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultStoreStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreStatistics))); + (RestApiPaginationResultStoreHeader) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStoreHeader))); } /// - /// Retrieve Store Service Charge + /// /// /// Thrown when fails to make API call - /// Store identifier - /// ServiceCharge - public ServiceCharge GetStoreServiceCharge (int? storeId) + /// + /// RestApiResultOrderLeadTimes + public RestApiResultOrderLeadTimes GetStoreLeadTimes (int? storeId) { - ApiResponse localVarResponse = GetStoreServiceChargeWithHttpInfo(storeId); + ApiResponse localVarResponse = GetStoreLeadTimesWithHttpInfo(storeId); return localVarResponse.Data; } /// - /// Retrieve Store Service Charge + /// /// /// Thrown when fails to make API call - /// Store identifier - /// ApiResponse of ServiceCharge - public ApiResponse< ServiceCharge > GetStoreServiceChargeWithHttpInfo (int? storeId) + /// + /// 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->GetStoreServiceCharge"); + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreLeadTimes"); - var localVarPath = "./api/v1.0/stores/{storeId}/servicecharge"; + var localVarPath = "./api/v1.0/stores/{storeId}/leadTimes"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -4955,41 +5542,41 @@ public ApiResponse< ServiceCharge > GetStoreServiceChargeWithHttpInfo (int? stor if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetStoreServiceCharge", localVarResponse); + Exception exception = ExceptionFactory("GetStoreLeadTimes", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (ServiceCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ServiceCharge))); + (RestApiResultOrderLeadTimes) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderLeadTimes))); } /// - /// Retrieve Store Service Charge + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Task of ServiceCharge - public async System.Threading.Tasks.Task GetStoreServiceChargeAsync (int? storeId) + /// + /// Task of RestApiResultOrderLeadTimes + public async System.Threading.Tasks.Task GetStoreLeadTimesAsync (int? storeId) { - ApiResponse localVarResponse = await GetStoreServiceChargeAsyncWithHttpInfo(storeId); + ApiResponse localVarResponse = await GetStoreLeadTimesAsyncWithHttpInfo(storeId); return localVarResponse.Data; } /// - /// Retrieve Store Service Charge + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Task of ApiResponse (ServiceCharge) - public async System.Threading.Tasks.Task> GetStoreServiceChargeAsyncWithHttpInfo (int? storeId) + /// + /// 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->GetStoreServiceCharge"); + throw new ApiException(400, "Missing required parameter 'storeId' when calling StoresApi->GetStoreLeadTimes"); - var localVarPath = "./api/v1.0/stores/{storeId}/servicecharge"; + var localVarPath = "./api/v1.0/stores/{storeId}/leadTimes"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -5031,43 +5618,45 @@ public async System.Threading.Tasks.Task> GetStoreSer if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetStoreServiceCharge", localVarResponse); + Exception exception = ExceptionFactory("GetStoreLeadTimes", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (ServiceCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ServiceCharge))); + (RestApiResultOrderLeadTimes) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderLeadTimes))); } /// - /// Get all stores, excluding archived ones + /// /// /// Thrown when fails to make API call - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) - /// Store Group Id (optional) - /// RestApiPaginationResultStore - public RestApiPaginationResultStore GetStores (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null) + /// + /// + /// RestApiArrayResultStoreStatistics + public RestApiArrayResultStoreStatistics GetStoreNetSales (string appId, List storeId) { - ApiResponse localVarResponse = GetStoresWithHttpInfo(searchQuery, page, limit, storeGroupId); + ApiResponse localVarResponse = GetStoreNetSalesWithHttpInfo(appId, storeId); return localVarResponse.Data; } /// - /// Get all stores, excluding archived ones + /// /// /// Thrown when fails to make API call - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) - /// Store Group Id (optional) - /// ApiResponse of RestApiPaginationResultStore - public ApiResponse< RestApiPaginationResultStore > GetStoresWithHttpInfo (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null) + /// + /// + /// 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/stores"; + var localVarPath = "./api/v1.0/{appId}/stores/stats"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -5091,10 +5680,8 @@ public ApiResponse< RestApiPaginationResultStore > GetStoresWithHttpInfo (string 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 + 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 @@ -5112,44 +5699,46 @@ public ApiResponse< RestApiPaginationResultStore > GetStoresWithHttpInfo (string if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetStores", localVarResponse); + Exception exception = ExceptionFactory("GetStoreNetSales", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiPaginationResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStore))); + (RestApiArrayResultStoreStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreStatistics))); } /// - /// Get all stores, excluding archived ones + /// /// /// Thrown when fails to make API call - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) - /// Store Group Id (optional) - /// Task of RestApiPaginationResultStore - public async System.Threading.Tasks.Task GetStoresAsync (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null) + /// + /// + /// Task of RestApiArrayResultStoreStatistics + public async System.Threading.Tasks.Task GetStoreNetSalesAsync (string appId, List storeId) { - ApiResponse localVarResponse = await GetStoresAsyncWithHttpInfo(searchQuery, page, limit, storeGroupId); + ApiResponse localVarResponse = await GetStoreNetSalesAsyncWithHttpInfo(appId, storeId); return localVarResponse.Data; } /// - /// Get all stores, excluding archived ones + /// /// /// Thrown when fails to make API call - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) - /// Store Group Id (optional) - /// Task of ApiResponse (RestApiPaginationResultStore) - public async System.Threading.Tasks.Task> GetStoresAsyncWithHttpInfo (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null) + /// + /// + /// 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/stores"; + var localVarPath = "./api/v1.0/{appId}/stores/stats"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -5173,10 +5762,8 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiPaginationResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStore))); + (RestApiArrayResultStoreStatistics) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStoreStatistics))); } /// - /// Get all stores by app name id + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) - /// RestApiPaginationResultStore - public RestApiPaginationResultStore GetStoresByAppId (string appId, string searchQuery = null, int? page = null, int? limit = null) + /// + /// ServiceCharge + public ServiceCharge GetStoreServiceCharge (int? storeId) { - ApiResponse localVarResponse = GetStoresByAppIdWithHttpInfo(appId, searchQuery, page, limit); + ApiResponse localVarResponse = GetStoreServiceChargeWithHttpInfo(storeId); return localVarResponse.Data; } /// - /// Get all stores by app name id + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) - /// ApiResponse of RestApiPaginationResultStore - public ApiResponse< RestApiPaginationResultStore > GetStoresByAppIdWithHttpInfo (string appId, string searchQuery = null, int? page = null, int? limit = null) + /// + /// ApiResponse of ServiceCharge + public ApiResponse< ServiceCharge > GetStoreServiceChargeWithHttpInfo (int? storeId) { - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoresByAppId"); + // 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/{appId}/stores"; + var localVarPath = "./api/v1.0/stores/{storeId}/servicecharge"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -5257,10 +5838,7 @@ public ApiResponse< RestApiPaginationResultStore > GetStoresByAppIdWithHttpInfo 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 (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) localVarPathParams.Add("storeId", this.Configuration.ApiClient.ParameterToString(storeId)); // path parameter // authentication (oauth2) required // oauth required @@ -5278,47 +5856,41 @@ public ApiResponse< RestApiPaginationResultStore > GetStoresByAppIdWithHttpInfo if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetStoresByAppId", localVarResponse); + Exception exception = ExceptionFactory("GetStoreServiceCharge", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiPaginationResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStore))); + (ServiceCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ServiceCharge))); } /// - /// Get all stores by app name id + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) - /// Task of RestApiPaginationResultStore - public async System.Threading.Tasks.Task GetStoresByAppIdAsync (string appId, string searchQuery = null, int? page = null, int? limit = null) + /// + /// Task of ServiceCharge + public async System.Threading.Tasks.Task GetStoreServiceChargeAsync (int? storeId) { - ApiResponse localVarResponse = await GetStoresByAppIdAsyncWithHttpInfo(appId, searchQuery, page, limit); + ApiResponse localVarResponse = await GetStoreServiceChargeAsyncWithHttpInfo(storeId); return localVarResponse.Data; } /// - /// Get all stores by app name id + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Search query (optional) - /// Requested page index (optional) - /// Requested page limit (optional) - /// Task of ApiResponse (RestApiPaginationResultStore) - public async System.Threading.Tasks.Task> GetStoresByAppIdAsyncWithHttpInfo (string appId, string searchQuery = null, int? page = null, int? limit = null) + /// + /// Task of ApiResponse (ServiceCharge) + public async System.Threading.Tasks.Task> GetStoreServiceChargeAsyncWithHttpInfo (int? storeId) { - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoresByAppId"); + // 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/{appId}/stores"; + var localVarPath = "./api/v1.0/stores/{storeId}/servicecharge"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -5342,10 +5914,7 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiPaginationResultStore) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStore))); + (ServiceCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ServiceCharge))); } /// - /// Get store validation by storeIds + /// /// /// Thrown when fails to make API call - /// Store identifier - /// - /// Requested page index (optional) - /// Requested page limit (optional) - /// RestApiPaginationResultStoreValidationConfig - public RestApiPaginationResultStoreValidationConfig GetStoresByStoreIdWithValidations (List storeId, string appId, int? page = null, int? limit = null) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// RestApiPaginationResultStore + public RestApiPaginationResultStore GetStores (string searchQuery = null, int? page = null, int? limit = null, int? storeGroupId = null) { - ApiResponse localVarResponse = GetStoresByStoreIdWithValidationsWithHttpInfo(storeId, appId, page, limit); + ApiResponse localVarResponse = GetStoresWithHttpInfo(searchQuery, page, limit, storeGroupId); return localVarResponse.Data; } /// - /// Get store validation by storeIds + /// /// /// Thrown when fails to make API call - /// Store identifier - /// - /// Requested page index (optional) - /// Requested page limit (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"); + /// (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->GetStoresByStoreIdWithValidations"); + throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoresByAppId"); - var localVarPath = "./api/v1.0/{appId}/storevalidation/kiosk"; + var localVarPath = "./api/v1.0/{appId}/stores"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -5430,7 +6163,100 @@ public ApiResponse< RestApiPaginationResultStoreValidationConfig > GetStoresBySt 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 (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 @@ -5441,59 +6267,1036 @@ public ApiResponse< RestApiPaginationResultStoreValidationConfig > GetStoresBySt localVarHeaderParams["Authorization"] = "Bearer " + this.Configuration.AccessToken; } + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.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.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetStoresByStoreIdWithValidations", localVarResponse); + Exception exception = ExceptionFactory("SetStoreCollectionSettings", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiPaginationResultStoreValidationConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStoreValidationConfig))); + (RestApiResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestApiDefaultResponse))); } /// - /// Get store validation by storeIds + /// /// /// Thrown when fails to make API call - /// Store identifier - /// - /// Requested page index (optional) - /// Requested page limit (optional) - /// Task of RestApiPaginationResultStoreValidationConfig - public async System.Threading.Tasks.Task GetStoresByStoreIdWithValidationsAsync (List storeId, string appId, int? page = null, int? limit = null) + /// + /// + /// (optional) + /// Task of RestApiResultRestApiDefaultResponse + public async System.Threading.Tasks.Task SetStoreCollectionSettingsAsync (int? storeId, StoreCollectionSettings settings, bool? inheritFromProperty = null) { - ApiResponse localVarResponse = await GetStoresByStoreIdWithValidationsAsyncWithHttpInfo(storeId, appId, page, limit); + ApiResponse localVarResponse = await SetStoreCollectionSettingsAsyncWithHttpInfo(storeId, settings, inheritFromProperty); return localVarResponse.Data; } /// - /// Get store validation by storeIds + /// /// /// Thrown when fails to make API call - /// Store identifier - /// - /// Requested page index (optional) - /// Requested page limit (optional) - /// Task of ApiResponse (RestApiPaginationResultStoreValidationConfig) - public async System.Threading.Tasks.Task> GetStoresByStoreIdWithValidationsAsyncWithHttpInfo (List storeId, string appId, int? page = null, int? limit = null) + /// + /// + /// (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->GetStoresByStoreIdWithValidations"); - // verify the required parameter 'appId' is set - if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling StoresApi->GetStoresByStoreIdWithValidations"); + 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/{appId}/storevalidation/kiosk"; + var localVarPath = "./api/v1.0/stores/{storeId}/collectionsettings"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -5503,6 +7306,11 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiPaginationResultStoreValidationConfig) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultStoreValidationConfig))); + (RestApiResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRestApiDefaultResponse))); } /// - /// Publish store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// - public void PublishStore (int? storeId) + /// + /// + /// RestApiResultOrderLeadTimes + public RestApiResultOrderLeadTimes SetStoreLeadTimes (int? storeId, LeadTime leadTime) { - PublishStoreWithHttpInfo(storeId); + ApiResponse localVarResponse = SetStoreLeadTimesWithHttpInfo(storeId, leadTime); + return localVarResponse.Data; } /// - /// Publish store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// ApiResponse of Object(void) - public ApiResponse PublishStoreWithHttpInfo (int? storeId) + /// + /// + /// 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->PublishStore"); + 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}/publish"; + var localVarPath = "./api/v1.0/stores/{storeId}/leadTimes"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -5580,6 +7400,11 @@ public ApiResponse PublishStoreWithHttpInfo (int? storeId) // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -5595,6 +7420,14 @@ public ApiResponse PublishStoreWithHttpInfo (int? storeId) 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 @@ -5612,40 +7445,46 @@ public ApiResponse PublishStoreWithHttpInfo (int? storeId) if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("PublishStore", localVarResponse); + Exception exception = ExceptionFactory("SetStoreLeadTimes", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (RestApiResultOrderLeadTimes) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderLeadTimes))); } /// - /// Publish store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Task of void - public async System.Threading.Tasks.Task PublishStoreAsync (int? storeId) + /// + /// + /// Task of RestApiResultOrderLeadTimes + public async System.Threading.Tasks.Task SetStoreLeadTimesAsync (int? storeId, LeadTime leadTime) { - await PublishStoreAsyncWithHttpInfo(storeId); + ApiResponse localVarResponse = await SetStoreLeadTimesAsyncWithHttpInfo(storeId, leadTime); + return localVarResponse.Data; } /// - /// Publish store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Task of ApiResponse - public async System.Threading.Tasks.Task> PublishStoreAsyncWithHttpInfo (int? storeId) + /// + /// + /// 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->PublishStore"); + 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}/publish"; + var localVarPath = "./api/v1.0/stores/{storeId}/leadTimes"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -5655,6 +7494,11 @@ public async System.Threading.Tasks.Task> PublishStoreAsyncW // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -5670,6 +7514,14 @@ public async System.Threading.Tasks.Task> PublishStoreAsyncW 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 @@ -5687,50 +7539,45 @@ public async System.Threading.Tasks.Task> PublishStoreAsyncW if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("PublishStore", localVarResponse); + Exception exception = ExceptionFactory("SetStoreLeadTimes", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - null); + (RestApiResultOrderLeadTimes) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultOrderLeadTimes))); } /// - /// Set Business hours + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type - /// Business Hours Period - /// RestApiResultBusinessHoursPeriod - public RestApiResultBusinessHoursPeriod SetBusinessHours (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod) + /// + /// + /// Object + public Object StoresSetPropertyId (int? storeId, string propertyId) { - ApiResponse localVarResponse = SetBusinessHoursWithHttpInfo(storeId, deliveryType, businessHoursPeriod); + ApiResponse localVarResponse = StoresSetPropertyIdWithHttpInfo(storeId, propertyId); return localVarResponse.Data; } /// - /// Set Business hours + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type - /// Business Hours Period - /// ApiResponse of RestApiResultBusinessHoursPeriod - public ApiResponse< RestApiResultBusinessHoursPeriod > SetBusinessHoursWithHttpInfo (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod) + /// + /// + /// 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->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"); + 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}/availability/{deliveryType}"; + var localVarPath = "./api/v1.0/stores/{storeId}/propertyId/{propertyId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -5740,11 +7587,6 @@ public ApiResponse< RestApiResultBusinessHoursPeriod > SetBusinessHoursWithHttpI // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { - "application/json", - "text/json", - "application/xml", - "text/xml", - "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -5760,15 +7602,7 @@ public ApiResponse< RestApiResultBusinessHoursPeriod > SetBusinessHoursWithHttpI 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 - } + if (propertyId != null) localVarPathParams.Add("propertyId", this.Configuration.ApiClient.ParameterToString(propertyId)); // path parameter // authentication (oauth2) required // oauth required @@ -5786,51 +7620,46 @@ public ApiResponse< RestApiResultBusinessHoursPeriod > SetBusinessHoursWithHttpI if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetBusinessHours", localVarResponse); + Exception exception = ExceptionFactory("StoresSetPropertyId", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultBusinessHoursPeriod) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBusinessHoursPeriod))); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Set Business hours + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type - /// Business Hours Period - /// Task of RestApiResultBusinessHoursPeriod - public async System.Threading.Tasks.Task SetBusinessHoursAsync (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod) + /// + /// + /// Task of Object + public async System.Threading.Tasks.Task StoresSetPropertyIdAsync (int? storeId, string propertyId) { - ApiResponse localVarResponse = await SetBusinessHoursAsyncWithHttpInfo(storeId, deliveryType, businessHoursPeriod); + ApiResponse localVarResponse = await StoresSetPropertyIdAsyncWithHttpInfo(storeId, propertyId); return localVarResponse.Data; } /// - /// Set Business hours + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Delivery type - /// Business Hours Period - /// Task of ApiResponse (RestApiResultBusinessHoursPeriod) - public async System.Threading.Tasks.Task> SetBusinessHoursAsyncWithHttpInfo (int? storeId, string deliveryType, BusinessHoursPeriodBase businessHoursPeriod) + /// + /// + /// 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->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"); + 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}/availability/{deliveryType}"; + var localVarPath = "./api/v1.0/stores/{storeId}/propertyId/{propertyId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -5840,11 +7669,6 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultBusinessHoursPeriod) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultBusinessHoursPeriod))); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// UPDATE pre order config for a store, by type + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values - /// RestApiArrayResultRestApiDefaultResponse - public RestApiArrayResultRestApiDefaultResponse SetPreOrdeEnabled (int? storeId, string deliveryType, bool? enabled) + /// + /// + /// + /// + public void SupportedSalesChannelsTypes (string propertyId, int? storeId, List salesChannelTypes) { - ApiResponse localVarResponse = SetPreOrdeEnabledWithHttpInfo(storeId, deliveryType, enabled); - return localVarResponse.Data; + SupportedSalesChannelsTypesWithHttpInfo(propertyId, storeId, salesChannelTypes); } /// - /// UPDATE pre order config for a store, by type + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values - /// ApiResponse of RestApiArrayResultRestApiDefaultResponse - public ApiResponse< RestApiArrayResultRestApiDefaultResponse > SetPreOrdeEnabledWithHttpInfo (int? storeId, string deliveryType, bool? enabled) + /// + /// + /// + /// 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->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"); + 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/stores/{storeId}/preorderconfig/{deliveryType}/enabled"; + 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); @@ -5939,6 +7754,11 @@ public ApiResponse< RestApiArrayResultRestApiDefaultResponse > SetPreOrdeEnabled // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -5953,9 +7773,16 @@ public ApiResponse< RestApiArrayResultRestApiDefaultResponse > SetPreOrdeEnabled 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 (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 + 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 @@ -5973,51 +7800,50 @@ public ApiResponse< RestApiArrayResultRestApiDefaultResponse > SetPreOrdeEnabled if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("SetPreOrdeEnabled", localVarResponse); + Exception exception = ExceptionFactory("SupportedSalesChannelsTypes", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestApiDefaultResponse))); + null); } /// - /// UPDATE pre order config for a store, by type + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values - /// Task of RestApiArrayResultRestApiDefaultResponse - public async System.Threading.Tasks.Task SetPreOrdeEnabledAsync (int? storeId, string deliveryType, bool? enabled) + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task SupportedSalesChannelsTypesAsync (string propertyId, int? storeId, List salesChannelTypes) { - ApiResponse localVarResponse = await SetPreOrdeEnabledAsyncWithHttpInfo(storeId, deliveryType, enabled); - return localVarResponse.Data; + await SupportedSalesChannelsTypesAsyncWithHttpInfo(propertyId, storeId, salesChannelTypes); } /// - /// UPDATE pre order config for a store, by type + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values - /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) - public async System.Threading.Tasks.Task> SetPreOrdeEnabledAsyncWithHttpInfo (int? storeId, string deliveryType, bool? enabled) + /// + /// + /// + /// 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->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"); + 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/stores/{storeId}/preorderconfig/{deliveryType}/enabled"; + 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); @@ -6027,6 +7853,11 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultRestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultRestApiDefaultResponse))); + null); } /// - /// Unpublish store + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// public void UnpublishStore (int? storeId) { @@ -6082,10 +7920,10 @@ public void UnpublishStore (int? storeId) } /// - /// Unpublish store + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// ApiResponse of Object(void) public ApiResponse UnpublishStoreWithHttpInfo (int? storeId) { @@ -6145,10 +7983,10 @@ public ApiResponse UnpublishStoreWithHttpInfo (int? storeId) } /// - /// Unpublish store + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of void public async System.Threading.Tasks.Task UnpublishStoreAsync (int? storeId) { @@ -6157,10 +7995,10 @@ public async System.Threading.Tasks.Task UnpublishStoreAsync (int? storeId) } /// - /// Unpublish store + /// /// /// Thrown when fails to make API call - /// Store identifier + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> UnpublishStoreAsyncWithHttpInfo (int? storeId) { @@ -6220,12 +8058,12 @@ public async System.Threading.Tasks.Task> UnpublishStoreAsyn } /// - /// UPDATE pre order config for a store, by type + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values + /// + /// + /// /// RestApiArrayResultRestApiDefaultResponse public RestApiArrayResultRestApiDefaultResponse UpdatePreOrderConfig (int? storeId, string deliveryType, PreOrderConfig preOrderConfig) { @@ -6234,12 +8072,12 @@ public RestApiArrayResultRestApiDefaultResponse UpdatePreOrderConfig (int? store } /// - /// UPDATE pre order config for a store, by type + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values + /// + /// + /// /// ApiResponse of RestApiArrayResultRestApiDefaultResponse public ApiResponse< RestApiArrayResultRestApiDefaultResponse > UpdatePreOrderConfigWithHttpInfo (int? storeId, string deliveryType, PreOrderConfig preOrderConfig) { @@ -6319,12 +8157,12 @@ public ApiResponse< RestApiArrayResultRestApiDefaultResponse > UpdatePreOrderCon } /// - /// UPDATE pre order config for a store, by type + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values + /// + /// + /// /// Task of RestApiArrayResultRestApiDefaultResponse public async System.Threading.Tasks.Task UpdatePreOrderConfigAsync (int? storeId, string deliveryType, PreOrderConfig preOrderConfig) { @@ -6334,12 +8172,12 @@ public async System.Threading.Tasks.Task - /// UPDATE pre order config for a store, by type + /// /// /// Thrown when fails to make API call - /// Store identifier - /// \"delivery\" or \"pickup\" - /// Update pre order config values + /// + /// + /// /// Task of ApiResponse (RestApiArrayResultRestApiDefaultResponse) public async System.Threading.Tasks.Task> UpdatePreOrderConfigAsyncWithHttpInfo (int? storeId, string deliveryType, PreOrderConfig preOrderConfig) { @@ -6419,11 +8257,11 @@ public async System.Threading.Tasks.Task - /// Update store by identifier + /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store + /// + /// /// RestApiResultStore public RestApiResultStore UpdateStore (int? storeId, StoreBase store) { @@ -6432,11 +8270,11 @@ public RestApiResultStore UpdateStore (int? storeId, StoreBase store) } /// - /// Update store by identifier + /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store + /// + /// /// ApiResponse of RestApiResultStore public ApiResponse< RestApiResultStore > UpdateStoreWithHttpInfo (int? storeId, StoreBase store) { @@ -6512,11 +8350,11 @@ public ApiResponse< RestApiResultStore > UpdateStoreWithHttpInfo (int? storeId, } /// - /// Update store by identifier + /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store + /// + /// /// Task of RestApiResultStore public async System.Threading.Tasks.Task UpdateStoreAsync (int? storeId, StoreBase store) { @@ -6526,11 +8364,11 @@ public async System.Threading.Tasks.Task UpdateStoreAsync (i } /// - /// Update store by identifier + /// /// /// Thrown when fails to make API call - /// Store Group identifier - /// Store + /// + /// /// Task of ApiResponse (RestApiResultStore) public async System.Threading.Tasks.Task> UpdateStoreAsyncWithHttpInfo (int? storeId, StoreBase store) { @@ -6606,11 +8444,11 @@ public async System.Threading.Tasks.Task> Update } /// - /// Update store address + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address + /// + /// /// RestApiResultStoreAddress public RestApiResultStoreAddress UpdateStoreAddress (int? storeId, StoreAddressBase storeAddress) { @@ -6619,11 +8457,11 @@ public RestApiResultStoreAddress UpdateStoreAddress (int? storeId, StoreAddressB } /// - /// Update store address + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address + /// + /// /// ApiResponse of RestApiResultStoreAddress public ApiResponse< RestApiResultStoreAddress > UpdateStoreAddressWithHttpInfo (int? storeId, StoreAddressBase storeAddress) { @@ -6699,11 +8537,11 @@ public ApiResponse< RestApiResultStoreAddress > UpdateStoreAddressWithHttpInfo ( } /// - /// Update store address + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address + /// + /// /// Task of RestApiResultStoreAddress public async System.Threading.Tasks.Task UpdateStoreAddressAsync (int? storeId, StoreAddressBase storeAddress) { @@ -6713,11 +8551,11 @@ public async System.Threading.Tasks.Task UpdateStoreA } /// - /// Update store address + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address + /// + /// /// Task of ApiResponse (RestApiResultStoreAddress) public async System.Threading.Tasks.Task> UpdateStoreAddressAsyncWithHttpInfo (int? storeId, StoreAddressBase storeAddress) { @@ -6793,12 +8631,12 @@ public async System.Threading.Tasks.Task> } /// - /// Update store address coordinates + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address coordinates - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// + /// + /// (optional) /// RestApiResultCoordinates public RestApiResultCoordinates UpdateStoreAddressCoordinates (int? storeId, Coordinates coordinates, string appNameId = null) { @@ -6807,12 +8645,12 @@ public RestApiResultCoordinates UpdateStoreAddressCoordinates (int? storeId, Coo } /// - /// Update store address coordinates + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address coordinates - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// + /// + /// (optional) /// ApiResponse of RestApiResultCoordinates public ApiResponse< RestApiResultCoordinates > UpdateStoreAddressCoordinatesWithHttpInfo (int? storeId, Coordinates coordinates, string appNameId = null) { @@ -6889,12 +8727,12 @@ public ApiResponse< RestApiResultCoordinates > UpdateStoreAddressCoordinatesWith } /// - /// Update store address coordinates + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address coordinates - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// + /// + /// (optional) /// Task of RestApiResultCoordinates public async System.Threading.Tasks.Task UpdateStoreAddressCoordinatesAsync (int? storeId, Coordinates coordinates, string appNameId = null) { @@ -6904,12 +8742,12 @@ public async System.Threading.Tasks.Task UpdateStoreAd } /// - /// Update store address coordinates + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address coordinates - /// App Name Id(Not used, still here for compatability reasons) (optional) + /// + /// + /// (optional) /// Task of ApiResponse (RestApiResultCoordinates) public async System.Threading.Tasks.Task> UpdateStoreAddressCoordinatesAsyncWithHttpInfo (int? storeId, Coordinates coordinates, string appNameId = null) { @@ -6986,11 +8824,11 @@ public async System.Threading.Tasks.Task> } /// - /// Update store address + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address + /// + /// /// Object public Object UpdateStoreAddressForm (int? storeId, StoreAddressForm address) { @@ -6999,11 +8837,11 @@ public Object UpdateStoreAddressForm (int? storeId, StoreAddressForm address) } /// - /// Update store address + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address + /// + /// /// ApiResponse of Object public ApiResponse< Object > UpdateStoreAddressFormWithHttpInfo (int? storeId, StoreAddressForm address) { @@ -7079,11 +8917,11 @@ public ApiResponse< Object > UpdateStoreAddressFormWithHttpInfo (int? storeId, S } /// - /// Update store address + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address + /// + /// /// Task of Object public async System.Threading.Tasks.Task UpdateStoreAddressFormAsync (int? storeId, StoreAddressForm address) { @@ -7093,11 +8931,11 @@ public async System.Threading.Tasks.Task UpdateStoreAddressFormAsync (in } /// - /// Update store address + /// /// /// Thrown when fails to make API call - /// Store identifier - /// Store address + /// + /// /// Task of ApiResponse (Object) public async System.Threading.Tasks.Task> UpdateStoreAddressFormAsyncWithHttpInfo (int? storeId, StoreAddressForm address) { diff --git a/src/Flipdish/Api/StripeCustomConnectApi.cs b/src/Flipdish/Api/StripeCustomConnectApi.cs index 9660fc74..a01cc1a8 100644 --- a/src/Flipdish/Api/StripeCustomConnectApi.cs +++ b/src/Flipdish/Api/StripeCustomConnectApi.cs @@ -25,122 +25,122 @@ public interface IStripeCustomConnectApi : IApiAccessor { #region Synchronous Operations /// - /// Create a new Bank Account and Stripe connected account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// RestApiResultBankAccountDetail RestApiResultBankAccountDetail CreateBankAccountAndConnectedAccount (string appId, BankAccountCreate account); /// - /// Create a new Bank Account and Stripe connected account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// ApiResponse of RestApiResultBankAccountDetail ApiResponse CreateBankAccountAndConnectedAccountWithHttpInfo (string appId, BankAccountCreate account); /// - /// Create or update a Stripe connected account associated with the bank account of bankAccountId + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id + /// + /// /// RestApiResultStripeConnectedAccount RestApiResultStripeConnectedAccount CreateStripeConnectedAccount (string appId, int? bankAccountId); /// - /// Create or update a Stripe connected account associated with the bank account of bankAccountId + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id + /// + /// /// ApiResponse of RestApiResultStripeConnectedAccount ApiResponse CreateStripeConnectedAccountWithHttpInfo (string appId, int? bankAccountId); /// - /// Gets a single-use Stripe URL for the given account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Stripe Connected Account Id + /// + /// /// /// RestApiResultStripeConnectedAccount RestApiResultStripeConnectedAccount CreateStripeConnectedAccountLink (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest); /// - /// Gets a single-use Stripe URL for the given account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Stripe Connected Account Id + /// + /// /// /// ApiResponse of RestApiResultStripeConnectedAccount ApiResponse CreateStripeConnectedAccountLinkWithHttpInfo (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest); /// - /// Gets the current verification status of the given connected account + /// /// /// /// /// /// Thrown when fails to make API call + /// /// - /// - /// RestApiResultStripeConnectedAccount - RestApiResultStripeConnectedAccount GetVerificationStatus (string appId, string stripeConnectedAccountId); + /// RestApiArrayResultStripeCustomConnectedAccount + RestApiArrayResultStripeCustomConnectedAccount GetCustomConnect (int? storeId, string appId); /// - /// Gets the current verification status of the given connected account + /// /// /// /// /// /// Thrown when fails to make API call + /// /// - /// - /// ApiResponse of RestApiResultStripeConnectedAccount - ApiResponse GetVerificationStatusWithHttpInfo (string appId, string stripeConnectedAccountId); + /// ApiResponse of RestApiArrayResultStripeCustomConnectedAccount + ApiResponse GetCustomConnectWithHttpInfo (int? storeId, string appId); /// - /// Update bank account's BusinessType and create a Stripe Connected Account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Bank Account Id - /// Bank Account business type + /// + /// + /// /// RestApiResultBankAccountDetail RestApiResultBankAccountDetail SetBankAccountBusinessType (string appId, int? bankAccountId, string businessType); /// - /// Update bank account's BusinessType and create a Stripe Connected Account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Bank Account Id - /// Bank Account business type + /// + /// + /// /// ApiResponse of RestApiResultBankAccountDetail ApiResponse SetBankAccountBusinessTypeWithHttpInfo (string appId, int? bankAccountId, string businessType); /// @@ -167,32 +167,32 @@ public interface IStripeCustomConnectApi : IApiAccessor /// ApiResponse of Object ApiResponse StripeCustomConnectRefreshWithHttpInfo (int? linkRequestId, string appId); /// - /// Update bank account details + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id - /// fields to be updated + /// + /// + /// /// RestApiResultStripeConnectedAccount RestApiResultStripeConnectedAccount UpdateBankAccountDetails (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest); /// - /// Update bank account details + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id - /// fields to be updated + /// + /// + /// /// ApiResponse of RestApiResultStripeConnectedAccount ApiResponse UpdateBankAccountDetailsWithHttpInfo (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest); /// - /// Update Stripe Connection Account's payout schedule + /// /// /// /// @@ -205,7 +205,7 @@ public interface IStripeCustomConnectApi : IApiAccessor RestApiResultModelBase UpdatePayoutSchedule (string appId, string stripeConnectedAccountId, string interval); /// - /// Update Stripe Connection Account's payout schedule + /// /// /// /// @@ -219,122 +219,122 @@ public interface IStripeCustomConnectApi : IApiAccessor #endregion Synchronous Operations #region Asynchronous Operations /// - /// Create a new Bank Account and Stripe connected account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// Task of RestApiResultBankAccountDetail System.Threading.Tasks.Task CreateBankAccountAndConnectedAccountAsync (string appId, BankAccountCreate account); /// - /// Create a new Bank Account and Stripe connected account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// Task of ApiResponse (RestApiResultBankAccountDetail) System.Threading.Tasks.Task> CreateBankAccountAndConnectedAccountAsyncWithHttpInfo (string appId, BankAccountCreate account); /// - /// Create or update a Stripe connected account associated with the bank account of bankAccountId + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id + /// + /// /// Task of RestApiResultStripeConnectedAccount System.Threading.Tasks.Task CreateStripeConnectedAccountAsync (string appId, int? bankAccountId); /// - /// Create or update a Stripe connected account associated with the bank account of bankAccountId + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id + /// + /// /// Task of ApiResponse (RestApiResultStripeConnectedAccount) System.Threading.Tasks.Task> CreateStripeConnectedAccountAsyncWithHttpInfo (string appId, int? bankAccountId); /// - /// Gets a single-use Stripe URL for the given account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Stripe Connected Account Id + /// + /// /// /// Task of RestApiResultStripeConnectedAccount System.Threading.Tasks.Task CreateStripeConnectedAccountLinkAsync (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest); /// - /// Gets a single-use Stripe URL for the given account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Stripe Connected Account Id + /// + /// /// /// Task of ApiResponse (RestApiResultStripeConnectedAccount) System.Threading.Tasks.Task> CreateStripeConnectedAccountLinkAsyncWithHttpInfo (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest); /// - /// Gets the current verification status of the given connected account + /// /// /// /// /// /// Thrown when fails to make API call + /// /// - /// - /// Task of RestApiResultStripeConnectedAccount - System.Threading.Tasks.Task GetVerificationStatusAsync (string appId, string stripeConnectedAccountId); + /// Task of RestApiArrayResultStripeCustomConnectedAccount + System.Threading.Tasks.Task GetCustomConnectAsync (int? storeId, string appId); /// - /// Gets the current verification status of the given connected account + /// /// /// /// /// /// Thrown when fails to make API call + /// /// - /// - /// Task of ApiResponse (RestApiResultStripeConnectedAccount) - System.Threading.Tasks.Task> GetVerificationStatusAsyncWithHttpInfo (string appId, string stripeConnectedAccountId); + /// Task of ApiResponse (RestApiArrayResultStripeCustomConnectedAccount) + System.Threading.Tasks.Task> GetCustomConnectAsyncWithHttpInfo (int? storeId, string appId); /// - /// Update bank account's BusinessType and create a Stripe Connected Account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Bank Account Id - /// Bank Account business type + /// + /// + /// /// Task of RestApiResultBankAccountDetail System.Threading.Tasks.Task SetBankAccountBusinessTypeAsync (string appId, int? bankAccountId, string businessType); /// - /// Update bank account's BusinessType and create a Stripe Connected Account + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name - /// Bank Account Id - /// Bank Account business type + /// + /// + /// /// Task of ApiResponse (RestApiResultBankAccountDetail) System.Threading.Tasks.Task> SetBankAccountBusinessTypeAsyncWithHttpInfo (string appId, int? bankAccountId, string businessType); /// @@ -361,32 +361,32 @@ public interface IStripeCustomConnectApi : IApiAccessor /// Task of ApiResponse (Object) System.Threading.Tasks.Task> StripeCustomConnectRefreshAsyncWithHttpInfo (int? linkRequestId, string appId); /// - /// Update bank account details + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id - /// fields to be updated + /// + /// + /// /// Task of RestApiResultStripeConnectedAccount System.Threading.Tasks.Task UpdateBankAccountDetailsAsync (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest); /// - /// Update bank account details + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id - /// fields to be updated + /// + /// + /// /// Task of ApiResponse (RestApiResultStripeConnectedAccount) System.Threading.Tasks.Task> UpdateBankAccountDetailsAsyncWithHttpInfo (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest); /// - /// Update Stripe Connection Account's payout schedule + /// /// /// /// @@ -399,7 +399,7 @@ public interface IStripeCustomConnectApi : IApiAccessor System.Threading.Tasks.Task UpdatePayoutScheduleAsync (string appId, string stripeConnectedAccountId, string interval); /// - /// Update Stripe Connection Account's payout schedule + /// /// /// /// @@ -511,11 +511,11 @@ public void AddDefaultHeader(string key, string value) } /// - /// Create a new Bank Account and Stripe connected account + /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// RestApiResultBankAccountDetail public RestApiResultBankAccountDetail CreateBankAccountAndConnectedAccount (string appId, BankAccountCreate account) { @@ -524,11 +524,11 @@ public RestApiResultBankAccountDetail CreateBankAccountAndConnectedAccount (stri } /// - /// Create a new Bank Account and Stripe connected account + /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// ApiResponse of RestApiResultBankAccountDetail public ApiResponse< RestApiResultBankAccountDetail > CreateBankAccountAndConnectedAccountWithHttpInfo (string appId, BankAccountCreate account) { @@ -604,11 +604,11 @@ public ApiResponse< RestApiResultBankAccountDetail > CreateBankAccountAndConnect } /// - /// Create a new Bank Account and Stripe connected account + /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// Task of RestApiResultBankAccountDetail public async System.Threading.Tasks.Task CreateBankAccountAndConnectedAccountAsync (string appId, BankAccountCreate account) { @@ -618,11 +618,11 @@ public async System.Threading.Tasks.Task CreateB } /// - /// Create a new Bank Account and Stripe connected account + /// /// /// Thrown when fails to make API call - /// App Name - /// Account to be created + /// + /// /// Task of ApiResponse (RestApiResultBankAccountDetail) public async System.Threading.Tasks.Task> CreateBankAccountAndConnectedAccountAsyncWithHttpInfo (string appId, BankAccountCreate account) { @@ -698,11 +698,11 @@ public async System.Threading.Tasks.Task - /// Create or update a Stripe connected account associated with the bank account of bankAccountId + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id + /// + /// /// RestApiResultStripeConnectedAccount public RestApiResultStripeConnectedAccount CreateStripeConnectedAccount (string appId, int? bankAccountId) { @@ -711,11 +711,11 @@ public RestApiResultStripeConnectedAccount CreateStripeConnectedAccount (string } /// - /// Create or update a Stripe connected account associated with the bank account of bankAccountId + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id + /// + /// /// ApiResponse of RestApiResultStripeConnectedAccount public ApiResponse< RestApiResultStripeConnectedAccount > CreateStripeConnectedAccountWithHttpInfo (string appId, int? bankAccountId) { @@ -779,11 +779,11 @@ public ApiResponse< RestApiResultStripeConnectedAccount > CreateStripeConnectedA } /// - /// Create or update a Stripe connected account associated with the bank account of bankAccountId + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id + /// + /// /// Task of RestApiResultStripeConnectedAccount public async System.Threading.Tasks.Task CreateStripeConnectedAccountAsync (string appId, int? bankAccountId) { @@ -793,11 +793,11 @@ public async System.Threading.Tasks.Task Cr } /// - /// Create or update a Stripe connected account associated with the bank account of bankAccountId + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id + /// + /// /// Task of ApiResponse (RestApiResultStripeConnectedAccount) public async System.Threading.Tasks.Task> CreateStripeConnectedAccountAsyncWithHttpInfo (string appId, int? bankAccountId) { @@ -861,11 +861,11 @@ public async System.Threading.Tasks.Task - /// Gets a single-use Stripe URL for the given account + /// /// /// Thrown when fails to make API call - /// App Name - /// Stripe Connected Account Id + /// + /// /// /// RestApiResultStripeConnectedAccount public RestApiResultStripeConnectedAccount CreateStripeConnectedAccountLink (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest) @@ -875,11 +875,11 @@ public RestApiResultStripeConnectedAccount CreateStripeConnectedAccountLink (str } /// - /// Gets a single-use Stripe URL for the given account + /// /// /// Thrown when fails to make API call - /// App Name - /// Stripe Connected Account Id + /// + /// /// /// ApiResponse of RestApiResultStripeConnectedAccount public ApiResponse< RestApiResultStripeConnectedAccount > CreateStripeConnectedAccountLinkWithHttpInfo (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest) @@ -960,11 +960,11 @@ public ApiResponse< RestApiResultStripeConnectedAccount > CreateStripeConnectedA } /// - /// Gets a single-use Stripe URL for the given account + /// /// /// Thrown when fails to make API call - /// App Name - /// Stripe Connected Account Id + /// + /// /// /// Task of RestApiResultStripeConnectedAccount public async System.Threading.Tasks.Task CreateStripeConnectedAccountLinkAsync (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest) @@ -975,11 +975,11 @@ public async System.Threading.Tasks.Task Cr } /// - /// Gets a single-use Stripe URL for the given account + /// /// /// Thrown when fails to make API call - /// App Name - /// Stripe Connected Account Id + /// + /// /// /// Task of ApiResponse (RestApiResultStripeConnectedAccount) public async System.Threading.Tasks.Task> CreateStripeConnectedAccountLinkAsyncWithHttpInfo (string appId, string stripeConnectedAccountId, StripeAccountLinkRequest stripeAccountLinkRequest) @@ -1060,35 +1060,35 @@ public async System.Threading.Tasks.Task - /// Gets the current verification status of the given connected account + /// /// /// Thrown when fails to make API call + /// /// - /// - /// RestApiResultStripeConnectedAccount - public RestApiResultStripeConnectedAccount GetVerificationStatus (string appId, string stripeConnectedAccountId) + /// RestApiArrayResultStripeCustomConnectedAccount + public RestApiArrayResultStripeCustomConnectedAccount GetCustomConnect (int? storeId, string appId) { - ApiResponse localVarResponse = GetVerificationStatusWithHttpInfo(appId, stripeConnectedAccountId); + ApiResponse localVarResponse = GetCustomConnectWithHttpInfo(storeId, appId); return localVarResponse.Data; } /// - /// Gets the current verification status of the given connected account + /// /// /// Thrown when fails to make API call + /// /// - /// - /// ApiResponse of RestApiResultStripeConnectedAccount - public ApiResponse< RestApiResultStripeConnectedAccount > GetVerificationStatusWithHttpInfo (string appId, string stripeConnectedAccountId) + /// 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->GetVerificationStatus"); - // verify the required parameter 'stripeConnectedAccountId' is set - if (stripeConnectedAccountId == null) - throw new ApiException(400, "Missing required parameter 'stripeConnectedAccountId' when calling StripeCustomConnectApi->GetVerificationStatus"); + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->GetCustomConnect"); - var localVarPath = "./api/v1.0/{appId}/customconnect/verification-status"; + var localVarPath = "./api/v1.0/{appId}/customconnect/{storeId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1112,8 +1112,8 @@ public ApiResponse< RestApiResultStripeConnectedAccount > GetVerificationStatusW 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 (stripeConnectedAccountId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "stripeConnectedAccountId", stripeConnectedAccountId)); // query parameter // authentication (oauth2) required // oauth required @@ -1131,46 +1131,46 @@ public ApiResponse< RestApiResultStripeConnectedAccount > GetVerificationStatusW if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetVerificationStatus", localVarResponse); + Exception exception = ExceptionFactory("GetCustomConnect", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultStripeConnectedAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStripeConnectedAccount))); + (RestApiArrayResultStripeCustomConnectedAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStripeCustomConnectedAccount))); } /// - /// Gets the current verification status of the given connected account + /// /// /// Thrown when fails to make API call + /// /// - /// - /// Task of RestApiResultStripeConnectedAccount - public async System.Threading.Tasks.Task GetVerificationStatusAsync (string appId, string stripeConnectedAccountId) + /// Task of RestApiArrayResultStripeCustomConnectedAccount + public async System.Threading.Tasks.Task GetCustomConnectAsync (int? storeId, string appId) { - ApiResponse localVarResponse = await GetVerificationStatusAsyncWithHttpInfo(appId, stripeConnectedAccountId); + ApiResponse localVarResponse = await GetCustomConnectAsyncWithHttpInfo(storeId, appId); return localVarResponse.Data; } /// - /// Gets the current verification status of the given connected account + /// /// /// Thrown when fails to make API call + /// /// - /// - /// Task of ApiResponse (RestApiResultStripeConnectedAccount) - public async System.Threading.Tasks.Task> GetVerificationStatusAsyncWithHttpInfo (string appId, string stripeConnectedAccountId) + /// 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->GetVerificationStatus"); - // verify the required parameter 'stripeConnectedAccountId' is set - if (stripeConnectedAccountId == null) - throw new ApiException(400, "Missing required parameter 'stripeConnectedAccountId' when calling StripeCustomConnectApi->GetVerificationStatus"); + throw new ApiException(400, "Missing required parameter 'appId' when calling StripeCustomConnectApi->GetCustomConnect"); - var localVarPath = "./api/v1.0/{appId}/customconnect/verification-status"; + var localVarPath = "./api/v1.0/{appId}/customconnect/{storeId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1194,8 +1194,8 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultStripeConnectedAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStripeConnectedAccount))); + (RestApiArrayResultStripeCustomConnectedAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultStripeCustomConnectedAccount))); } /// - /// Update bank account's BusinessType and create a Stripe Connected Account + /// /// /// Thrown when fails to make API call - /// App Name - /// Bank Account Id - /// Bank Account business type + /// + /// + /// /// RestApiResultBankAccountDetail public RestApiResultBankAccountDetail SetBankAccountBusinessType (string appId, int? bankAccountId, string businessType) { @@ -1237,12 +1237,12 @@ public RestApiResultBankAccountDetail SetBankAccountBusinessType (string appId, } /// - /// Update bank account's BusinessType and create a Stripe Connected Account + /// /// /// Thrown when fails to make API call - /// App Name - /// Bank Account Id - /// Bank Account business type + /// + /// + /// /// ApiResponse of RestApiResultBankAccountDetail public ApiResponse< RestApiResultBankAccountDetail > SetBankAccountBusinessTypeWithHttpInfo (string appId, int? bankAccountId, string businessType) { @@ -1322,12 +1322,12 @@ public ApiResponse< RestApiResultBankAccountDetail > SetBankAccountBusinessTypeW } /// - /// Update bank account's BusinessType and create a Stripe Connected Account + /// /// /// Thrown when fails to make API call - /// App Name - /// Bank Account Id - /// Bank Account business type + /// + /// + /// /// Task of RestApiResultBankAccountDetail public async System.Threading.Tasks.Task SetBankAccountBusinessTypeAsync (string appId, int? bankAccountId, string businessType) { @@ -1337,12 +1337,12 @@ public async System.Threading.Tasks.Task SetBank } /// - /// Update bank account's BusinessType and create a Stripe Connected Account + /// /// /// Thrown when fails to make API call - /// App Name - /// Bank Account Id - /// Bank Account business type + /// + /// + /// /// Task of ApiResponse (RestApiResultBankAccountDetail) public async System.Threading.Tasks.Task> SetBankAccountBusinessTypeAsyncWithHttpInfo (string appId, int? bankAccountId, string businessType) { @@ -1585,12 +1585,12 @@ public async System.Threading.Tasks.Task> StripeCustomConnec } /// - /// Update bank account details + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id - /// fields to be updated + /// + /// + /// /// RestApiResultStripeConnectedAccount public RestApiResultStripeConnectedAccount UpdateBankAccountDetails (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest) { @@ -1599,12 +1599,12 @@ public RestApiResultStripeConnectedAccount UpdateBankAccountDetails (string appI } /// - /// Update bank account details + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id - /// fields to be updated + /// + /// + /// /// ApiResponse of RestApiResultStripeConnectedAccount public ApiResponse< RestApiResultStripeConnectedAccount > UpdateBankAccountDetailsWithHttpInfo (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest) { @@ -1684,12 +1684,12 @@ public ApiResponse< RestApiResultStripeConnectedAccount > UpdateBankAccountDetai } /// - /// Update bank account details + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id - /// fields to be updated + /// + /// + /// /// Task of RestApiResultStripeConnectedAccount public async System.Threading.Tasks.Task UpdateBankAccountDetailsAsync (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest) { @@ -1699,12 +1699,12 @@ public async System.Threading.Tasks.Task Up } /// - /// Update bank account details + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Bank Account Id - /// fields to be updated + /// + /// + /// /// Task of ApiResponse (RestApiResultStripeConnectedAccount) public async System.Threading.Tasks.Task> UpdateBankAccountDetailsAsyncWithHttpInfo (string appId, int? bankAccountId, BankAccountDetailsUpdateRequest updateRequest) { @@ -1784,7 +1784,7 @@ public async System.Threading.Tasks.Task - /// Update Stripe Connection Account's payout schedule + /// /// /// Thrown when fails to make API call /// @@ -1798,7 +1798,7 @@ public RestApiResultModelBase UpdatePayoutSchedule (string appId, string stripeC } /// - /// Update Stripe Connection Account's payout schedule + /// /// /// Thrown when fails to make API call /// @@ -1871,7 +1871,7 @@ public ApiResponse< RestApiResultModelBase > UpdatePayoutScheduleWithHttpInfo (s } /// - /// Update Stripe Connection Account's payout schedule + /// /// /// Thrown when fails to make API call /// @@ -1886,7 +1886,7 @@ public async System.Threading.Tasks.Task UpdatePayoutSch } /// - /// Update Stripe Connection Account's payout schedule + /// /// /// Thrown when fails to make API call /// diff --git a/src/Flipdish/Api/StuartApi.cs b/src/Flipdish/Api/StuartApi.cs index 42d813de..81e3d89d 100644 --- a/src/Flipdish/Api/StuartApi.cs +++ b/src/Flipdish/Api/StuartApi.cs @@ -25,185 +25,185 @@ public interface IStuartApi : IApiAccessor { #region Synchronous Operations /// - /// Cancel a stuart job + /// /// /// /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// Object Object StuartCancelJob (int? jobId, int? storeId); /// - /// Cancel a stuart job + /// /// /// /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// ApiResponse of Object ApiResponse StuartCancelJobWithHttpInfo (int? jobId, int? storeId); /// - /// Get start job details + /// /// /// /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// RestApiResultJobResponse RestApiResultJobResponse StuartGetJob (int? jobId, int? storeId); /// - /// Get start job details + /// /// /// /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// ApiResponse of RestApiResultJobResponse ApiResponse StuartGetJobWithHttpInfo (int? jobId, int? storeId); /// - /// Get stuart settings for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Identifier + /// /// RestApiResultStuartSettings RestApiResultStuartSettings StuartGetStuartSettings (int? storeId); /// - /// Get stuart settings for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Identifier + /// /// ApiResponse of RestApiResultStuartSettings ApiResponse StuartGetStuartSettingsWithHttpInfo (int? storeId); /// - /// Set stuart settings for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Identifier - /// Stuart settings model + /// + /// /// Object Object StuartPostStuartSettings (int? storeId, StuartSettings stuartSettings); /// - /// Set stuart settings for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Identifier - /// Stuart settings model + /// + /// /// ApiResponse of Object ApiResponse StuartPostStuartSettingsWithHttpInfo (int? storeId, StuartSettings stuartSettings); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Cancel a stuart job + /// /// /// /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// Task of Object System.Threading.Tasks.Task StuartCancelJobAsync (int? jobId, int? storeId); /// - /// Cancel a stuart job + /// /// /// /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// Task of ApiResponse (Object) System.Threading.Tasks.Task> StuartCancelJobAsyncWithHttpInfo (int? jobId, int? storeId); /// - /// Get start job details + /// /// /// /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// Task of RestApiResultJobResponse System.Threading.Tasks.Task StuartGetJobAsync (int? jobId, int? storeId); /// - /// Get start job details + /// /// /// /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// Task of ApiResponse (RestApiResultJobResponse) System.Threading.Tasks.Task> StuartGetJobAsyncWithHttpInfo (int? jobId, int? storeId); /// - /// Get stuart settings for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Identifier + /// /// Task of RestApiResultStuartSettings System.Threading.Tasks.Task StuartGetStuartSettingsAsync (int? storeId); /// - /// Get stuart settings for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Identifier + /// /// Task of ApiResponse (RestApiResultStuartSettings) System.Threading.Tasks.Task> StuartGetStuartSettingsAsyncWithHttpInfo (int? storeId); /// - /// Set stuart settings for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Identifier - /// Stuart settings model + /// + /// /// Task of Object System.Threading.Tasks.Task StuartPostStuartSettingsAsync (int? storeId, StuartSettings stuartSettings); /// - /// Set stuart settings for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Identifier - /// Stuart settings model + /// + /// /// Task of ApiResponse (Object) System.Threading.Tasks.Task> StuartPostStuartSettingsAsyncWithHttpInfo (int? storeId, StuartSettings stuartSettings); #endregion Asynchronous Operations @@ -307,11 +307,11 @@ public void AddDefaultHeader(string key, string value) } /// - /// Cancel a stuart job + /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// Object public Object StuartCancelJob (int? jobId, int? storeId) { @@ -320,11 +320,11 @@ public Object StuartCancelJob (int? jobId, int? storeId) } /// - /// Cancel a stuart job + /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// ApiResponse of Object public ApiResponse< Object > StuartCancelJobWithHttpInfo (int? jobId, int? storeId) { @@ -388,11 +388,11 @@ public ApiResponse< Object > StuartCancelJobWithHttpInfo (int? jobId, int? store } /// - /// Cancel a stuart job + /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// Task of Object public async System.Threading.Tasks.Task StuartCancelJobAsync (int? jobId, int? storeId) { @@ -402,11 +402,11 @@ public async System.Threading.Tasks.Task StuartCancelJobAsync (int? jobI } /// - /// Cancel a stuart job + /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// Task of ApiResponse (Object) public async System.Threading.Tasks.Task> StuartCancelJobAsyncWithHttpInfo (int? jobId, int? storeId) { @@ -470,11 +470,11 @@ public async System.Threading.Tasks.Task> StuartCancelJobAsy } /// - /// Get start job details + /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// RestApiResultJobResponse public RestApiResultJobResponse StuartGetJob (int? jobId, int? storeId) { @@ -483,11 +483,11 @@ public RestApiResultJobResponse StuartGetJob (int? jobId, int? storeId) } /// - /// Get start job details + /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// ApiResponse of RestApiResultJobResponse public ApiResponse< RestApiResultJobResponse > StuartGetJobWithHttpInfo (int? jobId, int? storeId) { @@ -551,11 +551,11 @@ public ApiResponse< RestApiResultJobResponse > StuartGetJobWithHttpInfo (int? jo } /// - /// Get start job details + /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// Task of RestApiResultJobResponse public async System.Threading.Tasks.Task StuartGetJobAsync (int? jobId, int? storeId) { @@ -565,11 +565,11 @@ public async System.Threading.Tasks.Task StuartGetJobA } /// - /// Get start job details + /// /// /// Thrown when fails to make API call - /// Stuart job identifier - /// Store identifier + /// + /// /// Task of ApiResponse (RestApiResultJobResponse) public async System.Threading.Tasks.Task> StuartGetJobAsyncWithHttpInfo (int? jobId, int? storeId) { @@ -633,10 +633,10 @@ public async System.Threading.Tasks.Task> } /// - /// Get stuart settings for a store + /// /// /// Thrown when fails to make API call - /// Store Identifier + /// /// RestApiResultStuartSettings public RestApiResultStuartSettings StuartGetStuartSettings (int? storeId) { @@ -645,10 +645,10 @@ public RestApiResultStuartSettings StuartGetStuartSettings (int? storeId) } /// - /// Get stuart settings for a store + /// /// /// Thrown when fails to make API call - /// Store Identifier + /// /// ApiResponse of RestApiResultStuartSettings public ApiResponse< RestApiResultStuartSettings > StuartGetStuartSettingsWithHttpInfo (int? storeId) { @@ -708,10 +708,10 @@ public ApiResponse< RestApiResultStuartSettings > StuartGetStuartSettingsWithHtt } /// - /// Get stuart settings for a store + /// /// /// Thrown when fails to make API call - /// Store Identifier + /// /// Task of RestApiResultStuartSettings public async System.Threading.Tasks.Task StuartGetStuartSettingsAsync (int? storeId) { @@ -721,10 +721,10 @@ public async System.Threading.Tasks.Task StuartGetS } /// - /// Get stuart settings for a store + /// /// /// Thrown when fails to make API call - /// Store Identifier + /// /// Task of ApiResponse (RestApiResultStuartSettings) public async System.Threading.Tasks.Task> StuartGetStuartSettingsAsyncWithHttpInfo (int? storeId) { @@ -784,11 +784,11 @@ public async System.Threading.Tasks.Task - /// Set stuart settings for a store + /// /// /// Thrown when fails to make API call - /// Store Identifier - /// Stuart settings model + /// + /// /// Object public Object StuartPostStuartSettings (int? storeId, StuartSettings stuartSettings) { @@ -797,11 +797,11 @@ public Object StuartPostStuartSettings (int? storeId, StuartSettings stuartSetti } /// - /// Set stuart settings for a store + /// /// /// Thrown when fails to make API call - /// Store Identifier - /// Stuart settings model + /// + /// /// ApiResponse of Object public ApiResponse< Object > StuartPostStuartSettingsWithHttpInfo (int? storeId, StuartSettings stuartSettings) { @@ -877,11 +877,11 @@ public ApiResponse< Object > StuartPostStuartSettingsWithHttpInfo (int? storeId, } /// - /// Set stuart settings for a store + /// /// /// Thrown when fails to make API call - /// Store Identifier - /// Stuart settings model + /// + /// /// Task of Object public async System.Threading.Tasks.Task StuartPostStuartSettingsAsync (int? storeId, StuartSettings stuartSettings) { @@ -891,11 +891,11 @@ public async System.Threading.Tasks.Task StuartPostStuartSettingsAsync ( } /// - /// Set stuart settings for a store + /// /// /// Thrown when fails to make API call - /// Store Identifier - /// Stuart settings model + /// + /// /// Task of ApiResponse (Object) public async System.Threading.Tasks.Task> StuartPostStuartSettingsAsyncWithHttpInfo (int? storeId, StuartSettings stuartSettings) { diff --git a/src/Flipdish/Api/KioskStoreSettingsApi.cs b/src/Flipdish/Api/SubscriptionsApi.cs similarity index 58% rename from src/Flipdish/Api/KioskStoreSettingsApi.cs rename to src/Flipdish/Api/SubscriptionsApi.cs index b16fedb2..6d444459 100644 --- a/src/Flipdish/Api/KioskStoreSettingsApi.cs +++ b/src/Flipdish/Api/SubscriptionsApi.cs @@ -21,51 +21,59 @@ namespace Flipdish.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IKioskStoreSettingsApi : IApiAccessor + public interface ISubscriptionsApi : IApiAccessor { #region Synchronous Operations /// - /// Get all kiosk settings associated with a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id - /// RestApiResultStoreKioskSettings - RestApiResultStoreKioskSettings GetAllKioskSettingsForStore (int? storeId, string appId); + /// + /// + /// RestApiResultSubscription + RestApiResultSubscription GetSubscriptionById (string appId, string subscriptionId); /// - /// Get all kiosk settings associated with a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id - /// ApiResponse of RestApiResultStoreKioskSettings - ApiResponse GetAllKioskSettingsForStoreWithHttpInfo (int? storeId, string appId); + /// + /// + /// ApiResponse of RestApiResultSubscription + ApiResponse GetSubscriptionByIdWithHttpInfo (string appId, string subscriptionId); /// - /// [For Kiosk use only] Get all stores connected to a Kiosk + /// /// /// /// /// /// Thrown when fails to make API call - /// RestApiResultKioskStoreSettings - RestApiResultKioskStoreSettings GetAllStoreSettingsForKioskHydra (); + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiArrayResultSubscriptionSummary + RestApiArrayResultSubscriptionSummary GetSubscriptionsForApp (string appId, bool? excludeNotOwnedSubscriptions = null, List storeId = null, bool? excludeCancelledSubscriptions = null); /// - /// [For Kiosk use only] Get all stores connected to a Kiosk + /// /// /// /// /// /// Thrown when fails to make API call - /// ApiResponse of RestApiResultKioskStoreSettings - ApiResponse GetAllStoreSettingsForKioskHydraWithHttpInfo (); + /// + /// (optional) + /// (optional) + /// (optional) + /// ApiResponse of RestApiArrayResultSubscriptionSummary + ApiResponse GetSubscriptionsForAppWithHttpInfo (string appId, bool? excludeNotOwnedSubscriptions = null, List storeId = null, bool? excludeCancelledSubscriptions = null); /// /// /// @@ -74,10 +82,9 @@ public interface IKioskStoreSettingsApi : IApiAccessor /// /// Thrown when fails to make API call /// - /// - /// - /// RestApiResultKioskCashSetting - RestApiResultKioskCashSetting UpdateCashSettingForKiosk (string appId, string deviceId, bool? isCashEnabled); + /// (optional) + /// RestApiResultHasPaymentMethodResponse + RestApiResultHasPaymentMethodResponse HasCustomerGotPaymentMethodOnFile (string appId, string email = null); /// /// @@ -87,54 +94,61 @@ public interface IKioskStoreSettingsApi : IApiAccessor /// /// Thrown when fails to make API call /// - /// - /// - /// ApiResponse of RestApiResultKioskCashSetting - ApiResponse UpdateCashSettingForKioskWithHttpInfo (string appId, string deviceId, bool? isCashEnabled); + /// (optional) + /// ApiResponse of RestApiResultHasPaymentMethodResponse + ApiResponse HasCustomerGotPaymentMethodOnFileWithHttpInfo (string appId, string email = null); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get all kiosk settings associated with a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id - /// Task of RestApiResultStoreKioskSettings - System.Threading.Tasks.Task GetAllKioskSettingsForStoreAsync (int? storeId, string appId); + /// + /// + /// Task of RestApiResultSubscription + System.Threading.Tasks.Task GetSubscriptionByIdAsync (string appId, string subscriptionId); /// - /// Get all kiosk settings associated with a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id - /// Task of ApiResponse (RestApiResultStoreKioskSettings) - System.Threading.Tasks.Task> GetAllKioskSettingsForStoreAsyncWithHttpInfo (int? storeId, string appId); + /// + /// + /// Task of ApiResponse (RestApiResultSubscription) + System.Threading.Tasks.Task> GetSubscriptionByIdAsyncWithHttpInfo (string appId, string subscriptionId); /// - /// [For Kiosk use only] Get all stores connected to a Kiosk + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of RestApiResultKioskStoreSettings - System.Threading.Tasks.Task GetAllStoreSettingsForKioskHydraAsync (); + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of RestApiArrayResultSubscriptionSummary + System.Threading.Tasks.Task GetSubscriptionsForAppAsync (string appId, bool? excludeNotOwnedSubscriptions = null, List storeId = null, bool? excludeCancelledSubscriptions = null); /// - /// [For Kiosk use only] Get all stores connected to a Kiosk + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of ApiResponse (RestApiResultKioskStoreSettings) - System.Threading.Tasks.Task> GetAllStoreSettingsForKioskHydraAsyncWithHttpInfo (); + /// + /// (optional) + /// (optional) + /// (optional) + /// Task of ApiResponse (RestApiArrayResultSubscriptionSummary) + System.Threading.Tasks.Task> GetSubscriptionsForAppAsyncWithHttpInfo (string appId, bool? excludeNotOwnedSubscriptions = null, List storeId = null, bool? excludeCancelledSubscriptions = null); /// /// /// @@ -143,10 +157,9 @@ public interface IKioskStoreSettingsApi : IApiAccessor /// /// Thrown when fails to make API call /// - /// - /// - /// Task of RestApiResultKioskCashSetting - System.Threading.Tasks.Task UpdateCashSettingForKioskAsync (string appId, string deviceId, bool? isCashEnabled); + /// (optional) + /// Task of RestApiResultHasPaymentMethodResponse + System.Threading.Tasks.Task HasCustomerGotPaymentMethodOnFileAsync (string appId, string email = null); /// /// @@ -156,25 +169,24 @@ public interface IKioskStoreSettingsApi : IApiAccessor /// /// Thrown when fails to make API call /// - /// - /// - /// Task of ApiResponse (RestApiResultKioskCashSetting) - System.Threading.Tasks.Task> UpdateCashSettingForKioskAsyncWithHttpInfo (string appId, string deviceId, bool? isCashEnabled); + /// (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 KioskStoreSettingsApi : IKioskStoreSettingsApi + public partial class SubscriptionsApi : ISubscriptionsApi { private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// - public KioskStoreSettingsApi(String basePath) + public SubscriptionsApi(String basePath) { this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; @@ -182,12 +194,12 @@ public KioskStoreSettingsApi(String basePath) } /// - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// - public KioskStoreSettingsApi(Flipdish.Client.Configuration configuration = null) + public SubscriptionsApi(Flipdish.Client.Configuration configuration = null) { if (configuration == null) // use the default one in Configuration this.Configuration = Flipdish.Client.Configuration.Default; @@ -261,35 +273,35 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get all kiosk settings associated with a store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id - /// RestApiResultStoreKioskSettings - public RestApiResultStoreKioskSettings GetAllKioskSettingsForStore (int? storeId, string appId) + /// + /// + /// RestApiResultSubscription + public RestApiResultSubscription GetSubscriptionById (string appId, string subscriptionId) { - ApiResponse localVarResponse = GetAllKioskSettingsForStoreWithHttpInfo(storeId, appId); + ApiResponse localVarResponse = GetSubscriptionByIdWithHttpInfo(appId, subscriptionId); return localVarResponse.Data; } /// - /// Get all kiosk settings associated with a store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id - /// ApiResponse of RestApiResultStoreKioskSettings - public ApiResponse< RestApiResultStoreKioskSettings > GetAllKioskSettingsForStoreWithHttpInfo (int? storeId, string appId) + /// + /// + /// ApiResponse of RestApiResultSubscription + public ApiResponse< RestApiResultSubscription > GetSubscriptionByIdWithHttpInfo (string appId, string subscriptionId) { - // verify the required parameter 'storeId' is set - if (storeId == null) - throw new ApiException(400, "Missing required parameter 'storeId' when calling KioskStoreSettingsApi->GetAllKioskSettingsForStore"); // verify the required parameter 'appId' is set if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling KioskStoreSettingsApi->GetAllKioskSettingsForStore"); + 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}/kiosksettings/store/{storeId}"; + var localVarPath = "./api/v1.0/{appId}/subscriptions/{subscriptionId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -313,8 +325,8 @@ public ApiResponse< RestApiResultStoreKioskSettings > GetAllKioskSettingsForStor 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 (subscriptionId != null) localVarPathParams.Add("subscriptionId", this.Configuration.ApiClient.ParameterToString(subscriptionId)); // path parameter // authentication (oauth2) required // oauth required @@ -332,46 +344,46 @@ public ApiResponse< RestApiResultStoreKioskSettings > GetAllKioskSettingsForStor if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetAllKioskSettingsForStore", localVarResponse); + Exception exception = ExceptionFactory("GetSubscriptionById", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultStoreKioskSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStoreKioskSettings))); + (RestApiResultSubscription) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultSubscription))); } /// - /// Get all kiosk settings associated with a store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id - /// Task of RestApiResultStoreKioskSettings - public async System.Threading.Tasks.Task GetAllKioskSettingsForStoreAsync (int? storeId, string appId) + /// + /// + /// Task of RestApiResultSubscription + public async System.Threading.Tasks.Task GetSubscriptionByIdAsync (string appId, string subscriptionId) { - ApiResponse localVarResponse = await GetAllKioskSettingsForStoreAsyncWithHttpInfo(storeId, appId); + ApiResponse localVarResponse = await GetSubscriptionByIdAsyncWithHttpInfo(appId, subscriptionId); return localVarResponse.Data; } /// - /// Get all kiosk settings associated with a store + /// /// /// Thrown when fails to make API call - /// Store identifier - /// App Name Id - /// Task of ApiResponse (RestApiResultStoreKioskSettings) - public async System.Threading.Tasks.Task> GetAllKioskSettingsForStoreAsyncWithHttpInfo (int? storeId, string appId) + /// + /// + /// Task of ApiResponse (RestApiResultSubscription) + public async System.Threading.Tasks.Task> GetSubscriptionByIdAsyncWithHttpInfo (string appId, string subscriptionId) { - // verify the required parameter 'storeId' is set - if (storeId == null) - throw new ApiException(400, "Missing required parameter 'storeId' when calling KioskStoreSettingsApi->GetAllKioskSettingsForStore"); // verify the required parameter 'appId' is set if (appId == null) - throw new ApiException(400, "Missing required parameter 'appId' when calling KioskStoreSettingsApi->GetAllKioskSettingsForStore"); + 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}/kiosksettings/store/{storeId}"; + var localVarPath = "./api/v1.0/{appId}/subscriptions/{subscriptionId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -395,8 +407,8 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultStoreKioskSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultStoreKioskSettings))); + (RestApiResultSubscription) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultSubscription))); } /// - /// [For Kiosk use only] Get all stores connected to a Kiosk + /// /// /// Thrown when fails to make API call - /// RestApiResultKioskStoreSettings - public RestApiResultKioskStoreSettings GetAllStoreSettingsForKioskHydra () + /// + /// (optional) + /// (optional) + /// (optional) + /// RestApiArrayResultSubscriptionSummary + public RestApiArrayResultSubscriptionSummary GetSubscriptionsForApp (string appId, bool? excludeNotOwnedSubscriptions = null, List storeId = null, bool? excludeCancelledSubscriptions = null) { - ApiResponse localVarResponse = GetAllStoreSettingsForKioskHydraWithHttpInfo(); + ApiResponse localVarResponse = GetSubscriptionsForAppWithHttpInfo(appId, excludeNotOwnedSubscriptions, storeId, excludeCancelledSubscriptions); return localVarResponse.Data; } /// - /// [For Kiosk use only] Get all stores connected to a Kiosk + /// /// /// Thrown when fails to make API call - /// ApiResponse of RestApiResultKioskStoreSettings - public ApiResponse< RestApiResultKioskStoreSettings > GetAllStoreSettingsForKioskHydraWithHttpInfo () + /// + /// (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/kioskstoresettings"; + var localVarPath = "./api/v1.0/{appId}/subscriptions"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -466,6 +489,10 @@ public ApiResponse< RestApiResultKioskStoreSettings > GetAllStoreSettingsForKios 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 @@ -483,36 +510,47 @@ public ApiResponse< RestApiResultKioskStoreSettings > GetAllStoreSettingsForKios if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetAllStoreSettingsForKioskHydra", localVarResponse); + Exception exception = ExceptionFactory("GetSubscriptionsForApp", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultKioskStoreSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskStoreSettings))); + (RestApiArrayResultSubscriptionSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultSubscriptionSummary))); } /// - /// [For Kiosk use only] Get all stores connected to a Kiosk + /// /// /// Thrown when fails to make API call - /// Task of RestApiResultKioskStoreSettings - public async System.Threading.Tasks.Task GetAllStoreSettingsForKioskHydraAsync () + /// + /// (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 GetAllStoreSettingsForKioskHydraAsyncWithHttpInfo(); + ApiResponse localVarResponse = await GetSubscriptionsForAppAsyncWithHttpInfo(appId, excludeNotOwnedSubscriptions, storeId, excludeCancelledSubscriptions); return localVarResponse.Data; } /// - /// [For Kiosk use only] Get all stores connected to a Kiosk + /// /// /// Thrown when fails to make API call - /// Task of ApiResponse (RestApiResultKioskStoreSettings) - public async System.Threading.Tasks.Task> GetAllStoreSettingsForKioskHydraAsyncWithHttpInfo () + /// + /// (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/kioskstoresettings"; + var localVarPath = "./api/v1.0/{appId}/subscriptions"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -536,6 +574,10 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultKioskStoreSettings) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskStoreSettings))); + (RestApiArrayResultSubscriptionSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultSubscriptionSummary))); } /// @@ -567,12 +609,11 @@ public async System.Threading.Tasks.Task /// Thrown when fails to make API call /// - /// - /// - /// RestApiResultKioskCashSetting - public RestApiResultKioskCashSetting UpdateCashSettingForKiosk (string appId, string deviceId, bool? isCashEnabled) + /// (optional) + /// RestApiResultHasPaymentMethodResponse + public RestApiResultHasPaymentMethodResponse HasCustomerGotPaymentMethodOnFile (string appId, string email = null) { - ApiResponse localVarResponse = UpdateCashSettingForKioskWithHttpInfo(appId, deviceId, isCashEnabled); + ApiResponse localVarResponse = HasCustomerGotPaymentMethodOnFileWithHttpInfo(appId, email); return localVarResponse.Data; } @@ -581,22 +622,15 @@ public RestApiResultKioskCashSetting UpdateCashSettingForKiosk (string appId, st /// /// Thrown when fails to make API call /// - /// - /// - /// ApiResponse of RestApiResultKioskCashSetting - public ApiResponse< RestApiResultKioskCashSetting > UpdateCashSettingForKioskWithHttpInfo (string appId, string deviceId, bool? isCashEnabled) + /// (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 KioskStoreSettingsApi->UpdateCashSettingForKiosk"); - // verify the required parameter 'deviceId' is set - if (deviceId == null) - throw new ApiException(400, "Missing required parameter 'deviceId' when calling KioskStoreSettingsApi->UpdateCashSettingForKiosk"); - // verify the required parameter 'isCashEnabled' is set - if (isCashEnabled == null) - throw new ApiException(400, "Missing required parameter 'isCashEnabled' when calling KioskStoreSettingsApi->UpdateCashSettingForKiosk"); - - var localVarPath = "./api/v1.0/{appId}/kiosksettings/cash"; + 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); @@ -621,8 +655,7 @@ public ApiResponse< RestApiResultKioskCashSetting > UpdateCashSettingForKioskWit 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 + if (email != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "email", email)); // query parameter // authentication (oauth2) required // oauth required @@ -633,20 +666,20 @@ public ApiResponse< RestApiResultKioskCashSetting > UpdateCashSettingForKioskWit // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("UpdateCashSettingForKiosk", localVarResponse); + Exception exception = ExceptionFactory("HasCustomerGotPaymentMethodOnFile", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultKioskCashSetting) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskCashSetting))); + (RestApiResultHasPaymentMethodResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHasPaymentMethodResponse))); } /// @@ -654,12 +687,11 @@ public ApiResponse< RestApiResultKioskCashSetting > UpdateCashSettingForKioskWit /// /// Thrown when fails to make API call /// - /// - /// - /// Task of RestApiResultKioskCashSetting - public async System.Threading.Tasks.Task UpdateCashSettingForKioskAsync (string appId, string deviceId, bool? isCashEnabled) + /// (optional) + /// Task of RestApiResultHasPaymentMethodResponse + public async System.Threading.Tasks.Task HasCustomerGotPaymentMethodOnFileAsync (string appId, string email = null) { - ApiResponse localVarResponse = await UpdateCashSettingForKioskAsyncWithHttpInfo(appId, deviceId, isCashEnabled); + ApiResponse localVarResponse = await HasCustomerGotPaymentMethodOnFileAsyncWithHttpInfo(appId, email); return localVarResponse.Data; } @@ -669,22 +701,15 @@ public async System.Threading.Tasks.Task UpdateCa /// /// Thrown when fails to make API call /// - /// - /// - /// Task of ApiResponse (RestApiResultKioskCashSetting) - public async System.Threading.Tasks.Task> UpdateCashSettingForKioskAsyncWithHttpInfo (string appId, string deviceId, bool? isCashEnabled) + /// (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 KioskStoreSettingsApi->UpdateCashSettingForKiosk"); - // verify the required parameter 'deviceId' is set - if (deviceId == null) - throw new ApiException(400, "Missing required parameter 'deviceId' when calling KioskStoreSettingsApi->UpdateCashSettingForKiosk"); - // verify the required parameter 'isCashEnabled' is set - if (isCashEnabled == null) - throw new ApiException(400, "Missing required parameter 'isCashEnabled' when calling KioskStoreSettingsApi->UpdateCashSettingForKiosk"); - - var localVarPath = "./api/v1.0/{appId}/kiosksettings/cash"; + 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); @@ -709,8 +734,7 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultKioskCashSetting) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultKioskCashSetting))); + (RestApiResultHasPaymentMethodResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultHasPaymentMethodResponse))); } } diff --git a/src/Flipdish/Api/TeammatesApi.cs b/src/Flipdish/Api/TeammatesApi.cs index b6add74c..332776fb 100644 --- a/src/Flipdish/Api/TeammatesApi.cs +++ b/src/Flipdish/Api/TeammatesApi.cs @@ -25,30 +25,30 @@ public interface ITeammatesApi : IApiAccessor { #region Synchronous Operations /// - /// Create teammate and send an invite. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// teammate model + /// + /// /// RestApiResultTeammate RestApiResultTeammate CreateTeammate (string appId, CreateTeammate teammate); /// - /// Create teammate and send an invite. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// teammate model + /// + /// /// ApiResponse of RestApiResultTeammate ApiResponse CreateTeammateWithHttpInfo (string appId, CreateTeammate teammate); /// - /// Delete teammate + /// /// /// /// @@ -60,7 +60,7 @@ public interface ITeammatesApi : IApiAccessor void DeleteTeammate (string appId, string id); /// - /// Delete teammate + /// /// /// /// @@ -71,7 +71,7 @@ public interface ITeammatesApi : IApiAccessor /// ApiResponse of Object(void) ApiResponse DeleteTeammateWithHttpInfo (string appId, string id); /// - /// Get a teammates by email address + /// /// /// /// @@ -83,7 +83,7 @@ public interface ITeammatesApi : IApiAccessor RestApiResultTeammate GetTeammateByAppIdAndTeammateId (string appId, string id); /// - /// Get a teammates by email address + /// /// /// /// @@ -94,7 +94,7 @@ public interface ITeammatesApi : IApiAccessor /// ApiResponse of RestApiResultTeammate ApiResponse GetTeammateByAppIdAndTeammateIdWithHttpInfo (string appId, string id); /// - /// Get all teammates + /// /// /// /// @@ -105,7 +105,7 @@ public interface ITeammatesApi : IApiAccessor RestApiArrayResultTeammate GetTeammatesByAppId (string appId); /// - /// Get all teammates + /// /// /// /// @@ -115,7 +115,30 @@ public interface ITeammatesApi : IApiAccessor /// ApiResponse of RestApiArrayResultTeammate ApiResponse GetTeammatesByAppIdWithHttpInfo (string appId); /// - /// Redeem one-time code from invitation + /// + /// + /// + /// + /// + /// 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); + /// + /// /// /// /// @@ -127,7 +150,7 @@ public interface ITeammatesApi : IApiAccessor RestApiResultRedeemInvitationResult RedeemInvitation (string otc, string appId); /// - /// Redeem one-time code from invitation + /// /// /// /// @@ -138,57 +161,139 @@ public interface ITeammatesApi : IApiAccessor /// ApiResponse of RestApiResultRedeemInvitationResult ApiResponse RedeemInvitationWithHttpInfo (string otc, string appId); /// - /// Update teammates (this method does not support Deltas!) + /// + /// + /// + /// + /// + /// 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 - /// Application identifier - /// teammate identifier - /// teammate model + /// + /// + /// /// RestApiResultTeammate RestApiResultTeammate UpdateTeammate (string appId, string id, TeammateBase teammate); /// - /// Update teammates (this method does not support Deltas!) + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// teammate identifier - /// teammate model + /// + /// + /// /// ApiResponse of RestApiResultTeammate ApiResponse UpdateTeammateWithHttpInfo (string appId, string id, TeammateBase teammate); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Create teammate and send an invite. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// teammate model + /// + /// /// Task of RestApiResultTeammate System.Threading.Tasks.Task CreateTeammateAsync (string appId, CreateTeammate teammate); /// - /// Create teammate and send an invite. + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// teammate model + /// + /// /// Task of ApiResponse (RestApiResultTeammate) System.Threading.Tasks.Task> CreateTeammateAsyncWithHttpInfo (string appId, CreateTeammate teammate); /// - /// Delete teammate + /// /// /// /// @@ -200,7 +305,7 @@ public interface ITeammatesApi : IApiAccessor System.Threading.Tasks.Task DeleteTeammateAsync (string appId, string id); /// - /// Delete teammate + /// /// /// /// @@ -211,7 +316,7 @@ public interface ITeammatesApi : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> DeleteTeammateAsyncWithHttpInfo (string appId, string id); /// - /// Get a teammates by email address + /// /// /// /// @@ -223,7 +328,7 @@ public interface ITeammatesApi : IApiAccessor System.Threading.Tasks.Task GetTeammateByAppIdAndTeammateIdAsync (string appId, string id); /// - /// Get a teammates by email address + /// /// /// /// @@ -234,7 +339,7 @@ public interface ITeammatesApi : IApiAccessor /// Task of ApiResponse (RestApiResultTeammate) System.Threading.Tasks.Task> GetTeammateByAppIdAndTeammateIdAsyncWithHttpInfo (string appId, string id); /// - /// Get all teammates + /// /// /// /// @@ -245,7 +350,7 @@ public interface ITeammatesApi : IApiAccessor System.Threading.Tasks.Task GetTeammatesByAppIdAsync (string appId); /// - /// Get all teammates + /// /// /// /// @@ -255,7 +360,30 @@ public interface ITeammatesApi : IApiAccessor /// Task of ApiResponse (RestApiArrayResultTeammate) System.Threading.Tasks.Task> GetTeammatesByAppIdAsyncWithHttpInfo (string appId); /// - /// Redeem one-time code from invitation + /// + /// + /// + /// + /// + /// 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); + /// + /// /// /// /// @@ -267,7 +395,7 @@ public interface ITeammatesApi : IApiAccessor System.Threading.Tasks.Task RedeemInvitationAsync (string otc, string appId); /// - /// Redeem one-time code from invitation + /// /// /// /// @@ -278,28 +406,110 @@ public interface ITeammatesApi : IApiAccessor /// Task of ApiResponse (RestApiResultRedeemInvitationResult) System.Threading.Tasks.Task> RedeemInvitationAsyncWithHttpInfo (string otc, string appId); /// - /// Update teammates (this method does not support Deltas!) + /// + /// + /// + /// + /// + /// 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 - /// Application identifier - /// teammate identifier - /// teammate model + /// + /// + /// /// Task of RestApiResultTeammate System.Threading.Tasks.Task UpdateTeammateAsync (string appId, string id, TeammateBase teammate); /// - /// Update teammates (this method does not support Deltas!) + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// teammate identifier - /// teammate model + /// + /// + /// /// Task of ApiResponse (RestApiResultTeammate) System.Threading.Tasks.Task> UpdateTeammateAsyncWithHttpInfo (string appId, string id, TeammateBase teammate); #endregion Asynchronous Operations @@ -403,11 +613,11 @@ public void AddDefaultHeader(string key, string value) } /// - /// Create teammate and send an invite. + /// /// /// Thrown when fails to make API call - /// Application identifier - /// teammate model + /// + /// /// RestApiResultTeammate public RestApiResultTeammate CreateTeammate (string appId, CreateTeammate teammate) { @@ -416,11 +626,11 @@ public RestApiResultTeammate CreateTeammate (string appId, CreateTeammate teamma } /// - /// Create teammate and send an invite. + /// /// /// Thrown when fails to make API call - /// Application identifier - /// teammate model + /// + /// /// ApiResponse of RestApiResultTeammate public ApiResponse< RestApiResultTeammate > CreateTeammateWithHttpInfo (string appId, CreateTeammate teammate) { @@ -496,11 +706,11 @@ public ApiResponse< RestApiResultTeammate > CreateTeammateWithHttpInfo (string a } /// - /// Create teammate and send an invite. + /// /// /// Thrown when fails to make API call - /// Application identifier - /// teammate model + /// + /// /// Task of RestApiResultTeammate public async System.Threading.Tasks.Task CreateTeammateAsync (string appId, CreateTeammate teammate) { @@ -510,11 +720,11 @@ public async System.Threading.Tasks.Task CreateTeammateAs } /// - /// Create teammate and send an invite. + /// /// /// Thrown when fails to make API call - /// Application identifier - /// teammate model + /// + /// /// Task of ApiResponse (RestApiResultTeammate) public async System.Threading.Tasks.Task> CreateTeammateAsyncWithHttpInfo (string appId, CreateTeammate teammate) { @@ -590,7 +800,7 @@ public async System.Threading.Tasks.Task> Cre } /// - /// Delete teammate + /// /// /// Thrown when fails to make API call /// @@ -602,7 +812,7 @@ public void DeleteTeammate (string appId, string id) } /// - /// Delete teammate + /// /// /// Thrown when fails to make API call /// @@ -670,7 +880,7 @@ public ApiResponse DeleteTeammateWithHttpInfo (string appId, string id) } /// - /// Delete teammate + /// /// /// Thrown when fails to make API call /// @@ -683,7 +893,7 @@ public async System.Threading.Tasks.Task DeleteTeammateAsync (string appId, stri } /// - /// Delete teammate + /// /// /// Thrown when fails to make API call /// @@ -751,7 +961,7 @@ public async System.Threading.Tasks.Task> DeleteTeammateAsyn } /// - /// Get a teammates by email address + /// /// /// Thrown when fails to make API call /// @@ -764,7 +974,7 @@ public RestApiResultTeammate GetTeammateByAppIdAndTeammateId (string appId, stri } /// - /// Get a teammates by email address + /// /// /// Thrown when fails to make API call /// @@ -832,7 +1042,7 @@ public ApiResponse< RestApiResultTeammate > GetTeammateByAppIdAndTeammateIdWithH } /// - /// Get a teammates by email address + /// /// /// Thrown when fails to make API call /// @@ -846,7 +1056,7 @@ public async System.Threading.Tasks.Task GetTeammateByApp } /// - /// Get a teammates by email address + /// /// /// Thrown when fails to make API call /// @@ -914,7 +1124,7 @@ public async System.Threading.Tasks.Task> Get } /// - /// Get all teammates + /// /// /// Thrown when fails to make API call /// @@ -926,7 +1136,7 @@ public RestApiArrayResultTeammate GetTeammatesByAppId (string appId) } /// - /// Get all teammates + /// /// /// Thrown when fails to make API call /// @@ -989,7 +1199,7 @@ public ApiResponse< RestApiArrayResultTeammate > GetTeammatesByAppIdWithHttpInfo } /// - /// Get all teammates + /// /// /// Thrown when fails to make API call /// @@ -1002,7 +1212,7 @@ public async System.Threading.Tasks.Task GetTeammate } /// - /// Get all teammates + /// /// /// Thrown when fails to make API call /// @@ -1065,35 +1275,35 @@ public async System.Threading.Tasks.Task } /// - /// Redeem one-time code from invitation + /// /// /// Thrown when fails to make API call - /// /// - /// RestApiResultRedeemInvitationResult - public RestApiResultRedeemInvitationResult RedeemInvitation (string otc, string appId) + /// + /// Object + public Object Grantaccess (string appId, CreateTeammate teammate) { - ApiResponse localVarResponse = RedeemInvitationWithHttpInfo(otc, appId); + ApiResponse localVarResponse = GrantaccessWithHttpInfo(appId, teammate); return localVarResponse.Data; } /// - /// Redeem one-time code from invitation + /// /// /// Thrown when fails to make API call - /// /// - /// ApiResponse of RestApiResultRedeemInvitationResult - public ApiResponse< RestApiResultRedeemInvitationResult > RedeemInvitationWithHttpInfo (string otc, string appId) + /// + /// ApiResponse of Object + public ApiResponse< Object > GrantaccessWithHttpInfo (string appId, CreateTeammate teammate) { - // 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"); + 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/redeem/{otc}"; + var localVarPath = "./api/v1.0/{appId}/teammates/grantaccess"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1103,6 +1313,11 @@ public ApiResponse< RestApiResultRedeemInvitationResult > RedeemInvitationWithHt // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -1117,8 +1332,15 @@ public ApiResponse< RestApiResultRedeemInvitationResult > RedeemInvitationWithHt 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 + 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 @@ -1129,53 +1351,53 @@ public ApiResponse< RestApiResultRedeemInvitationResult > RedeemInvitationWithHt // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("RedeemInvitation", localVarResponse); + Exception exception = ExceptionFactory("Grantaccess", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultRedeemInvitationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRedeemInvitationResult))); + (Object) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object))); } /// - /// Redeem one-time code from invitation + /// /// /// Thrown when fails to make API call - /// /// - /// Task of RestApiResultRedeemInvitationResult - public async System.Threading.Tasks.Task RedeemInvitationAsync (string otc, string appId) + /// + /// Task of Object + public async System.Threading.Tasks.Task GrantaccessAsync (string appId, CreateTeammate teammate) { - ApiResponse localVarResponse = await RedeemInvitationAsyncWithHttpInfo(otc, appId); + ApiResponse localVarResponse = await GrantaccessAsyncWithHttpInfo(appId, teammate); return localVarResponse.Data; } /// - /// Redeem one-time code from invitation + /// /// /// Thrown when fails to make API call - /// /// - /// Task of ApiResponse (RestApiResultRedeemInvitationResult) - public async System.Threading.Tasks.Task> RedeemInvitationAsyncWithHttpInfo (string otc, string appId) + /// + /// Task of ApiResponse (Object) + public async System.Threading.Tasks.Task> GrantaccessAsyncWithHttpInfo (string appId, CreateTeammate teammate) { - // 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"); + 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/redeem/{otc}"; + var localVarPath = "./api/v1.0/{appId}/teammates/grantaccess"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -1185,6 +1407,11 @@ public async System.Threading.Tasks.Task(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 @@ -1218,22 +1929,300 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultRedeemInvitationResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultRedeemInvitationResult))); + (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))); } /// - /// Update teammates (this method does not support Deltas!) + /// /// /// Thrown when fails to make API call - /// Application identifier - /// teammate identifier - /// teammate model + /// + /// + /// /// RestApiResultTeammate public RestApiResultTeammate UpdateTeammate (string appId, string id, TeammateBase teammate) { @@ -1242,12 +2231,12 @@ public RestApiResultTeammate UpdateTeammate (string appId, string id, TeammateBa } /// - /// Update teammates (this method does not support Deltas!) + /// /// /// Thrown when fails to make API call - /// Application identifier - /// teammate identifier - /// teammate model + /// + /// + /// /// ApiResponse of RestApiResultTeammate public ApiResponse< RestApiResultTeammate > UpdateTeammateWithHttpInfo (string appId, string id, TeammateBase teammate) { @@ -1327,12 +2316,12 @@ public ApiResponse< RestApiResultTeammate > UpdateTeammateWithHttpInfo (string a } /// - /// Update teammates (this method does not support Deltas!) + /// /// /// Thrown when fails to make API call - /// Application identifier - /// teammate identifier - /// teammate model + /// + /// + /// /// Task of RestApiResultTeammate public async System.Threading.Tasks.Task UpdateTeammateAsync (string appId, string id, TeammateBase teammate) { @@ -1342,12 +2331,12 @@ public async System.Threading.Tasks.Task UpdateTeammateAs } /// - /// Update teammates (this method does not support Deltas!) + /// /// /// Thrown when fails to make API call - /// Application identifier - /// teammate identifier - /// teammate model + /// + /// + /// /// Task of ApiResponse (RestApiResultTeammate) public async System.Threading.Tasks.Task> UpdateTeammateAsyncWithHttpInfo (string appId, string id, TeammateBase teammate) { diff --git a/src/Flipdish/Api/TerminalIotApi.cs b/src/Flipdish/Api/TerminalIotApi.cs index 940c8bff..0d1e3423 100644 --- a/src/Flipdish/Api/TerminalIotApi.cs +++ b/src/Flipdish/Api/TerminalIotApi.cs @@ -25,20 +25,20 @@ public interface ITerminalIotApi : IApiAccessor { #region Synchronous Operations /// - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// RestApiResultKioskIotConnectionParameters RestApiResultKioskIotConnectionParameters GetTerminalIotConnection (); /// - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// ApiResponse of RestApiResultKioskIotConnectionParameters @@ -46,20 +46,20 @@ public interface ITerminalIotApi : IApiAccessor #endregion Synchronous Operations #region Asynchronous Operations /// - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// Task of RestApiResultKioskIotConnectionParameters System.Threading.Tasks.Task GetTerminalIotConnectionAsync (); /// - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context + /// /// /// - /// [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// Task of ApiResponse (RestApiResultKioskIotConnectionParameters) @@ -165,7 +165,7 @@ public void AddDefaultHeader(string key, string value) } /// - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// RestApiResultKioskIotConnectionParameters @@ -176,7 +176,7 @@ public RestApiResultKioskIotConnectionParameters GetTerminalIotConnection () } /// - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// ApiResponse of RestApiResultKioskIotConnectionParameters @@ -234,7 +234,7 @@ public ApiResponse< RestApiResultKioskIotConnectionParameters > GetTerminalIotCo } /// - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// Task of RestApiResultKioskIotConnectionParameters @@ -246,7 +246,7 @@ public async System.Threading.Tasks.Task - /// Get the IoT connection parameters for telemetry and commands No input parameters since authenticated hydra user defines context [BETA - this endpoint is under development, do not use it in your production system] + /// /// /// Thrown when fails to make API call /// Task of ApiResponse (RestApiResultKioskIotConnectionParameters) diff --git a/src/Flipdish/Api/TipsApi.cs b/src/Flipdish/Api/TipsApi.cs index bfdd8757..069e3cf6 100644 --- a/src/Flipdish/Api/TipsApi.cs +++ b/src/Flipdish/Api/TipsApi.cs @@ -25,93 +25,93 @@ public interface ITipsApi : IApiAccessor { #region Synchronous Operations /// - /// Returns current tip configuration for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id + /// /// RestApiResultTipConfiguration RestApiResultTipConfiguration TipConfigGet (int? storeId); /// - /// Returns current tip configuration for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id + /// /// ApiResponse of RestApiResultTipConfiguration ApiResponse TipConfigGetWithHttpInfo (int? storeId); /// - /// Update or insert current tip configuration for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id - /// Update Configuration + /// + /// /// RestApiResultTipConfiguration RestApiResultTipConfiguration TipConfigUpsert (int? storeId, UpdateTipConfiguration updateConfig); /// - /// Update or insert current tip configuration for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id - /// Update Configuration + /// + /// /// ApiResponse of RestApiResultTipConfiguration ApiResponse TipConfigUpsertWithHttpInfo (int? storeId, UpdateTipConfiguration updateConfig); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Returns current tip configuration for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id + /// /// Task of RestApiResultTipConfiguration System.Threading.Tasks.Task TipConfigGetAsync (int? storeId); /// - /// Returns current tip configuration for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id + /// /// Task of ApiResponse (RestApiResultTipConfiguration) System.Threading.Tasks.Task> TipConfigGetAsyncWithHttpInfo (int? storeId); /// - /// Update or insert current tip configuration for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id - /// Update Configuration + /// + /// /// Task of RestApiResultTipConfiguration System.Threading.Tasks.Task TipConfigUpsertAsync (int? storeId, UpdateTipConfiguration updateConfig); /// - /// Update or insert current tip configuration for a store + /// /// /// /// /// /// Thrown when fails to make API call - /// Store Id - /// Update Configuration + /// + /// /// Task of ApiResponse (RestApiResultTipConfiguration) System.Threading.Tasks.Task> TipConfigUpsertAsyncWithHttpInfo (int? storeId, UpdateTipConfiguration updateConfig); #endregion Asynchronous Operations @@ -215,10 +215,10 @@ public void AddDefaultHeader(string key, string value) } /// - /// Returns current tip configuration for a store + /// /// /// Thrown when fails to make API call - /// Store Id + /// /// RestApiResultTipConfiguration public RestApiResultTipConfiguration TipConfigGet (int? storeId) { @@ -227,10 +227,10 @@ public RestApiResultTipConfiguration TipConfigGet (int? storeId) } /// - /// Returns current tip configuration for a store + /// /// /// Thrown when fails to make API call - /// Store Id + /// /// ApiResponse of RestApiResultTipConfiguration public ApiResponse< RestApiResultTipConfiguration > TipConfigGetWithHttpInfo (int? storeId) { @@ -290,10 +290,10 @@ public ApiResponse< RestApiResultTipConfiguration > TipConfigGetWithHttpInfo (in } /// - /// Returns current tip configuration for a store + /// /// /// Thrown when fails to make API call - /// Store Id + /// /// Task of RestApiResultTipConfiguration public async System.Threading.Tasks.Task TipConfigGetAsync (int? storeId) { @@ -303,10 +303,10 @@ public async System.Threading.Tasks.Task TipConfi } /// - /// Returns current tip configuration for a store + /// /// /// Thrown when fails to make API call - /// Store Id + /// /// Task of ApiResponse (RestApiResultTipConfiguration) public async System.Threading.Tasks.Task> TipConfigGetAsyncWithHttpInfo (int? storeId) { @@ -366,11 +366,11 @@ public async System.Threading.Tasks.Task - /// Update or insert current tip configuration for a store + /// /// /// Thrown when fails to make API call - /// Store Id - /// Update Configuration + /// + /// /// RestApiResultTipConfiguration public RestApiResultTipConfiguration TipConfigUpsert (int? storeId, UpdateTipConfiguration updateConfig) { @@ -379,11 +379,11 @@ public RestApiResultTipConfiguration TipConfigUpsert (int? storeId, UpdateTipCon } /// - /// Update or insert current tip configuration for a store + /// /// /// Thrown when fails to make API call - /// Store Id - /// Update Configuration + /// + /// /// ApiResponse of RestApiResultTipConfiguration public ApiResponse< RestApiResultTipConfiguration > TipConfigUpsertWithHttpInfo (int? storeId, UpdateTipConfiguration updateConfig) { @@ -459,11 +459,11 @@ public ApiResponse< RestApiResultTipConfiguration > TipConfigUpsertWithHttpInfo } /// - /// Update or insert current tip configuration for a store + /// /// /// Thrown when fails to make API call - /// Store Id - /// Update Configuration + /// + /// /// Task of RestApiResultTipConfiguration public async System.Threading.Tasks.Task TipConfigUpsertAsync (int? storeId, UpdateTipConfiguration updateConfig) { @@ -473,11 +473,11 @@ public async System.Threading.Tasks.Task TipConfi } /// - /// Update or insert current tip configuration for a store + /// /// /// Thrown when fails to make API call - /// Store Id - /// Update Configuration + /// + /// /// Task of ApiResponse (RestApiResultTipConfiguration) public async System.Threading.Tasks.Task> TipConfigUpsertAsyncWithHttpInfo (int? storeId, UpdateTipConfiguration updateConfig) { diff --git a/src/Flipdish/Api/UsersApi.cs b/src/Flipdish/Api/UsersApi.cs index 491d01eb..50216477 100644 --- a/src/Flipdish/Api/UsersApi.cs +++ b/src/Flipdish/Api/UsersApi.cs @@ -32,6 +32,117 @@ public interface IUsersApi : IApiAccessor /// /// 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); @@ -48,7 +159,49 @@ public interface IUsersApi : IApiAccessor /// ApiResponse of RestApiStringResult ApiResponse GetPreviousOrderCountForStoreWithHttpInfo (int? userId, int? storeId); /// - /// Get role names + /// + /// + /// + /// + /// + /// 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); + /// + /// /// /// /// @@ -58,7 +211,7 @@ public interface IUsersApi : IApiAccessor RestApiStringArrayResult GetRoles (); /// - /// Get role names + /// /// /// /// @@ -66,8 +219,6 @@ public interface IUsersApi : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of RestApiStringArrayResult ApiResponse GetRolesWithHttpInfo (); - #endregion Synchronous Operations - #region Asynchronous Operations /// /// /// @@ -76,9 +227,8 @@ public interface IUsersApi : IApiAccessor /// /// Thrown when fails to make API call /// - /// - /// Task of RestApiStringResult - System.Threading.Tasks.Task GetPreviousOrderCountForStoreAsync (int? userId, int? storeId); + /// RestApiResultUserRole + RestApiResultUserRole GetRolesAndUnassignedRoles (int? userId); /// /// @@ -88,126 +238,6278 @@ public interface IUsersApi : IApiAccessor /// /// Thrown when fails to make API call /// - /// - /// Task of ApiResponse (RestApiStringResult) - System.Threading.Tasks.Task> GetPreviousOrderCountForStoreAsyncWithHttpInfo (int? userId, int? storeId); + /// ApiResponse of RestApiResultUserRole + ApiResponse GetRolesAndUnassignedRolesWithHttpInfo (int? userId); /// - /// Get role names + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of RestApiStringArrayResult - System.Threading.Tasks.Task GetRolesAsync (); + /// + /// RestApiResultUserInfo + RestApiResultUserInfo GetUserById (int? userId); /// - /// Get role names + /// /// /// /// /// /// Thrown when fails to make API call - /// Task of ApiResponse (RestApiStringArrayResult) - System.Threading.Tasks.Task> GetRolesAsyncWithHttpInfo (); - #endregion Asynchronous Operations - } + /// + /// ApiResponse of RestApiResultUserInfo + ApiResponse GetUserByIdWithHttpInfo (int? userId); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// (optional) + /// RestApiArrayResultUserDeliveryLocationAdmin + RestApiArrayResultUserDeliveryLocationAdmin GetUserDeliveryLocationsForAdmin (int? userId, int? whiteLabelId = null); - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class UsersApi : IUsersApi - { - private Flipdish.Client.ExceptionFactory _exceptionFactory = (name, response) => 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; + } - /// - /// Initializes a new instance of the class. - /// - /// - public UsersApi(String basePath) - { - this.Configuration = new Flipdish.Client.Configuration { BasePath = basePath }; + // make the HTTP request + IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType); - ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; - } + int localVarStatusCode = (int) localVarResponse.StatusCode; - /// - /// 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; + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("SetUserDeliveryLocationCoordinates", localVarResponse); + if (exception != null) throw exception; + } - ExceptionFactory = Flipdish.Client.Configuration.DefaultExceptionFactory; + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); } /// - /// Gets the base path of the API client. + /// /// - /// The base path - public String GetBasePath() + /// Thrown when fails to make API call + /// + /// + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse SetUserDeliveryLocationField (int? userId, int? deliveryLocationId, SetUserDeliveryLocationFieldRequest request) { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + ApiResponse localVarResponse = SetUserDeliveryLocationFieldWithHttpInfo(userId, deliveryLocationId, request); + return localVarResponse.Data; } /// - /// 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) + /// Thrown when fails to make API call + /// + /// + /// + /// ApiResponse of RestApiDefaultResponse + public ApiResponse< RestApiDefaultResponse > SetUserDeliveryLocationFieldWithHttpInfo (int? userId, int? deliveryLocationId, SetUserDeliveryLocationFieldRequest request) { - // do nothing - } + // 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"); - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public Flipdish.Client.Configuration Configuration {get; set;} + 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; - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public Flipdish.Client.ExceptionFactory ExceptionFactory - { - get + // to determine the Content-Type header + String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + // to determine the Accept header + String[] localVarHttpHeaderAccepts = new 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[])) { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; + localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter } - set { _exceptionFactory = value; } + 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))); } /// - /// Gets the default header. + /// /// - /// Dictionary of HTTP header - [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] - public IDictionary DefaultHeader() + /// Thrown when fails to make API call + /// + /// + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task SetUserDeliveryLocationFieldAsync (int? userId, int? deliveryLocationId, SetUserDeliveryLocationFieldRequest request) { - return new ReadOnlyDictionary(this.Configuration.DefaultHeader); + ApiResponse localVarResponse = await SetUserDeliveryLocationFieldAsyncWithHttpInfo(userId, deliveryLocationId, request); + return localVarResponse.Data; + } /// - /// 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) + /// Thrown when fails to make API call + /// + /// + /// + /// Task of ApiResponse (RestApiDefaultResponse) + public async System.Threading.Tasks.Task> SetUserDeliveryLocationFieldAsyncWithHttpInfo (int? userId, int? deliveryLocationId, SetUserDeliveryLocationFieldRequest request) { - this.Configuration.AddDefaultHeader(key, value); + // 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))); } /// @@ -215,11 +6517,11 @@ public void AddDefaultHeader(string key, string value) /// /// Thrown when fails to make API call /// - /// - /// RestApiStringResult - public RestApiStringResult GetPreviousOrderCountForStore (int? userId, int? storeId) + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse SetUserLanguage (int? userId, string languageId) { - ApiResponse localVarResponse = GetPreviousOrderCountForStoreWithHttpInfo(userId, storeId); + ApiResponse localVarResponse = SetUserLanguageWithHttpInfo(userId, languageId); return localVarResponse.Data; } @@ -228,18 +6530,18 @@ public RestApiStringResult GetPreviousOrderCountForStore (int? userId, int? stor /// /// Thrown when fails to make API call /// - /// - /// ApiResponse of RestApiStringResult - public ApiResponse< RestApiStringResult > GetPreviousOrderCountForStoreWithHttpInfo (int? userId, int? storeId) + /// + /// 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->GetPreviousOrderCountForStore"); - // verify the required parameter 'storeId' is set - if (storeId == null) - throw new ApiException(400, "Missing required parameter 'storeId' when calling UsersApi->GetPreviousOrderCountForStore"); + 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}/previousordercount/{storeId}"; + var localVarPath = "./api/v1.0/users/{userId}/SetLanguage/{languageId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -264,7 +6566,7 @@ public ApiResponse< RestApiStringResult > GetPreviousOrderCountForStoreWithHttpI 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 + if (languageId != null) localVarPathParams.Add("languageId", this.Configuration.ApiClient.ParameterToString(languageId)); // path parameter // authentication (oauth2) required // oauth required @@ -275,20 +6577,20 @@ public ApiResponse< RestApiStringResult > GetPreviousOrderCountForStoreWithHttpI // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetPreviousOrderCountForStore", localVarResponse); + Exception exception = ExceptionFactory("SetUserLanguage", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); } /// @@ -296,11 +6598,11 @@ public ApiResponse< RestApiStringResult > GetPreviousOrderCountForStoreWithHttpI /// /// Thrown when fails to make API call /// - /// - /// Task of RestApiStringResult - public async System.Threading.Tasks.Task GetPreviousOrderCountForStoreAsync (int? userId, int? storeId) + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task SetUserLanguageAsync (int? userId, string languageId) { - ApiResponse localVarResponse = await GetPreviousOrderCountForStoreAsyncWithHttpInfo(userId, storeId); + ApiResponse localVarResponse = await SetUserLanguageAsyncWithHttpInfo(userId, languageId); return localVarResponse.Data; } @@ -310,18 +6612,18 @@ public async System.Threading.Tasks.Task GetPreviousOrderCo /// /// Thrown when fails to make API call /// - /// - /// Task of ApiResponse (RestApiStringResult) - public async System.Threading.Tasks.Task> GetPreviousOrderCountForStoreAsyncWithHttpInfo (int? userId, int? storeId) + /// + /// 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->GetPreviousOrderCountForStore"); - // verify the required parameter 'storeId' is set - if (storeId == null) - throw new ApiException(400, "Missing required parameter 'storeId' when calling UsersApi->GetPreviousOrderCountForStore"); + 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}/previousordercount/{storeId}"; + var localVarPath = "./api/v1.0/users/{userId}/SetLanguage/{languageId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -346,7 +6648,7 @@ public async System.Threading.Tasks.Task> GetPr 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 + if (languageId != null) localVarPathParams.Add("languageId", this.Configuration.ApiClient.ParameterToString(languageId)); // path parameter // authentication (oauth2) required // oauth required @@ -357,42 +6659,47 @@ public async System.Threading.Tasks.Task> GetPr // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetPreviousOrderCountForStore", localVarResponse); + Exception exception = ExceptionFactory("SetUserLanguage", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringResult))); + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); } /// - /// Get role names + /// /// /// Thrown when fails to make API call - /// RestApiStringArrayResult - public RestApiStringArrayResult GetRoles () + /// + /// RestApiDefaultResponse + public RestApiDefaultResponse UnblockUserPhoneNumber (int? userId) { - ApiResponse localVarResponse = GetRolesWithHttpInfo(); + ApiResponse localVarResponse = UnblockUserPhoneNumberWithHttpInfo(userId); return localVarResponse.Data; } /// - /// Get role names + /// /// /// Thrown when fails to make API call - /// ApiResponse of RestApiStringArrayResult - public ApiResponse< RestApiStringArrayResult > GetRolesWithHttpInfo () + /// + /// 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/roles"; + var localVarPath = "./api/v1.0/users/{userId}/UnblockUserPhoneNumber"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -416,6 +6723,7 @@ public ApiResponse< RestApiStringArrayResult > GetRolesWithHttpInfo () 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 @@ -426,43 +6734,48 @@ public ApiResponse< RestApiStringArrayResult > GetRolesWithHttpInfo () // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetRoles", localVarResponse); + Exception exception = ExceptionFactory("UnblockUserPhoneNumber", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); } /// - /// Get role names + /// /// /// Thrown when fails to make API call - /// Task of RestApiStringArrayResult - public async System.Threading.Tasks.Task GetRolesAsync () + /// + /// Task of RestApiDefaultResponse + public async System.Threading.Tasks.Task UnblockUserPhoneNumberAsync (int? userId) { - ApiResponse localVarResponse = await GetRolesAsyncWithHttpInfo(); + ApiResponse localVarResponse = await UnblockUserPhoneNumberAsyncWithHttpInfo(userId); return localVarResponse.Data; } /// - /// Get role names + /// /// /// Thrown when fails to make API call - /// Task of ApiResponse (RestApiStringArrayResult) - public async System.Threading.Tasks.Task> GetRolesAsyncWithHttpInfo () + /// + /// 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/roles"; + var localVarPath = "./api/v1.0/users/{userId}/UnblockUserPhoneNumber"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -486,6 +6799,7 @@ public async System.Threading.Tasks.Task> 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 @@ -496,20 +6810,20 @@ public async System.Threading.Tasks.Task> // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetRoles", localVarResponse); + Exception exception = ExceptionFactory("UnblockUserPhoneNumber", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiStringArrayResult) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiStringArrayResult))); + (RestApiDefaultResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiDefaultResponse))); } } diff --git a/src/Flipdish/Api/VouchersApi.cs b/src/Flipdish/Api/VouchersApi.cs index c8907ba8..1a26d7ad 100644 --- a/src/Flipdish/Api/VouchersApi.cs +++ b/src/Flipdish/Api/VouchersApi.cs @@ -25,277 +25,519 @@ public interface IVouchersApi : IApiAccessor { #region Synchronous Operations /// - /// [PRIVATE API] Create voucher + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Voucher Details + /// + /// /// RestApiResultVoucherWithStats RestApiResultVoucherWithStats CreateVoucher (string appId, CreateVoucher voucher); /// - /// [PRIVATE API] Create voucher + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Voucher Details + /// + /// /// ApiResponse of RestApiResultVoucherWithStats ApiResponse CreateVoucherWithHttpInfo (string appId, CreateVoucher voucher); /// - /// [PRIVATE API] Get voucher by identifier + /// + /// + /// + /// + /// + /// 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 - /// Id of the voucher + /// /// RestApiResultVoucherWithStats RestApiResultVoucherWithStats GetVoucherById (int? voucherId); /// - /// [PRIVATE API] Get voucher by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the voucher + /// /// ApiResponse of RestApiResultVoucherWithStats ApiResponse GetVoucherByIdWithHttpInfo (int? voucherId); /// - /// [PRIVATE API] Get voucher stats by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Aggregate data by day \\ week \\ month - /// Amount of data points per request (optional) + /// + /// + /// (optional) /// RestApiArrayResultVoucherDataPoint RestApiArrayResultVoucherDataPoint GetVoucherStatsById (int? voucherId, string aggregateDataBy, int? dataPointLimit = null); /// - /// [PRIVATE API] Get voucher stats by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Aggregate data by day \\ week \\ month - /// Amount of data points per request (optional) + /// + /// + /// (optional) /// ApiResponse of RestApiArrayResultVoucherDataPoint ApiResponse GetVoucherStatsByIdWithHttpInfo (int? voucherId, string aggregateDataBy, int? dataPointLimit = null); /// - /// [PRIVATE API] Get vouchers summaries for App Id + /// + /// + /// + /// + /// + /// 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 - /// Application Id - /// Page Number (optional) - /// Page Size (optional) - /// Search by Voucher Code\\s (optional) - /// Search by Status (optional) - /// Search by Type (optional) - /// Search by Sub Type (optional) - /// Search by Store Ids (optional) + /// + /// (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); + 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); /// - /// [PRIVATE API] Get vouchers summaries for App Id + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id - /// Page Number (optional) - /// Page Size (optional) - /// Search by Voucher Code\\s (optional) - /// Search by Status (optional) - /// Search by Type (optional) - /// Search by Sub Type (optional) - /// Search by Store Ids (optional) + /// + /// (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); + 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); /// - /// [PRIVATE API] Updates voucher + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Updated details for the voucher + /// + /// /// (optional) - /// Percent voucher value (can have 1 of 3) (optional) - /// Lump voucher value (can have 1 of 3) (optional) - /// Free Item Id (can have 1 of 3) (optional) + /// (optional) + /// (optional) + /// (optional) /// RestApiResultVoucherWithStats - RestApiResultVoucherWithStats UpdateVoucher (int? voucherId, VoucherBase voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, int? freeItemId = null); + RestApiResultVoucherWithStats UpdateVoucher (int? voucherId, UpdateVoucher voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, double? maxDiscountAmount = null); /// - /// [PRIVATE API] Updates voucher + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Updated details for the voucher + /// + /// /// (optional) - /// Percent voucher value (can have 1 of 3) (optional) - /// Lump voucher value (can have 1 of 3) (optional) - /// Free Item Id (can have 1 of 3) (optional) + /// (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiResultVoucherWithStats - ApiResponse UpdateVoucherWithHttpInfo (int? voucherId, VoucherBase voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, int? freeItemId = null); + 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 /// - /// [PRIVATE API] Create voucher + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Voucher Details + /// + /// /// Task of RestApiResultVoucherWithStats System.Threading.Tasks.Task CreateVoucherAsync (string appId, CreateVoucher voucher); /// - /// [PRIVATE API] Create voucher + /// /// /// /// /// /// Thrown when fails to make API call - /// App Name Id - /// Voucher Details + /// + /// /// Task of ApiResponse (RestApiResultVoucherWithStats) System.Threading.Tasks.Task> CreateVoucherAsyncWithHttpInfo (string appId, CreateVoucher voucher); /// - /// [PRIVATE API] Get voucher by identifier + /// + /// + /// + /// + /// + /// 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 - /// Id of the voucher + /// /// Task of RestApiResultVoucherWithStats System.Threading.Tasks.Task GetVoucherByIdAsync (int? voucherId); /// - /// [PRIVATE API] Get voucher by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the voucher + /// /// Task of ApiResponse (RestApiResultVoucherWithStats) System.Threading.Tasks.Task> GetVoucherByIdAsyncWithHttpInfo (int? voucherId); /// - /// [PRIVATE API] Get voucher stats by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Aggregate data by day \\ week \\ month - /// Amount of data points per request (optional) + /// + /// + /// (optional) /// Task of RestApiArrayResultVoucherDataPoint System.Threading.Tasks.Task GetVoucherStatsByIdAsync (int? voucherId, string aggregateDataBy, int? dataPointLimit = null); /// - /// [PRIVATE API] Get voucher stats by identifier + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Aggregate data by day \\ week \\ month - /// Amount of data points per request (optional) + /// + /// + /// (optional) /// Task of ApiResponse (RestApiArrayResultVoucherDataPoint) System.Threading.Tasks.Task> GetVoucherStatsByIdAsyncWithHttpInfo (int? voucherId, string aggregateDataBy, int? dataPointLimit = null); /// - /// [PRIVATE API] Get vouchers summaries for App Id + /// + /// + /// + /// + /// + /// 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 - /// Application Id - /// Page Number (optional) - /// Page Size (optional) - /// Search by Voucher Code\\s (optional) - /// Search by Status (optional) - /// Search by Type (optional) - /// Search by Sub Type (optional) - /// Search by Store Ids (optional) + /// + /// (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); + 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); /// - /// [PRIVATE API] Get vouchers summaries for App Id + /// /// /// /// /// /// Thrown when fails to make API call - /// Application Id - /// Page Number (optional) - /// Page Size (optional) - /// Search by Voucher Code\\s (optional) - /// Search by Status (optional) - /// Search by Type (optional) - /// Search by Sub Type (optional) - /// Search by Store Ids (optional) + /// + /// (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); + 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); /// - /// [PRIVATE API] Updates voucher + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Updated details for the voucher + /// + /// /// (optional) - /// Percent voucher value (can have 1 of 3) (optional) - /// Lump voucher value (can have 1 of 3) (optional) - /// Free Item Id (can have 1 of 3) (optional) + /// (optional) + /// (optional) + /// (optional) /// Task of RestApiResultVoucherWithStats - System.Threading.Tasks.Task UpdateVoucherAsync (int? voucherId, VoucherBase voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, int? freeItemId = null); + System.Threading.Tasks.Task UpdateVoucherAsync (int? voucherId, UpdateVoucher voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, double? maxDiscountAmount = null); /// - /// [PRIVATE API] Updates voucher + /// /// /// /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Updated details for the voucher + /// + /// /// (optional) - /// Percent voucher value (can have 1 of 3) (optional) - /// Lump voucher value (can have 1 of 3) (optional) - /// Free Item Id (can have 1 of 3) (optional) + /// (optional) + /// (optional) + /// (optional) /// Task of ApiResponse (RestApiResultVoucherWithStats) - System.Threading.Tasks.Task> UpdateVoucherAsyncWithHttpInfo (int? voucherId, VoucherBase voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, int? freeItemId = null); + 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 } @@ -397,11 +639,11 @@ public void AddDefaultHeader(string key, string value) } /// - /// [PRIVATE API] Create voucher + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Voucher Details + /// + /// /// RestApiResultVoucherWithStats public RestApiResultVoucherWithStats CreateVoucher (string appId, CreateVoucher voucher) { @@ -410,11 +652,11 @@ public RestApiResultVoucherWithStats CreateVoucher (string appId, CreateVoucher } /// - /// [PRIVATE API] Create voucher + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Voucher Details + /// + /// /// ApiResponse of RestApiResultVoucherWithStats public ApiResponse< RestApiResultVoucherWithStats > CreateVoucherWithHttpInfo (string appId, CreateVoucher voucher) { @@ -490,11 +732,11 @@ public ApiResponse< RestApiResultVoucherWithStats > CreateVoucherWithHttpInfo (s } /// - /// [PRIVATE API] Create voucher + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Voucher Details + /// + /// /// Task of RestApiResultVoucherWithStats public async System.Threading.Tasks.Task CreateVoucherAsync (string appId, CreateVoucher voucher) { @@ -504,11 +746,11 @@ public async System.Threading.Tasks.Task CreateVo } /// - /// [PRIVATE API] Create voucher + /// /// /// Thrown when fails to make API call - /// App Name Id - /// Voucher Details + /// + /// /// Task of ApiResponse (RestApiResultVoucherWithStats) public async System.Threading.Tasks.Task> CreateVoucherAsyncWithHttpInfo (string appId, CreateVoucher voucher) { @@ -584,30 +826,35 @@ public async System.Threading.Tasks.Task - /// [PRIVATE API] Get voucher by identifier + /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// RestApiResultVoucherWithStats - public RestApiResultVoucherWithStats GetVoucherById (int? voucherId) + /// + /// + /// RestApiResultVoucher + public RestApiResultVoucher GetVoucherByCode (string appId, string code) { - ApiResponse localVarResponse = GetVoucherByIdWithHttpInfo(voucherId); + ApiResponse localVarResponse = GetVoucherByCodeWithHttpInfo(appId, code); return localVarResponse.Data; } /// - /// [PRIVATE API] Get voucher by identifier + /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// ApiResponse of RestApiResultVoucherWithStats - public ApiResponse< RestApiResultVoucherWithStats > GetVoucherByIdWithHttpInfo (int? voucherId) + /// + /// + /// ApiResponse of RestApiResultVoucher + public ApiResponse< RestApiResultVoucher > GetVoucherByCodeWithHttpInfo (string appId, string code) { - // verify the required parameter 'voucherId' is set - if (voucherId == null) - throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->GetVoucherById"); + // 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/vouchers/{voucherId}"; + var localVarPath = "./api/v1.0/{appId}/vouchers/code/{code}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -631,7 +878,8 @@ public ApiResponse< RestApiResultVoucherWithStats > GetVoucherByIdWithHttpInfo ( if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (voucherId != null) localVarPathParams.Add("voucherId", this.Configuration.ApiClient.ParameterToString(voucherId)); // path parameter + 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 @@ -649,41 +897,46 @@ public ApiResponse< RestApiResultVoucherWithStats > GetVoucherByIdWithHttpInfo ( if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetVoucherById", localVarResponse); + Exception exception = ExceptionFactory("GetVoucherByCode", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultVoucherWithStats) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultVoucherWithStats))); + (RestApiResultVoucher) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultVoucher))); } /// - /// [PRIVATE API] Get voucher by identifier + /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Task of RestApiResultVoucherWithStats - public async System.Threading.Tasks.Task GetVoucherByIdAsync (int? voucherId) + /// + /// + /// Task of RestApiResultVoucher + public async System.Threading.Tasks.Task GetVoucherByCodeAsync (string appId, string code) { - ApiResponse localVarResponse = await GetVoucherByIdAsyncWithHttpInfo(voucherId); + ApiResponse localVarResponse = await GetVoucherByCodeAsyncWithHttpInfo(appId, code); return localVarResponse.Data; } /// - /// [PRIVATE API] Get voucher by identifier + /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Task of ApiResponse (RestApiResultVoucherWithStats) - public async System.Threading.Tasks.Task> GetVoucherByIdAsyncWithHttpInfo (int? voucherId) + /// + /// + /// Task of ApiResponse (RestApiResultVoucher) + public async System.Threading.Tasks.Task> GetVoucherByCodeAsyncWithHttpInfo (string appId, string code) { - // verify the required parameter 'voucherId' is set - if (voucherId == null) - throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->GetVoucherById"); + // 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/vouchers/{voucherId}"; + var localVarPath = "./api/v1.0/{appId}/vouchers/code/{code}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -707,7 +960,8 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiResultVoucherWithStats) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultVoucherWithStats))); + (RestApiResultVoucher) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultVoucher))); } /// - /// [PRIVATE API] Get voucher stats by identifier + /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Aggregate data by day \\ week \\ month - /// Amount of data points per request (optional) - /// RestApiArrayResultVoucherDataPoint - public RestApiArrayResultVoucherDataPoint GetVoucherStatsById (int? voucherId, string aggregateDataBy, int? dataPointLimit = null) + /// + /// RestApiResultVoucherWithStats + public RestApiResultVoucherWithStats GetVoucherById (int? voucherId) { - ApiResponse localVarResponse = GetVoucherStatsByIdWithHttpInfo(voucherId, aggregateDataBy, dataPointLimit); + ApiResponse localVarResponse = GetVoucherByIdWithHttpInfo(voucherId); return localVarResponse.Data; } /// - /// [PRIVATE API] Get voucher stats by identifier + /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Aggregate data by day \\ week \\ month - /// Amount of data points per request (optional) - /// ApiResponse of RestApiArrayResultVoucherDataPoint - public ApiResponse< RestApiArrayResultVoucherDataPoint > GetVoucherStatsByIdWithHttpInfo (int? voucherId, string aggregateDataBy, int? dataPointLimit = null) + /// + /// 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->GetVoucherStatsById"); - // verify the required parameter 'aggregateDataBy' is set - if (aggregateDataBy == null) - throw new ApiException(400, "Missing required parameter 'aggregateDataBy' when calling VouchersApi->GetVoucherStatsById"); + throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->GetVoucherById"); - var localVarPath = "./api/v1.0/vouchers/stats/{voucherId}"; + var localVarPath = "./api/v1.0/vouchers/{voucherId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -790,8 +1037,6 @@ public ApiResponse< RestApiArrayResultVoucherDataPoint > GetVoucherStatsByIdWith 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 @@ -809,48 +1054,41 @@ public ApiResponse< RestApiArrayResultVoucherDataPoint > GetVoucherStatsByIdWith if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetVoucherStatsById", localVarResponse); + Exception exception = ExceptionFactory("GetVoucherById", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultVoucherDataPoint) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultVoucherDataPoint))); + (RestApiResultVoucherWithStats) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultVoucherWithStats))); } /// - /// [PRIVATE API] Get voucher stats by identifier + /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Aggregate data by day \\ week \\ month - /// Amount of data points per request (optional) - /// Task of RestApiArrayResultVoucherDataPoint - public async System.Threading.Tasks.Task GetVoucherStatsByIdAsync (int? voucherId, string aggregateDataBy, int? dataPointLimit = null) + /// + /// Task of RestApiResultVoucherWithStats + public async System.Threading.Tasks.Task GetVoucherByIdAsync (int? voucherId) { - ApiResponse localVarResponse = await GetVoucherStatsByIdAsyncWithHttpInfo(voucherId, aggregateDataBy, dataPointLimit); + ApiResponse localVarResponse = await GetVoucherByIdAsyncWithHttpInfo(voucherId); return localVarResponse.Data; } /// - /// [PRIVATE API] Get voucher stats by identifier + /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Aggregate data by day \\ week \\ month - /// Amount of data points per request (optional) - /// Task of ApiResponse (RestApiArrayResultVoucherDataPoint) - public async System.Threading.Tasks.Task> GetVoucherStatsByIdAsyncWithHttpInfo (int? voucherId, string aggregateDataBy, int? dataPointLimit = null) + /// + /// 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->GetVoucherStatsById"); - // verify the required parameter 'aggregateDataBy' is set - if (aggregateDataBy == null) - throw new ApiException(400, "Missing required parameter 'aggregateDataBy' when calling VouchersApi->GetVoucherStatsById"); + throw new ApiException(400, "Missing required parameter 'voucherId' when calling VouchersApi->GetVoucherById"); - var localVarPath = "./api/v1.0/vouchers/stats/{voucherId}"; + var localVarPath = "./api/v1.0/vouchers/{voucherId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -875,8 +1113,6 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiArrayResultVoucherDataPoint) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiArrayResultVoucherDataPoint))); + (RestApiResultVoucherWithStats) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiResultVoucherWithStats))); } /// - /// [PRIVATE API] Get vouchers summaries for App Id + /// /// /// Thrown when fails to make API call - /// Application Id - /// Page Number (optional) - /// Page Size (optional) - /// Search by Voucher Code\\s (optional) - /// Search by Status (optional) - /// Search by Type (optional) - /// Search by Sub Type (optional) - /// Search by Store Ids (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) + /// + /// + /// (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) { - ApiResponse localVarResponse = GetVouchersWithHttpInfo(appId, pageIndex, pageSize, searchCodes, statusSearch, typeSearch, subTypeSearch, storeIds); - return localVarResponse.Data; + SetVoucherValidityPeriodsSimplifiedWithHttpInfo(appId, voucherId, request); } /// - /// [PRIVATE API] Get vouchers summaries for App Id + /// /// /// Thrown when fails to make API call - /// Application Id - /// Page Number (optional) - /// Page Size (optional) - /// Search by Voucher Code\\s (optional) - /// Search by Status (optional) - /// Search by Type (optional) - /// Search by Sub Type (optional) - /// Search by Store Ids (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) + /// + /// + /// + /// 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->GetVouchers"); + 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/summaries"; + 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); @@ -951,6 +1874,11 @@ public ApiResponse< RestApiPaginationResultVoucherSummary > GetVouchersWithHttpI // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { + "application/json", + "text/json", + "application/xml", + "text/xml", + "application/x-www-form-urlencoded" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); @@ -966,13 +1894,15 @@ public ApiResponse< RestApiPaginationResultVoucherSummary > GetVouchersWithHttpI 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 (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 @@ -983,62 +1913,57 @@ public ApiResponse< RestApiPaginationResultVoucherSummary > GetVouchersWithHttpI // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("GetVouchers", localVarResponse); + Exception exception = ExceptionFactory("SetVoucherValidityPeriodsSimplified", localVarResponse); if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiPaginationResultVoucherSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultVoucherSummary))); + null); } /// - /// [PRIVATE API] Get vouchers summaries for App Id + /// /// /// Thrown when fails to make API call - /// Application Id - /// Page Number (optional) - /// Page Size (optional) - /// Search by Voucher Code\\s (optional) - /// Search by Status (optional) - /// Search by Type (optional) - /// Search by Sub Type (optional) - /// Search by Store Ids (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) + /// + /// + /// + /// Task of void + public async System.Threading.Tasks.Task SetVoucherValidityPeriodsSimplifiedAsync (string appId, int? voucherId, SetVoucherValidityPeriodsSimplifiedRequest request) { - ApiResponse localVarResponse = await GetVouchersAsyncWithHttpInfo(appId, pageIndex, pageSize, searchCodes, statusSearch, typeSearch, subTypeSearch, storeIds); - return localVarResponse.Data; + await SetVoucherValidityPeriodsSimplifiedAsyncWithHttpInfo(appId, voucherId, request); } /// - /// [PRIVATE API] Get vouchers summaries for App Id + /// /// /// Thrown when fails to make API call - /// Application Id - /// Page Number (optional) - /// Page Size (optional) - /// Search by Voucher Code\\s (optional) - /// Search by Status (optional) - /// Search by Type (optional) - /// Search by Sub Type (optional) - /// Search by Store Ids (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) + /// + /// + /// + /// 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->GetVouchers"); + 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/summaries"; + 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); @@ -1048,6 +1973,11 @@ public async System.Threading.Tasks.Task(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), - (RestApiPaginationResultVoucherSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RestApiPaginationResultVoucherSummary))); + null); } /// - /// [PRIVATE API] Updates voucher + /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Updated details for the voucher + /// + /// /// (optional) - /// Percent voucher value (can have 1 of 3) (optional) - /// Lump voucher value (can have 1 of 3) (optional) - /// Free Item Id (can have 1 of 3) (optional) + /// (optional) + /// (optional) + /// (optional) /// RestApiResultVoucherWithStats - public RestApiResultVoucherWithStats UpdateVoucher (int? voucherId, VoucherBase voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, int? freeItemId = null) + 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, freeItemId); + ApiResponse localVarResponse = UpdateVoucherWithHttpInfo(voucherId, voucher, storeId, percentValue, lumpValue, maxDiscountAmount); return localVarResponse.Data; } /// - /// [PRIVATE API] Updates voucher + /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Updated details for the voucher + /// + /// /// (optional) - /// Percent voucher value (can have 1 of 3) (optional) - /// Lump voucher value (can have 1 of 3) (optional) - /// Free Item Id (can have 1 of 3) (optional) + /// (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiResultVoucherWithStats - public ApiResponse< RestApiResultVoucherWithStats > UpdateVoucherWithHttpInfo (int? voucherId, VoucherBase voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, int? freeItemId = null) + 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) @@ -1166,7 +2098,7 @@ public ApiResponse< RestApiResultVoucherWithStats > UpdateVoucherWithHttpInfo (i 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 (freeItemId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "freeItemId", freeItemId)); // 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 @@ -1202,35 +2134,35 @@ public ApiResponse< RestApiResultVoucherWithStats > UpdateVoucherWithHttpInfo (i } /// - /// [PRIVATE API] Updates voucher + /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Updated details for the voucher + /// + /// /// (optional) - /// Percent voucher value (can have 1 of 3) (optional) - /// Lump voucher value (can have 1 of 3) (optional) - /// Free Item Id (can have 1 of 3) (optional) + /// (optional) + /// (optional) + /// (optional) /// Task of RestApiResultVoucherWithStats - public async System.Threading.Tasks.Task UpdateVoucherAsync (int? voucherId, VoucherBase voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, int? freeItemId = null) + 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, freeItemId); + ApiResponse localVarResponse = await UpdateVoucherAsyncWithHttpInfo(voucherId, voucher, storeId, percentValue, lumpValue, maxDiscountAmount); return localVarResponse.Data; } /// - /// [PRIVATE API] Updates voucher + /// /// /// Thrown when fails to make API call - /// Id of the voucher - /// Updated details for the voucher + /// + /// /// (optional) - /// Percent voucher value (can have 1 of 3) (optional) - /// Lump voucher value (can have 1 of 3) (optional) - /// Free Item Id (can have 1 of 3) (optional) + /// (optional) + /// (optional) + /// (optional) /// Task of ApiResponse (RestApiResultVoucherWithStats) - public async System.Threading.Tasks.Task> UpdateVoucherAsyncWithHttpInfo (int? voucherId, VoucherBase voucher, List storeId = null, int? percentValue = null, double? lumpValue = null, int? freeItemId = null) + 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) @@ -1272,7 +2204,7 @@ public async System.Threading.Tasks.Task + /// + /// + /// 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 index a11c2bfe..22086e08 100644 --- a/src/Flipdish/Api/WebhooksApi.cs +++ b/src/Flipdish/Api/WebhooksApi.cs @@ -25,111 +25,111 @@ public interface IWebhooksApi : IApiAccessor { #region Synchronous Operations /// - /// Create a webhook subscription for you Oauth App + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription object + /// + /// /// /// RestApiIntegerResult - RestApiIntegerResult CraeteWebhookSubscription (string oauthAppId, WebhookSubscription webhookSubscription, string appId); + RestApiIntegerResult CreateWebhookSubscription (string oauthAppId, WebhookSubscription webhookSubscription, string appId); /// - /// Create a webhook subscription for you Oauth App + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription object + /// + /// /// /// ApiResponse of RestApiIntegerResult - ApiResponse CraeteWebhookSubscriptionWithHttpInfo (string oauthAppId, WebhookSubscription webhookSubscription, string appId); + ApiResponse CreateWebhookSubscriptionWithHttpInfo (string oauthAppId, WebhookSubscription webhookSubscription, string appId); /// - /// Add event name to your webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// void CreateWebhookSubscriptionEventNames (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); /// - /// Add event name to your webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// ApiResponse of Object(void) ApiResponse CreateWebhookSubscriptionEventNamesWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); /// - /// Delete you webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// void DeleteWebhookSubscription (string oauthAppId, int? webhookSubscriptionId, string appId); /// - /// Delete you webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// ApiResponse of Object(void) ApiResponse DeleteWebhookSubscriptionWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId); /// - /// Remove event name to your webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// void DeleteWebhookSubscriptionEventName (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); /// - /// Remove event name to your webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// ApiResponse of Object(void) ApiResponse DeleteWebhookSubscriptionEventNameWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); /// - /// Get all webhook subscription event names + /// /// /// /// @@ -140,7 +140,7 @@ public interface IWebhooksApi : IApiAccessor RestApiStringArrayResult GetWebhookEventNames (string appId); /// - /// Get all webhook subscription event names + /// /// /// /// @@ -150,32 +150,32 @@ public interface IWebhooksApi : IApiAccessor /// ApiResponse of RestApiStringArrayResult ApiResponse GetWebhookEventNamesWithHttpInfo (string appId); /// - /// Get your webhook subscriptions selected event names + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// RestApiStringArrayResult RestApiStringArrayResult GetWebhookEventNamesBySubscriptionId (string oauthAppId, int? webhookSubscriptionId, string appId); /// - /// Get your webhook subscriptions selected event names + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// ApiResponse of RestApiStringArrayResult ApiResponse GetWebhookEventNamesBySubscriptionIdWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId); /// - /// Get a sample event from a webhook subscription + /// /// /// /// @@ -190,7 +190,7 @@ public interface IWebhooksApi : IApiAccessor WebhookEventSample GetWebhookEventSample (string eventName, string appId, string oauthAppId, string webhookSubscriptionId, string version = null); /// - /// Get a sample event from a webhook subscription + /// /// /// /// @@ -204,46 +204,46 @@ public interface IWebhooksApi : IApiAccessor /// ApiResponse of WebhookEventSample ApiResponse GetWebhookEventSampleWithHttpInfo (string eventName, string appId, string oauthAppId, string webhookSubscriptionId, string version = null); /// - /// Get logs for your webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Start time - /// End time + /// + /// + /// + /// /// - /// Page number (optional) - /// Page size (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultWebhookLog RestApiPaginationResultWebhookLog GetWebhookLogs (string oauthAppId, int? webhookSubscriptionId, DateTime? start, DateTime? end, string appId, int? page = null, int? limit = null); /// - /// Get logs for your webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Start time - /// End time + /// + /// + /// + /// /// - /// Page number (optional) - /// Page size (optional) + /// (optional) + /// (optional) /// ApiResponse of RestApiPaginationResultWebhookLog ApiResponse GetWebhookLogsWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, DateTime? start, DateTime? end, string appId, int? page = null, int? limit = null); /// - /// Get all webhook subscriptions by your Oauth App id + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier + /// /// /// (optional) /// (optional) @@ -251,153 +251,153 @@ public interface IWebhooksApi : IApiAccessor RestApiPaginationResultWebhookSubscription GetWebhookSubscriptions (string oauthAppId, string appId, int? page = null, int? limit = null); /// - /// Get all webhook subscriptions by your Oauth App id + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier + /// /// /// (optional) /// (optional) /// ApiResponse of RestApiPaginationResultWebhookSubscription ApiResponse GetWebhookSubscriptionsWithHttpInfo (string oauthAppId, string appId, int? page = null, int? limit = null); /// - /// Update a webhook subscription object + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription object + /// + /// + /// /// /// void UpdateWebhookSubscription (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId); /// - /// Update a webhook subscription object + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription object + /// + /// + /// /// /// ApiResponse of Object(void) ApiResponse UpdateWebhookSubscriptionWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId); #endregion Synchronous Operations #region Asynchronous Operations /// - /// Create a webhook subscription for you Oauth App + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription object + /// + /// /// /// Task of RestApiIntegerResult - System.Threading.Tasks.Task CraeteWebhookSubscriptionAsync (string oauthAppId, WebhookSubscription webhookSubscription, string appId); + System.Threading.Tasks.Task CreateWebhookSubscriptionAsync (string oauthAppId, WebhookSubscription webhookSubscription, string appId); /// - /// Create a webhook subscription for you Oauth App + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription object + /// + /// /// /// Task of ApiResponse (RestApiIntegerResult) - System.Threading.Tasks.Task> CraeteWebhookSubscriptionAsyncWithHttpInfo (string oauthAppId, WebhookSubscription webhookSubscription, string appId); + System.Threading.Tasks.Task> CreateWebhookSubscriptionAsyncWithHttpInfo (string oauthAppId, WebhookSubscription webhookSubscription, string appId); /// - /// Add event name to your webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// Task of void System.Threading.Tasks.Task CreateWebhookSubscriptionEventNamesAsync (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); /// - /// Add event name to your webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// Task of ApiResponse System.Threading.Tasks.Task> CreateWebhookSubscriptionEventNamesAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); /// - /// Delete you webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// Task of void System.Threading.Tasks.Task DeleteWebhookSubscriptionAsync (string oauthAppId, int? webhookSubscriptionId, string appId); /// - /// Delete you webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// Task of ApiResponse System.Threading.Tasks.Task> DeleteWebhookSubscriptionAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId); /// - /// Remove event name to your webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// Task of void System.Threading.Tasks.Task DeleteWebhookSubscriptionEventNameAsync (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); /// - /// Remove event name to your webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// Task of ApiResponse System.Threading.Tasks.Task> DeleteWebhookSubscriptionEventNameAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId); /// - /// Get all webhook subscription event names + /// /// /// /// @@ -408,7 +408,7 @@ public interface IWebhooksApi : IApiAccessor System.Threading.Tasks.Task GetWebhookEventNamesAsync (string appId); /// - /// Get all webhook subscription event names + /// /// /// /// @@ -418,32 +418,32 @@ public interface IWebhooksApi : IApiAccessor /// Task of ApiResponse (RestApiStringArrayResult) System.Threading.Tasks.Task> GetWebhookEventNamesAsyncWithHttpInfo (string appId); /// - /// Get your webhook subscriptions selected event names + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// Task of RestApiStringArrayResult System.Threading.Tasks.Task GetWebhookEventNamesBySubscriptionIdAsync (string oauthAppId, int? webhookSubscriptionId, string appId); /// - /// Get your webhook subscriptions selected event names + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// Task of ApiResponse (RestApiStringArrayResult) System.Threading.Tasks.Task> GetWebhookEventNamesBySubscriptionIdAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId); /// - /// Get a sample event from a webhook subscription + /// /// /// /// @@ -458,7 +458,7 @@ public interface IWebhooksApi : IApiAccessor System.Threading.Tasks.Task GetWebhookEventSampleAsync (string eventName, string appId, string oauthAppId, string webhookSubscriptionId, string version = null); /// - /// Get a sample event from a webhook subscription + /// /// /// /// @@ -472,46 +472,46 @@ public interface IWebhooksApi : IApiAccessor /// Task of ApiResponse (WebhookEventSample) System.Threading.Tasks.Task> GetWebhookEventSampleAsyncWithHttpInfo (string eventName, string appId, string oauthAppId, string webhookSubscriptionId, string version = null); /// - /// Get logs for your webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Start time - /// End time + /// + /// + /// + /// /// - /// Page number (optional) - /// Page size (optional) + /// (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); /// - /// Get logs for your webhook subscription + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Start time - /// End time + /// + /// + /// + /// /// - /// Page number (optional) - /// Page size (optional) + /// (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); /// - /// Get all webhook subscriptions by your Oauth App id + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier + /// /// /// (optional) /// (optional) @@ -519,42 +519,42 @@ public interface IWebhooksApi : IApiAccessor System.Threading.Tasks.Task GetWebhookSubscriptionsAsync (string oauthAppId, string appId, int? page = null, int? limit = null); /// - /// Get all webhook subscriptions by your Oauth App id + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier + /// /// /// (optional) /// (optional) /// Task of ApiResponse (RestApiPaginationResultWebhookSubscription) System.Threading.Tasks.Task> GetWebhookSubscriptionsAsyncWithHttpInfo (string oauthAppId, string appId, int? page = null, int? limit = null); /// - /// Update a webhook subscription object + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription object + /// + /// + /// /// /// Task of void System.Threading.Tasks.Task UpdateWebhookSubscriptionAsync (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId); /// - /// Update a webhook subscription object + /// /// /// /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription object + /// + /// + /// /// /// Task of ApiResponse System.Threading.Tasks.Task> UpdateWebhookSubscriptionAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId); @@ -659,38 +659,38 @@ public void AddDefaultHeader(string key, string value) } /// - /// Create a webhook subscription for you Oauth App + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription object + /// + /// /// /// RestApiIntegerResult - public RestApiIntegerResult CraeteWebhookSubscription (string oauthAppId, WebhookSubscription webhookSubscription, string appId) + public RestApiIntegerResult CreateWebhookSubscription (string oauthAppId, WebhookSubscription webhookSubscription, string appId) { - ApiResponse localVarResponse = CraeteWebhookSubscriptionWithHttpInfo(oauthAppId, webhookSubscription, appId); + ApiResponse localVarResponse = CreateWebhookSubscriptionWithHttpInfo(oauthAppId, webhookSubscription, appId); return localVarResponse.Data; } /// - /// Create a webhook subscription for you Oauth App + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription object + /// + /// /// /// ApiResponse of RestApiIntegerResult - public ApiResponse< RestApiIntegerResult > CraeteWebhookSubscriptionWithHttpInfo (string oauthAppId, WebhookSubscription webhookSubscription, string appId) + 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->CraeteWebhookSubscription"); + 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->CraeteWebhookSubscription"); + 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->CraeteWebhookSubscription"); + 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(); @@ -748,7 +748,7 @@ public ApiResponse< RestApiIntegerResult > CraeteWebhookSubscriptionWithHttpInfo if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("CraeteWebhookSubscription", localVarResponse); + Exception exception = ExceptionFactory("CreateWebhookSubscription", localVarResponse); if (exception != null) throw exception; } @@ -758,39 +758,39 @@ public ApiResponse< RestApiIntegerResult > CraeteWebhookSubscriptionWithHttpInfo } /// - /// Create a webhook subscription for you Oauth App + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription object + /// + /// /// /// Task of RestApiIntegerResult - public async System.Threading.Tasks.Task CraeteWebhookSubscriptionAsync (string oauthAppId, WebhookSubscription webhookSubscription, string appId) + public async System.Threading.Tasks.Task CreateWebhookSubscriptionAsync (string oauthAppId, WebhookSubscription webhookSubscription, string appId) { - ApiResponse localVarResponse = await CraeteWebhookSubscriptionAsyncWithHttpInfo(oauthAppId, webhookSubscription, appId); + ApiResponse localVarResponse = await CreateWebhookSubscriptionAsyncWithHttpInfo(oauthAppId, webhookSubscription, appId); return localVarResponse.Data; } /// - /// Create a webhook subscription for you Oauth App + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription object + /// + /// /// /// Task of ApiResponse (RestApiIntegerResult) - public async System.Threading.Tasks.Task> CraeteWebhookSubscriptionAsyncWithHttpInfo (string oauthAppId, WebhookSubscription webhookSubscription, string appId) + 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->CraeteWebhookSubscription"); + 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->CraeteWebhookSubscription"); + 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->CraeteWebhookSubscription"); + 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(); @@ -848,7 +848,7 @@ public async System.Threading.Tasks.Task> Crae if (ExceptionFactory != null) { - Exception exception = ExceptionFactory("CraeteWebhookSubscription", localVarResponse); + Exception exception = ExceptionFactory("CreateWebhookSubscription", localVarResponse); if (exception != null) throw exception; } @@ -858,12 +858,12 @@ public async System.Threading.Tasks.Task> Crae } /// - /// Add event name to your webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// public void CreateWebhookSubscriptionEventNames (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) @@ -872,12 +872,12 @@ public void CreateWebhookSubscriptionEventNames (string oauthAppId, int? webhook } /// - /// Add event name to your webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// ApiResponse of Object(void) public ApiResponse CreateWebhookSubscriptionEventNamesWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) @@ -950,12 +950,12 @@ public ApiResponse CreateWebhookSubscriptionEventNamesWithHttpInfo (stri } /// - /// Add event name to your webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// Task of void public async System.Threading.Tasks.Task CreateWebhookSubscriptionEventNamesAsync (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) @@ -965,12 +965,12 @@ public async System.Threading.Tasks.Task CreateWebhookSubscriptionEventNamesAsyn } /// - /// Add event name to your webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> CreateWebhookSubscriptionEventNamesAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) @@ -1043,11 +1043,11 @@ public async System.Threading.Tasks.Task> CreateWebhookSubsc } /// - /// Delete you webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// public void DeleteWebhookSubscription (string oauthAppId, int? webhookSubscriptionId, string appId) @@ -1056,11 +1056,11 @@ public void DeleteWebhookSubscription (string oauthAppId, int? webhookSubscripti } /// - /// Delete you webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// ApiResponse of Object(void) public ApiResponse DeleteWebhookSubscriptionWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId) @@ -1129,11 +1129,11 @@ public ApiResponse DeleteWebhookSubscriptionWithHttpInfo (string oauthAp } /// - /// Delete you webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// Task of void public async System.Threading.Tasks.Task DeleteWebhookSubscriptionAsync (string oauthAppId, int? webhookSubscriptionId, string appId) @@ -1143,11 +1143,11 @@ public async System.Threading.Tasks.Task DeleteWebhookSubscriptionAsync (string } /// - /// Delete you webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> DeleteWebhookSubscriptionAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId) @@ -1216,12 +1216,12 @@ public async System.Threading.Tasks.Task> DeleteWebhookSubsc } /// - /// Remove event name to your webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// public void DeleteWebhookSubscriptionEventName (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) @@ -1230,12 +1230,12 @@ public void DeleteWebhookSubscriptionEventName (string oauthAppId, int? webhookS } /// - /// Remove event name to your webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// ApiResponse of Object(void) public ApiResponse DeleteWebhookSubscriptionEventNameWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) @@ -1308,12 +1308,12 @@ public ApiResponse DeleteWebhookSubscriptionEventNameWithHttpInfo (strin } /// - /// Remove event name to your webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// Task of void public async System.Threading.Tasks.Task DeleteWebhookSubscriptionEventNameAsync (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) @@ -1323,12 +1323,12 @@ public async System.Threading.Tasks.Task DeleteWebhookSubscriptionEventNameAsync } /// - /// Remove event name to your webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription event name + /// + /// + /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> DeleteWebhookSubscriptionEventNameAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string eventName, string appId) @@ -1401,7 +1401,7 @@ public async System.Threading.Tasks.Task> DeleteWebhookSubsc } /// - /// Get all webhook subscription event names + /// /// /// Thrown when fails to make API call /// @@ -1413,7 +1413,7 @@ public RestApiStringArrayResult GetWebhookEventNames (string appId) } /// - /// Get all webhook subscription event names + /// /// /// Thrown when fails to make API call /// @@ -1476,7 +1476,7 @@ public ApiResponse< RestApiStringArrayResult > GetWebhookEventNamesWithHttpInfo } /// - /// Get all webhook subscription event names + /// /// /// Thrown when fails to make API call /// @@ -1489,7 +1489,7 @@ public async System.Threading.Tasks.Task GetWebhookEve } /// - /// Get all webhook subscription event names + /// /// /// Thrown when fails to make API call /// @@ -1552,11 +1552,11 @@ public async System.Threading.Tasks.Task> } /// - /// Get your webhook subscriptions selected event names + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// RestApiStringArrayResult public RestApiStringArrayResult GetWebhookEventNamesBySubscriptionId (string oauthAppId, int? webhookSubscriptionId, string appId) @@ -1566,11 +1566,11 @@ public RestApiStringArrayResult GetWebhookEventNamesBySubscriptionId (string oau } /// - /// Get your webhook subscriptions selected event names + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// ApiResponse of RestApiStringArrayResult public ApiResponse< RestApiStringArrayResult > GetWebhookEventNamesBySubscriptionIdWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId) @@ -1639,11 +1639,11 @@ public ApiResponse< RestApiStringArrayResult > GetWebhookEventNamesBySubscriptio } /// - /// Get your webhook subscriptions selected event names + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// Task of RestApiStringArrayResult public async System.Threading.Tasks.Task GetWebhookEventNamesBySubscriptionIdAsync (string oauthAppId, int? webhookSubscriptionId, string appId) @@ -1654,11 +1654,11 @@ public async System.Threading.Tasks.Task GetWebhookEve } /// - /// Get your webhook subscriptions selected event names + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier + /// + /// /// /// Task of ApiResponse (RestApiStringArrayResult) public async System.Threading.Tasks.Task> GetWebhookEventNamesBySubscriptionIdAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, string appId) @@ -1727,7 +1727,7 @@ public async System.Threading.Tasks.Task> } /// - /// Get a sample event from a webhook subscription + /// /// /// Thrown when fails to make API call /// @@ -1743,7 +1743,7 @@ public WebhookEventSample GetWebhookEventSample (string eventName, string appId, } /// - /// Get a sample event from a webhook subscription + /// /// /// Thrown when fails to make API call /// @@ -1823,7 +1823,7 @@ public ApiResponse< WebhookEventSample > GetWebhookEventSampleWithHttpInfo (stri } /// - /// Get a sample event from a webhook subscription + /// /// /// Thrown when fails to make API call /// @@ -1840,7 +1840,7 @@ public async System.Threading.Tasks.Task GetWebhookEventSamp } /// - /// Get a sample event from a webhook subscription + /// /// /// Thrown when fails to make API call /// @@ -1920,16 +1920,16 @@ public async System.Threading.Tasks.Task> GetWeb } /// - /// Get logs for your webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Start time - /// End time + /// + /// + /// + /// /// - /// Page number (optional) - /// Page size (optional) + /// (optional) + /// (optional) /// RestApiPaginationResultWebhookLog public RestApiPaginationResultWebhookLog GetWebhookLogs (string oauthAppId, int? webhookSubscriptionId, DateTime? start, DateTime? end, string appId, int? page = null, int? limit = null) { @@ -1938,16 +1938,16 @@ public RestApiPaginationResultWebhookLog GetWebhookLogs (string oauthAppId, int? } /// - /// Get logs for your webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Start time - /// End time + /// + /// + /// + /// /// - /// Page number (optional) - /// Page size (optional) + /// (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) { @@ -2025,16 +2025,16 @@ public ApiResponse< RestApiPaginationResultWebhookLog > GetWebhookLogsWithHttpIn } /// - /// Get logs for your webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Start time - /// End time + /// + /// + /// + /// /// - /// Page number (optional) - /// Page size (optional) + /// (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) { @@ -2044,16 +2044,16 @@ public async System.Threading.Tasks.Task GetW } /// - /// Get logs for your webhook subscription + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Start time - /// End time + /// + /// + /// + /// /// - /// Page number (optional) - /// Page size (optional) + /// (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) { @@ -2131,10 +2131,10 @@ public async System.Threading.Tasks.Task - /// Get all webhook subscriptions by your Oauth App id + /// /// /// Thrown when fails to make API call - /// Oauth App identifier + /// /// /// (optional) /// (optional) @@ -2146,10 +2146,10 @@ public RestApiPaginationResultWebhookSubscription GetWebhookSubscriptions (strin } /// - /// Get all webhook subscriptions by your Oauth App id + /// /// /// Thrown when fails to make API call - /// Oauth App identifier + /// /// /// (optional) /// (optional) @@ -2218,10 +2218,10 @@ public ApiResponse< RestApiPaginationResultWebhookSubscription > GetWebhookSubsc } /// - /// Get all webhook subscriptions by your Oauth App id + /// /// /// Thrown when fails to make API call - /// Oauth App identifier + /// /// /// (optional) /// (optional) @@ -2234,10 +2234,10 @@ public async System.Threading.Tasks.Task - /// Get all webhook subscriptions by your Oauth App id + /// /// /// Thrown when fails to make API call - /// Oauth App identifier + /// /// /// (optional) /// (optional) @@ -2306,12 +2306,12 @@ public async System.Threading.Tasks.Task - /// Update a webhook subscription object + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription object + /// + /// + /// /// /// public void UpdateWebhookSubscription (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId) @@ -2320,12 +2320,12 @@ public void UpdateWebhookSubscription (string oauthAppId, int? webhookSubscripti } /// - /// Update a webhook subscription object + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription object + /// + /// + /// /// /// ApiResponse of Object(void) public ApiResponse UpdateWebhookSubscriptionWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId) @@ -2410,12 +2410,12 @@ public ApiResponse UpdateWebhookSubscriptionWithHttpInfo (string oauthAp } /// - /// Update a webhook subscription object + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription object + /// + /// + /// /// /// Task of void public async System.Threading.Tasks.Task UpdateWebhookSubscriptionAsync (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId) @@ -2425,12 +2425,12 @@ public async System.Threading.Tasks.Task UpdateWebhookSubscriptionAsync (string } /// - /// Update a webhook subscription object + /// /// /// Thrown when fails to make API call - /// Oauth App identifier - /// Webhook subscription identifier - /// Webhook subscription object + /// + /// + /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> UpdateWebhookSubscriptionAsyncWithHttpInfo (string oauthAppId, int? webhookSubscriptionId, WebhookSubscription webhookSubscription, string appId) diff --git a/src/Flipdish/Api/WebsiteApi.cs b/src/Flipdish/Api/WebsiteApi.cs index 1c39ffaa..a9231af6 100644 --- a/src/Flipdish/Api/WebsiteApi.cs +++ b/src/Flipdish/Api/WebsiteApi.cs @@ -25,170 +25,170 @@ public interface IWebsiteApi : IApiAccessor { #region Synchronous Operations /// - /// Add a testimonial + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Testimonial to be added + /// + /// /// RestApiResultWebsiteTestimonial RestApiResultWebsiteTestimonial AddTestimonial (string appId, WebsiteTestimonialBase testimonial); /// - /// Add a testimonial + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Testimonial to be added + /// + /// /// ApiResponse of RestApiResultWebsiteTestimonial ApiResponse AddTestimonialWithHttpInfo (string appId, WebsiteTestimonialBase testimonial); /// - /// Delete a testimonial + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to delete + /// + /// /// void DeleteTestimonial (string appId, int? testimonialId); /// - /// Delete a testimonial + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to delete + /// + /// /// ApiResponse of Object(void) ApiResponse DeleteTestimonialWithHttpInfo (string appId, int? testimonialId); /// - /// Delete Website Image + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the image + /// + /// /// void DeleteWebsiteImage (string appId, int? imageId); /// - /// Delete Website Image + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the image + /// + /// /// ApiResponse of Object(void) ApiResponse DeleteWebsiteImageWithHttpInfo (string appId, int? imageId); /// - /// Edit a testimonial + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to edit - /// New values of the testimonial + /// + /// + /// /// RestApiResultWebsiteTestimonial RestApiResultWebsiteTestimonial EditTestimonial (string appId, int? testimonialId, WebsiteTestimonialBase testimonial); /// - /// Edit a testimonial + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to edit - /// New values of the testimonial + /// + /// + /// /// ApiResponse of RestApiResultWebsiteTestimonial ApiResponse EditTestimonialWithHttpInfo (string appId, int? testimonialId, WebsiteTestimonialBase testimonial); /// - /// Get Index Configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// RestApiResultIndexPage RestApiResultIndexPage GetIndexConfiguration (string appId); /// - /// Get Index Configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// ApiResponse of RestApiResultIndexPage ApiResponse GetIndexConfigurationWithHttpInfo (string appId); /// - /// Set Index Configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// New index page definition + /// + /// /// RestApiResultIndexPageBase RestApiResultIndexPageBase SetIndexConfiguration (string appId, IndexPageBase indexPage); /// - /// Set Index Configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// New index page definition + /// + /// /// ApiResponse of RestApiResultIndexPageBase ApiResponse SetIndexConfigurationWithHttpInfo (string appId, IndexPageBase indexPage); /// - /// Upload Website Image + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Section for which to upload the image + /// + /// /// App Logo /// RestApiResultWebsiteImage RestApiResultWebsiteImage UploadWebsiteImage (string appId, string imageLocation, System.IO.Stream image); /// - /// Upload Website Image + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Section for which to upload the image + /// + /// /// App Logo /// ApiResponse of RestApiResultWebsiteImage ApiResponse UploadWebsiteImageWithHttpInfo (string appId, string imageLocation, System.IO.Stream image); /// - /// Triggers a Check DNS Process + /// /// /// /// @@ -199,7 +199,7 @@ public interface IWebsiteApi : IApiAccessor void WebsiteCheckNow (string appId); /// - /// Triggers a Check DNS Process + /// /// /// /// @@ -211,170 +211,170 @@ public interface IWebsiteApi : IApiAccessor #endregion Synchronous Operations #region Asynchronous Operations /// - /// Add a testimonial + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Testimonial to be added + /// + /// /// Task of RestApiResultWebsiteTestimonial System.Threading.Tasks.Task AddTestimonialAsync (string appId, WebsiteTestimonialBase testimonial); /// - /// Add a testimonial + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Testimonial to be added + /// + /// /// Task of ApiResponse (RestApiResultWebsiteTestimonial) System.Threading.Tasks.Task> AddTestimonialAsyncWithHttpInfo (string appId, WebsiteTestimonialBase testimonial); /// - /// Delete a testimonial + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to delete + /// + /// /// Task of void System.Threading.Tasks.Task DeleteTestimonialAsync (string appId, int? testimonialId); /// - /// Delete a testimonial + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to delete + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> DeleteTestimonialAsyncWithHttpInfo (string appId, int? testimonialId); /// - /// Delete Website Image + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the image + /// + /// /// Task of void System.Threading.Tasks.Task DeleteWebsiteImageAsync (string appId, int? imageId); /// - /// Delete Website Image + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the image + /// + /// /// Task of ApiResponse System.Threading.Tasks.Task> DeleteWebsiteImageAsyncWithHttpInfo (string appId, int? imageId); /// - /// Edit a testimonial + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to edit - /// New values of the testimonial + /// + /// + /// /// Task of RestApiResultWebsiteTestimonial System.Threading.Tasks.Task EditTestimonialAsync (string appId, int? testimonialId, WebsiteTestimonialBase testimonial); /// - /// Edit a testimonial + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to edit - /// New values of the testimonial + /// + /// + /// /// Task of ApiResponse (RestApiResultWebsiteTestimonial) System.Threading.Tasks.Task> EditTestimonialAsyncWithHttpInfo (string appId, int? testimonialId, WebsiteTestimonialBase testimonial); /// - /// Get Index Configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// Task of RestApiResultIndexPage System.Threading.Tasks.Task GetIndexConfigurationAsync (string appId); /// - /// Get Index Configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// Task of ApiResponse (RestApiResultIndexPage) System.Threading.Tasks.Task> GetIndexConfigurationAsyncWithHttpInfo (string appId); /// - /// Set Index Configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// New index page definition + /// + /// /// Task of RestApiResultIndexPageBase System.Threading.Tasks.Task SetIndexConfigurationAsync (string appId, IndexPageBase indexPage); /// - /// Set Index Configuration + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// New index page definition + /// + /// /// Task of ApiResponse (RestApiResultIndexPageBase) System.Threading.Tasks.Task> SetIndexConfigurationAsyncWithHttpInfo (string appId, IndexPageBase indexPage); /// - /// Upload Website Image + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Section for which to upload the image + /// + /// /// App Logo /// Task of RestApiResultWebsiteImage System.Threading.Tasks.Task UploadWebsiteImageAsync (string appId, string imageLocation, System.IO.Stream image); /// - /// Upload Website Image + /// /// /// /// /// /// Thrown when fails to make API call - /// Application identifier - /// Section for which to upload the image + /// + /// /// App Logo /// Task of ApiResponse (RestApiResultWebsiteImage) System.Threading.Tasks.Task> UploadWebsiteImageAsyncWithHttpInfo (string appId, string imageLocation, System.IO.Stream image); /// - /// Triggers a Check DNS Process + /// /// /// /// @@ -385,7 +385,7 @@ public interface IWebsiteApi : IApiAccessor System.Threading.Tasks.Task WebsiteCheckNowAsync (string appId); /// - /// Triggers a Check DNS Process + /// /// /// /// @@ -495,11 +495,11 @@ public void AddDefaultHeader(string key, string value) } /// - /// Add a testimonial + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Testimonial to be added + /// + /// /// RestApiResultWebsiteTestimonial public RestApiResultWebsiteTestimonial AddTestimonial (string appId, WebsiteTestimonialBase testimonial) { @@ -508,11 +508,11 @@ public RestApiResultWebsiteTestimonial AddTestimonial (string appId, WebsiteTest } /// - /// Add a testimonial + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Testimonial to be added + /// + /// /// ApiResponse of RestApiResultWebsiteTestimonial public ApiResponse< RestApiResultWebsiteTestimonial > AddTestimonialWithHttpInfo (string appId, WebsiteTestimonialBase testimonial) { @@ -588,11 +588,11 @@ public ApiResponse< RestApiResultWebsiteTestimonial > AddTestimonialWithHttpInfo } /// - /// Add a testimonial + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Testimonial to be added + /// + /// /// Task of RestApiResultWebsiteTestimonial public async System.Threading.Tasks.Task AddTestimonialAsync (string appId, WebsiteTestimonialBase testimonial) { @@ -602,11 +602,11 @@ public async System.Threading.Tasks.Task AddTes } /// - /// Add a testimonial + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Testimonial to be added + /// + /// /// Task of ApiResponse (RestApiResultWebsiteTestimonial) public async System.Threading.Tasks.Task> AddTestimonialAsyncWithHttpInfo (string appId, WebsiteTestimonialBase testimonial) { @@ -682,11 +682,11 @@ public async System.Threading.Tasks.Task - /// Delete a testimonial + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to delete + /// + /// /// public void DeleteTestimonial (string appId, int? testimonialId) { @@ -694,11 +694,11 @@ public void DeleteTestimonial (string appId, int? testimonialId) } /// - /// Delete a testimonial + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to delete + /// + /// /// ApiResponse of Object(void) public ApiResponse DeleteTestimonialWithHttpInfo (string appId, int? testimonialId) { @@ -762,11 +762,11 @@ public ApiResponse DeleteTestimonialWithHttpInfo (string appId, int? tes } /// - /// Delete a testimonial + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to delete + /// + /// /// Task of void public async System.Threading.Tasks.Task DeleteTestimonialAsync (string appId, int? testimonialId) { @@ -775,11 +775,11 @@ public async System.Threading.Tasks.Task DeleteTestimonialAsync (string appId, i } /// - /// Delete a testimonial + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to delete + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> DeleteTestimonialAsyncWithHttpInfo (string appId, int? testimonialId) { @@ -843,11 +843,11 @@ public async System.Threading.Tasks.Task> DeleteTestimonialA } /// - /// Delete Website Image + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the image + /// + /// /// public void DeleteWebsiteImage (string appId, int? imageId) { @@ -855,11 +855,11 @@ public void DeleteWebsiteImage (string appId, int? imageId) } /// - /// Delete Website Image + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the image + /// + /// /// ApiResponse of Object(void) public ApiResponse DeleteWebsiteImageWithHttpInfo (string appId, int? imageId) { @@ -923,11 +923,11 @@ public ApiResponse DeleteWebsiteImageWithHttpInfo (string appId, int? im } /// - /// Delete Website Image + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the image + /// + /// /// Task of void public async System.Threading.Tasks.Task DeleteWebsiteImageAsync (string appId, int? imageId) { @@ -936,11 +936,11 @@ public async System.Threading.Tasks.Task DeleteWebsiteImageAsync (string appId, } /// - /// Delete Website Image + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the image + /// + /// /// Task of ApiResponse public async System.Threading.Tasks.Task> DeleteWebsiteImageAsyncWithHttpInfo (string appId, int? imageId) { @@ -1004,12 +1004,12 @@ public async System.Threading.Tasks.Task> DeleteWebsiteImage } /// - /// Edit a testimonial + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to edit - /// New values of the testimonial + /// + /// + /// /// RestApiResultWebsiteTestimonial public RestApiResultWebsiteTestimonial EditTestimonial (string appId, int? testimonialId, WebsiteTestimonialBase testimonial) { @@ -1018,12 +1018,12 @@ public RestApiResultWebsiteTestimonial EditTestimonial (string appId, int? testi } /// - /// Edit a testimonial + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to edit - /// New values of the testimonial + /// + /// + /// /// ApiResponse of RestApiResultWebsiteTestimonial public ApiResponse< RestApiResultWebsiteTestimonial > EditTestimonialWithHttpInfo (string appId, int? testimonialId, WebsiteTestimonialBase testimonial) { @@ -1103,12 +1103,12 @@ public ApiResponse< RestApiResultWebsiteTestimonial > EditTestimonialWithHttpInf } /// - /// Edit a testimonial + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to edit - /// New values of the testimonial + /// + /// + /// /// Task of RestApiResultWebsiteTestimonial public async System.Threading.Tasks.Task EditTestimonialAsync (string appId, int? testimonialId, WebsiteTestimonialBase testimonial) { @@ -1118,12 +1118,12 @@ public async System.Threading.Tasks.Task EditTe } /// - /// Edit a testimonial + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Id of the testimonial to edit - /// New values of the testimonial + /// + /// + /// /// Task of ApiResponse (RestApiResultWebsiteTestimonial) public async System.Threading.Tasks.Task> EditTestimonialAsyncWithHttpInfo (string appId, int? testimonialId, WebsiteTestimonialBase testimonial) { @@ -1203,10 +1203,10 @@ public async System.Threading.Tasks.Task - /// Get Index Configuration + /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// RestApiResultIndexPage public RestApiResultIndexPage GetIndexConfiguration (string appId) { @@ -1215,10 +1215,10 @@ public RestApiResultIndexPage GetIndexConfiguration (string appId) } /// - /// Get Index Configuration + /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// ApiResponse of RestApiResultIndexPage public ApiResponse< RestApiResultIndexPage > GetIndexConfigurationWithHttpInfo (string appId) { @@ -1278,10 +1278,10 @@ public ApiResponse< RestApiResultIndexPage > GetIndexConfigurationWithHttpInfo ( } /// - /// Get Index Configuration + /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// Task of RestApiResultIndexPage public async System.Threading.Tasks.Task GetIndexConfigurationAsync (string appId) { @@ -1291,10 +1291,10 @@ public async System.Threading.Tasks.Task GetIndexConfigu } /// - /// Get Index Configuration + /// /// /// Thrown when fails to make API call - /// Application identifier + /// /// Task of ApiResponse (RestApiResultIndexPage) public async System.Threading.Tasks.Task> GetIndexConfigurationAsyncWithHttpInfo (string appId) { @@ -1354,11 +1354,11 @@ public async System.Threading.Tasks.Task> Ge } /// - /// Set Index Configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// New index page definition + /// + /// /// RestApiResultIndexPageBase public RestApiResultIndexPageBase SetIndexConfiguration (string appId, IndexPageBase indexPage) { @@ -1367,11 +1367,11 @@ public RestApiResultIndexPageBase SetIndexConfiguration (string appId, IndexPage } /// - /// Set Index Configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// New index page definition + /// + /// /// ApiResponse of RestApiResultIndexPageBase public ApiResponse< RestApiResultIndexPageBase > SetIndexConfigurationWithHttpInfo (string appId, IndexPageBase indexPage) { @@ -1447,11 +1447,11 @@ public ApiResponse< RestApiResultIndexPageBase > SetIndexConfigurationWithHttpIn } /// - /// Set Index Configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// New index page definition + /// + /// /// Task of RestApiResultIndexPageBase public async System.Threading.Tasks.Task SetIndexConfigurationAsync (string appId, IndexPageBase indexPage) { @@ -1461,11 +1461,11 @@ public async System.Threading.Tasks.Task SetIndexCon } /// - /// Set Index Configuration + /// /// /// Thrown when fails to make API call - /// Application identifier - /// New index page definition + /// + /// /// Task of ApiResponse (RestApiResultIndexPageBase) public async System.Threading.Tasks.Task> SetIndexConfigurationAsyncWithHttpInfo (string appId, IndexPageBase indexPage) { @@ -1541,11 +1541,11 @@ public async System.Threading.Tasks.Task } /// - /// Upload Website Image + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Section for which to upload the image + /// + /// /// App Logo /// RestApiResultWebsiteImage public RestApiResultWebsiteImage UploadWebsiteImage (string appId, string imageLocation, System.IO.Stream image) @@ -1555,11 +1555,11 @@ public RestApiResultWebsiteImage UploadWebsiteImage (string appId, string imageL } /// - /// Upload Website Image + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Section for which to upload the image + /// + /// /// App Logo /// ApiResponse of RestApiResultWebsiteImage public ApiResponse< RestApiResultWebsiteImage > UploadWebsiteImageWithHttpInfo (string appId, string imageLocation, System.IO.Stream image) @@ -1629,11 +1629,11 @@ public ApiResponse< RestApiResultWebsiteImage > UploadWebsiteImageWithHttpInfo ( } /// - /// Upload Website Image + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Section for which to upload the image + /// + /// /// App Logo /// Task of RestApiResultWebsiteImage public async System.Threading.Tasks.Task UploadWebsiteImageAsync (string appId, string imageLocation, System.IO.Stream image) @@ -1644,11 +1644,11 @@ public async System.Threading.Tasks.Task UploadWebsit } /// - /// Upload Website Image + /// /// /// Thrown when fails to make API call - /// Application identifier - /// Section for which to upload the image + /// + /// /// App Logo /// Task of ApiResponse (RestApiResultWebsiteImage) public async System.Threading.Tasks.Task> UploadWebsiteImageAsyncWithHttpInfo (string appId, string imageLocation, System.IO.Stream image) @@ -1718,7 +1718,7 @@ public async System.Threading.Tasks.Task> } /// - /// Triggers a Check DNS Process + /// /// /// Thrown when fails to make API call /// @@ -1729,7 +1729,7 @@ public void WebsiteCheckNow (string appId) } /// - /// Triggers a Check DNS Process + /// /// /// Thrown when fails to make API call /// @@ -1792,7 +1792,7 @@ public ApiResponse WebsiteCheckNowWithHttpInfo (string appId) } /// - /// Triggers a Check DNS Process + /// /// /// Thrown when fails to make API call /// @@ -1804,7 +1804,7 @@ public async System.Threading.Tasks.Task WebsiteCheckNowAsync (string appId) } /// - /// Triggers a Check DNS Process + /// /// /// Thrown when fails to make API call /// 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/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 index accabf95..ff5927b5 100644 --- a/src/Flipdish/Model/AccountDetail.cs +++ b/src/Flipdish/Model/AccountDetail.cs @@ -41,7 +41,8 @@ public partial class AccountDetail : IEquatable /// Time Zone Info Id. /// Display the time in time zone local to the user. /// Show hidden features. - 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?)) + /// 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; @@ -53,6 +54,7 @@ public partial class AccountDetail : IEquatable this.TimeZoneInfoId = timeZoneInfoId; this.DisplayTimesInUserLocalTimeZone = displayTimesInUserLocalTimeZone; this.ShowHiddenFeatures = showHiddenFeatures; + this.CreatedAt = createdAt; } /// @@ -125,6 +127,13 @@ public partial class AccountDetail : IEquatable [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 /// @@ -143,6 +152,7 @@ public override string ToString() 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(); } @@ -226,6 +236,11 @@ public bool Equals(AccountDetail input) this.ShowHiddenFeatures == input.ShowHiddenFeatures || (this.ShowHiddenFeatures != null && this.ShowHiddenFeatures.Equals(input.ShowHiddenFeatures)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) ); } @@ -258,6 +273,8 @@ public override int GetHashCode() 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 index 0a186418..7b872258 100644 --- a/src/Flipdish/Model/AccountDetailBase.cs +++ b/src/Flipdish/Model/AccountDetailBase.cs @@ -36,13 +36,15 @@ public partial class AccountDetailBase : IEquatable /// Time Zone Info Id. /// Display the time in time zone local to the user. /// Show hidden features. - public AccountDetailBase(string name = default(string), string language = default(string), string timeZoneInfoId = default(string), bool? displayTimesInUserLocalTimeZone = default(bool?), bool? showHiddenFeatures = default(bool?)) + /// 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; } /// @@ -80,6 +82,13 @@ public partial class AccountDetailBase : IEquatable [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 /// @@ -93,6 +102,7 @@ public override string ToString() 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(); } @@ -151,6 +161,11 @@ public bool Equals(AccountDetailBase input) this.ShowHiddenFeatures == input.ShowHiddenFeatures || (this.ShowHiddenFeatures != null && this.ShowHiddenFeatures.Equals(input.ShowHiddenFeatures)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) ); } @@ -173,6 +188,8 @@ public override int GetHashCode() 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/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 index 09d12da7..97e0edc5 100644 --- a/src/Flipdish/Model/AnalyticsClientEvent.cs +++ b/src/Flipdish/Model/AnalyticsClientEvent.cs @@ -42,8 +42,11 @@ public partial class AnalyticsClientEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -56,7 +59,10 @@ public partial class AnalyticsClientEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -136,6 +142,13 @@ public partial class AnalyticsClientEvent : IEquatable [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 /// @@ -143,6 +156,20 @@ public partial class AnalyticsClientEvent : IEquatable [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 /// @@ -162,7 +189,10 @@ public override string ToString() 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(); } @@ -252,10 +282,25 @@ public bool Equals(AnalyticsClientEvent input) (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)) ); } @@ -290,8 +335,14 @@ public override int GetHashCode() 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/App.cs b/src/Flipdish/Model/App.cs index 851e7834..fe09bf31 100644 --- a/src/Flipdish/Model/App.cs +++ b/src/Flipdish/Model/App.cs @@ -54,47 +54,71 @@ public enum AppAccessLevelEnum [EnumMember(Value = "StoreOwner")] StoreOwner = 3, + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 4, + /// /// Enum ManagedOwner for value: ManagedOwner /// [EnumMember(Value = "ManagedOwner")] - ManagedOwner = 4, + ManagedOwner = 5, /// /// Enum Integrator for value: Integrator /// [EnumMember(Value = "Integrator")] - Integrator = 5, + Integrator = 6, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 7, /// /// Enum StoreManager for value: StoreManager /// [EnumMember(Value = "StoreManager")] - StoreManager = 6, + StoreManager = 8, /// /// Enum StoreStaff for value: StoreStaff /// [EnumMember(Value = "StoreStaff")] - StoreStaff = 7, + StoreStaff = 9, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 10, /// /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess /// [EnumMember(Value = "StoreReadOnlyAccess")] - StoreReadOnlyAccess = 8, + StoreReadOnlyAccess = 11, /// /// Enum FinanceManger for value: FinanceManger /// [EnumMember(Value = "FinanceManger")] - FinanceManger = 9, + FinanceManger = 12, + + /// + /// Enum Onboarding for value: Onboarding + /// + [EnumMember(Value = "Onboarding")] + Onboarding = 13, /// /// Enum Support for value: Support /// [EnumMember(Value = "Support")] - Support = 10 + Support = 14 } /// @@ -128,869 +152,1217 @@ public enum AppResourceSetEnum [EnumMember(Value = "UpdateApp")] UpdateApp = 3, + /// + /// Enum ViewAppName for value: ViewAppName + /// + [EnumMember(Value = "ViewAppName")] + ViewAppName = 4, + /// /// Enum EditAppAssets for value: EditAppAssets /// [EnumMember(Value = "EditAppAssets")] - EditAppAssets = 4, + EditAppAssets = 5, + + /// + /// Enum EditAppFeatures for value: EditAppFeatures + /// + [EnumMember(Value = "EditAppFeatures")] + EditAppFeatures = 6, /// /// Enum ViewTeammates for value: ViewTeammates /// [EnumMember(Value = "ViewTeammates")] - ViewTeammates = 5, + ViewTeammates = 7, /// /// Enum EditTeammates for value: EditTeammates /// [EnumMember(Value = "EditTeammates")] - EditTeammates = 6, + EditTeammates = 8, /// /// Enum CreateTeammateOwner for value: CreateTeammateOwner /// [EnumMember(Value = "CreateTeammateOwner")] - CreateTeammateOwner = 7, + CreateTeammateOwner = 9, /// /// Enum CreateTeammateManagedOwner for value: CreateTeammateManagedOwner /// [EnumMember(Value = "CreateTeammateManagedOwner")] - CreateTeammateManagedOwner = 8, + CreateTeammateManagedOwner = 10, /// /// Enum CreateTeammateStoreOwner for value: CreateTeammateStoreOwner /// [EnumMember(Value = "CreateTeammateStoreOwner")] - CreateTeammateStoreOwner = 9, + CreateTeammateStoreOwner = 11, /// /// Enum CreateTeammateStoreManager for value: CreateTeammateStoreManager /// [EnumMember(Value = "CreateTeammateStoreManager")] - CreateTeammateStoreManager = 10, + CreateTeammateStoreManager = 12, /// /// Enum CreateTeammateStoreStaff for value: CreateTeammateStoreStaff /// [EnumMember(Value = "CreateTeammateStoreStaff")] - CreateTeammateStoreStaff = 11, + CreateTeammateStoreStaff = 13, /// /// Enum CreateTeammateStoreReadAccess for value: CreateTeammateStoreReadAccess /// [EnumMember(Value = "CreateTeammateStoreReadAccess")] - CreateTeammateStoreReadAccess = 12, + CreateTeammateStoreReadAccess = 14, /// /// Enum CreateTeammateFinanceManager for value: CreateTeammateFinanceManager /// [EnumMember(Value = "CreateTeammateFinanceManager")] - CreateTeammateFinanceManager = 13, + CreateTeammateFinanceManager = 15, /// /// Enum CreateTeammateIntegrator for value: CreateTeammateIntegrator /// [EnumMember(Value = "CreateTeammateIntegrator")] - CreateTeammateIntegrator = 14, + 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 = 15, + ViewApmConfigurations = 21, /// /// Enum EditApmConfigurations for value: EditApmConfigurations /// [EnumMember(Value = "EditApmConfigurations")] - EditApmConfigurations = 16, + EditApmConfigurations = 22, /// /// Enum ViewCampaignsConfigurations for value: ViewCampaignsConfigurations /// [EnumMember(Value = "ViewCampaignsConfigurations")] - ViewCampaignsConfigurations = 17, + ViewCampaignsConfigurations = 23, /// /// Enum CreateCampaignsConfigurations for value: CreateCampaignsConfigurations /// [EnumMember(Value = "CreateCampaignsConfigurations")] - CreateCampaignsConfigurations = 18, + CreateCampaignsConfigurations = 24, /// /// Enum UpdateCampaignsConfigurations for value: UpdateCampaignsConfigurations /// [EnumMember(Value = "UpdateCampaignsConfigurations")] - UpdateCampaignsConfigurations = 19, + UpdateCampaignsConfigurations = 25, /// /// Enum DeleteCampaignsConfigurations for value: DeleteCampaignsConfigurations /// [EnumMember(Value = "DeleteCampaignsConfigurations")] - DeleteCampaignsConfigurations = 20, + DeleteCampaignsConfigurations = 26, + + /// + /// Enum StampLoyaltyCardAgainstCampaignsConfigurations for value: StampLoyaltyCardAgainstCampaignsConfigurations + /// + [EnumMember(Value = "StampLoyaltyCardAgainstCampaignsConfigurations")] + StampLoyaltyCardAgainstCampaignsConfigurations = 27, /// /// Enum ViewDevelopersSettings for value: ViewDevelopersSettings /// [EnumMember(Value = "ViewDevelopersSettings")] - ViewDevelopersSettings = 21, + ViewDevelopersSettings = 28, /// /// Enum EditDevelopersSettings for value: EditDevelopersSettings /// [EnumMember(Value = "EditDevelopersSettings")] - EditDevelopersSettings = 22, + EditDevelopersSettings = 29, /// /// Enum ViewOrders for value: ViewOrders /// [EnumMember(Value = "ViewOrders")] - ViewOrders = 23, + ViewOrders = 30, /// /// Enum UpdateOrdersAccept for value: UpdateOrdersAccept /// [EnumMember(Value = "UpdateOrdersAccept")] - UpdateOrdersAccept = 24, + UpdateOrdersAccept = 31, /// /// Enum UpdateOrdersReject for value: UpdateOrdersReject /// [EnumMember(Value = "UpdateOrdersReject")] - UpdateOrdersReject = 25, + UpdateOrdersReject = 32, /// /// Enum UpdateOrdersRefund for value: UpdateOrdersRefund /// [EnumMember(Value = "UpdateOrdersRefund")] - UpdateOrdersRefund = 26, + UpdateOrdersRefund = 33, /// /// Enum UpdateOrdersDispatch for value: UpdateOrdersDispatch /// [EnumMember(Value = "UpdateOrdersDispatch")] - UpdateOrdersDispatch = 27, + UpdateOrdersDispatch = 34, /// /// Enum ViewStores for value: ViewStores /// [EnumMember(Value = "ViewStores")] - ViewStores = 28, + ViewStores = 35, + + /// + /// Enum CreateStores for value: CreateStores + /// + [EnumMember(Value = "CreateStores")] + CreateStores = 36, /// /// Enum EditStores for value: EditStores /// [EnumMember(Value = "EditStores")] - EditStores = 29, + EditStores = 37, /// /// Enum ViewStoresOpeningHours for value: ViewStoresOpeningHours /// [EnumMember(Value = "ViewStoresOpeningHours")] - ViewStoresOpeningHours = 30, + ViewStoresOpeningHours = 38, /// /// Enum UpdateStoresOpenForCollectionOrDelivery for value: UpdateStoresOpenForCollectionOrDelivery /// [EnumMember(Value = "UpdateStoresOpenForCollectionOrDelivery")] - UpdateStoresOpenForCollectionOrDelivery = 31, + UpdateStoresOpenForCollectionOrDelivery = 39, /// /// Enum UpdateStoresOpeningHours for value: UpdateStoresOpeningHours /// [EnumMember(Value = "UpdateStoresOpeningHours")] - UpdateStoresOpeningHours = 32, + UpdateStoresOpeningHours = 40, /// /// Enum ViewStoresOpeningHoursOverride for value: ViewStoresOpeningHoursOverride /// [EnumMember(Value = "ViewStoresOpeningHoursOverride")] - ViewStoresOpeningHoursOverride = 33, + ViewStoresOpeningHoursOverride = 41, /// /// Enum EditStoresOpeningHoursOverride for value: EditStoresOpeningHoursOverride /// [EnumMember(Value = "EditStoresOpeningHoursOverride")] - EditStoresOpeningHoursOverride = 34, + EditStoresOpeningHoursOverride = 42, /// /// Enum EditStoresOpeningHoursOverrideTemporary for value: EditStoresOpeningHoursOverrideTemporary /// [EnumMember(Value = "EditStoresOpeningHoursOverrideTemporary")] - EditStoresOpeningHoursOverrideTemporary = 35, + EditStoresOpeningHoursOverrideTemporary = 43, /// /// Enum UpdateStoresName for value: UpdateStoresName /// [EnumMember(Value = "UpdateStoresName")] - UpdateStoresName = 36, + UpdateStoresName = 44, /// /// Enum EditStoreKioskSettings for value: EditStoreKioskSettings /// [EnumMember(Value = "EditStoreKioskSettings")] - EditStoreKioskSettings = 37, + EditStoreKioskSettings = 45, /// /// Enum EditStoreOrderCapacity for value: EditStoreOrderCapacity /// [EnumMember(Value = "EditStoreOrderCapacity")] - EditStoreOrderCapacity = 38, + 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 = 39, + UpdatePrinterTerminalsAssign = 49, /// /// Enum UpdatePrinterTerminalsToggle for value: UpdatePrinterTerminalsToggle /// [EnumMember(Value = "UpdatePrinterTerminalsToggle")] - UpdatePrinterTerminalsToggle = 40, + UpdatePrinterTerminalsToggle = 50, /// /// Enum EditStoreNotifications for value: EditStoreNotifications /// [EnumMember(Value = "EditStoreNotifications")] - EditStoreNotifications = 41, + EditStoreNotifications = 51, /// /// Enum ViewStoreGroups for value: ViewStoreGroups /// [EnumMember(Value = "ViewStoreGroups")] - ViewStoreGroups = 42, + ViewStoreGroups = 52, /// /// Enum CreateStoreGroups for value: CreateStoreGroups /// [EnumMember(Value = "CreateStoreGroups")] - CreateStoreGroups = 43, + CreateStoreGroups = 53, /// /// Enum UpdateStoreGroups for value: UpdateStoreGroups /// [EnumMember(Value = "UpdateStoreGroups")] - UpdateStoreGroups = 44, + UpdateStoreGroups = 54, /// /// Enum DeleteStoreGroups for value: DeleteStoreGroups /// [EnumMember(Value = "DeleteStoreGroups")] - DeleteStoreGroups = 45, + DeleteStoreGroups = 55, /// /// Enum ViewDeliveryZones for value: ViewDeliveryZones /// [EnumMember(Value = "ViewDeliveryZones")] - ViewDeliveryZones = 46, + ViewDeliveryZones = 56, /// /// Enum CreateDeliveryZones for value: CreateDeliveryZones /// [EnumMember(Value = "CreateDeliveryZones")] - CreateDeliveryZones = 47, + CreateDeliveryZones = 57, /// /// Enum UpdateDeliveryZones for value: UpdateDeliveryZones /// [EnumMember(Value = "UpdateDeliveryZones")] - UpdateDeliveryZones = 48, + UpdateDeliveryZones = 58, /// /// Enum DeleteDeliveryZones for value: DeleteDeliveryZones /// [EnumMember(Value = "DeleteDeliveryZones")] - DeleteDeliveryZones = 49, + DeleteDeliveryZones = 59, /// /// Enum ViewMenu for value: ViewMenu /// [EnumMember(Value = "ViewMenu")] - ViewMenu = 50, + ViewMenu = 60, /// /// Enum CreateMenu for value: CreateMenu /// [EnumMember(Value = "CreateMenu")] - CreateMenu = 51, + CreateMenu = 61, /// /// Enum UpdateMenu for value: UpdateMenu /// [EnumMember(Value = "UpdateMenu")] - UpdateMenu = 52, + UpdateMenu = 62, /// /// Enum DeleteMenu for value: DeleteMenu /// [EnumMember(Value = "DeleteMenu")] - DeleteMenu = 53, + DeleteMenu = 63, /// /// Enum UpdateMenuLock for value: UpdateMenuLock /// [EnumMember(Value = "UpdateMenuLock")] - UpdateMenuLock = 54, + UpdateMenuLock = 64, /// /// Enum UpdateMenuItemsHideTemporarily for value: UpdateMenuItemsHideTemporarily /// [EnumMember(Value = "UpdateMenuItemsHideTemporarily")] - UpdateMenuItemsHideTemporarily = 55, + UpdateMenuItemsHideTemporarily = 65, /// /// Enum EditMenuImage for value: EditMenuImage /// [EnumMember(Value = "EditMenuImage")] - EditMenuImage = 56, + EditMenuImage = 66, /// /// Enum ViewVouchers for value: ViewVouchers /// [EnumMember(Value = "ViewVouchers")] - ViewVouchers = 57, + ViewVouchers = 67, /// /// Enum EditVouchers for value: EditVouchers /// [EnumMember(Value = "EditVouchers")] - EditVouchers = 58, - - /// - /// Enum UpdateVouchersExtendDisable for value: UpdateVouchersExtendDisable - /// - [EnumMember(Value = "UpdateVouchersExtendDisable")] - UpdateVouchersExtendDisable = 59, + EditVouchers = 68, /// /// Enum ViewWebsiteContent for value: ViewWebsiteContent /// [EnumMember(Value = "ViewWebsiteContent")] - ViewWebsiteContent = 60, + ViewWebsiteContent = 69, /// /// Enum EditWebsiteContent for value: EditWebsiteContent /// [EnumMember(Value = "EditWebsiteContent")] - EditWebsiteContent = 61, + EditWebsiteContent = 70, /// /// Enum ViewWebsiteDnsVerified for value: ViewWebsiteDnsVerified /// [EnumMember(Value = "ViewWebsiteDnsVerified")] - ViewWebsiteDnsVerified = 62, + ViewWebsiteDnsVerified = 71, /// /// Enum ViewWebsiteCertificateCreated for value: ViewWebsiteCertificateCreated /// [EnumMember(Value = "ViewWebsiteCertificateCreated")] - ViewWebsiteCertificateCreated = 63, + ViewWebsiteCertificateCreated = 72, /// /// Enum ViewWebsiteCertificateRenewed for value: ViewWebsiteCertificateRenewed /// [EnumMember(Value = "ViewWebsiteCertificateRenewed")] - ViewWebsiteCertificateRenewed = 64, + ViewWebsiteCertificateRenewed = 73, /// /// Enum ViewBankAccounts for value: ViewBankAccounts /// [EnumMember(Value = "ViewBankAccounts")] - ViewBankAccounts = 65, + ViewBankAccounts = 74, /// /// Enum CreateBankAccounts for value: CreateBankAccounts /// [EnumMember(Value = "CreateBankAccounts")] - CreateBankAccounts = 66, + CreateBankAccounts = 75, /// /// Enum UpdateBankAccounts for value: UpdateBankAccounts /// [EnumMember(Value = "UpdateBankAccounts")] - UpdateBankAccounts = 67, + UpdateBankAccounts = 76, /// /// Enum UpdateBankAccountsAssign for value: UpdateBankAccountsAssign /// [EnumMember(Value = "UpdateBankAccountsAssign")] - UpdateBankAccountsAssign = 68, + UpdateBankAccountsAssign = 77, /// /// Enum ViewAssignedBankAccount for value: ViewAssignedBankAccount /// [EnumMember(Value = "ViewAssignedBankAccount")] - ViewAssignedBankAccount = 69, + ViewAssignedBankAccount = 78, /// /// Enum VerifyBankAccounts for value: VerifyBankAccounts /// [EnumMember(Value = "VerifyBankAccounts")] - VerifyBankAccounts = 70, + VerifyBankAccounts = 79, /// /// Enum ViewServiceChargeConfigurations for value: ViewServiceChargeConfigurations /// [EnumMember(Value = "ViewServiceChargeConfigurations")] - ViewServiceChargeConfigurations = 71, + ViewServiceChargeConfigurations = 80, /// /// Enum EditServiceChargeConfigurations for value: EditServiceChargeConfigurations /// [EnumMember(Value = "EditServiceChargeConfigurations")] - EditServiceChargeConfigurations = 72, + 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 = 73, + ViewHydraConfig = 84, /// /// Enum UpdateHydraConfigManage for value: UpdateHydraConfigManage /// [EnumMember(Value = "UpdateHydraConfigManage")] - UpdateHydraConfigManage = 74, + UpdateHydraConfigManage = 85, /// /// Enum InitiateBluetoothPairingMode for value: InitiateBluetoothPairingMode /// [EnumMember(Value = "InitiateBluetoothPairingMode")] - InitiateBluetoothPairingMode = 75, + InitiateBluetoothPairingMode = 86, /// /// Enum DeleteTerminal for value: DeleteTerminal /// [EnumMember(Value = "DeleteTerminal")] - DeleteTerminal = 76, + DeleteTerminal = 87, /// /// Enum ViewKioskTelemetry for value: ViewKioskTelemetry /// [EnumMember(Value = "ViewKioskTelemetry")] - ViewKioskTelemetry = 77, + ViewKioskTelemetry = 88, /// /// Enum ViewCustomers for value: ViewCustomers /// [EnumMember(Value = "ViewCustomers")] - ViewCustomers = 78, + ViewCustomers = 89, /// /// Enum EditCustomers for value: EditCustomers /// [EnumMember(Value = "EditCustomers")] - EditCustomers = 79, + EditCustomers = 90, + + /// + /// Enum CreateCustomers for value: CreateCustomers + /// + [EnumMember(Value = "CreateCustomers")] + CreateCustomers = 91, /// /// Enum CreateCatalogElements for value: CreateCatalogElements /// [EnumMember(Value = "CreateCatalogElements")] - CreateCatalogElements = 80, + CreateCatalogElements = 92, /// /// Enum UpdateCatalogElements for value: UpdateCatalogElements /// [EnumMember(Value = "UpdateCatalogElements")] - UpdateCatalogElements = 81, + UpdateCatalogElements = 93, /// /// Enum ViewCatalogElements for value: ViewCatalogElements /// [EnumMember(Value = "ViewCatalogElements")] - ViewCatalogElements = 82, + ViewCatalogElements = 94, /// /// Enum DeleteCatalogElements for value: DeleteCatalogElements /// [EnumMember(Value = "DeleteCatalogElements")] - DeleteCatalogElements = 83, + DeleteCatalogElements = 95, /// /// Enum ViewMetafieldDefinitions for value: ViewMetafieldDefinitions /// [EnumMember(Value = "ViewMetafieldDefinitions")] - ViewMetafieldDefinitions = 84, + ViewMetafieldDefinitions = 96, /// /// Enum CreateMetafieldDefinitions for value: CreateMetafieldDefinitions /// [EnumMember(Value = "CreateMetafieldDefinitions")] - CreateMetafieldDefinitions = 85, + CreateMetafieldDefinitions = 97, /// /// Enum UpdateMetafieldDefinitions for value: UpdateMetafieldDefinitions /// [EnumMember(Value = "UpdateMetafieldDefinitions")] - UpdateMetafieldDefinitions = 86, + UpdateMetafieldDefinitions = 98, /// /// Enum DeleteMetafieldDefinitions for value: DeleteMetafieldDefinitions /// [EnumMember(Value = "DeleteMetafieldDefinitions")] - DeleteMetafieldDefinitions = 87, + DeleteMetafieldDefinitions = 99, /// /// Enum UpdateMetafields for value: UpdateMetafields /// [EnumMember(Value = "UpdateMetafields")] - UpdateMetafields = 88, + UpdateMetafields = 100, /// /// Enum ViewCatalogMenuChanges for value: ViewCatalogMenuChanges /// [EnumMember(Value = "ViewCatalogMenuChanges")] - ViewCatalogMenuChanges = 89, + ViewCatalogMenuChanges = 101, /// /// Enum PublishCatalogMenuChanges for value: PublishCatalogMenuChanges /// [EnumMember(Value = "PublishCatalogMenuChanges")] - PublishCatalogMenuChanges = 90, + PublishCatalogMenuChanges = 102, /// /// Enum ViewAppStatistics for value: ViewAppStatistics /// [EnumMember(Value = "ViewAppStatistics")] - ViewAppStatistics = 91, + ViewAppStatistics = 103, /// /// Enum ViewApmStatistics for value: ViewApmStatistics /// [EnumMember(Value = "ViewApmStatistics")] - ViewApmStatistics = 92, + ViewApmStatistics = 104, /// /// Enum ViewCampaignsStatistics for value: ViewCampaignsStatistics /// [EnumMember(Value = "ViewCampaignsStatistics")] - ViewCampaignsStatistics = 93, + ViewCampaignsStatistics = 105, /// /// Enum ViewCustomerStatistics for value: ViewCustomerStatistics /// [EnumMember(Value = "ViewCustomerStatistics")] - ViewCustomerStatistics = 94, + ViewCustomerStatistics = 106, /// /// Enum ViewLiveStatistics for value: ViewLiveStatistics /// [EnumMember(Value = "ViewLiveStatistics")] - ViewLiveStatistics = 95, + ViewLiveStatistics = 107, /// /// Enum ViewOrderStatistics for value: ViewOrderStatistics /// [EnumMember(Value = "ViewOrderStatistics")] - ViewOrderStatistics = 96, + ViewOrderStatistics = 108, /// /// Enum ViewSalesStatistics for value: ViewSalesStatistics /// [EnumMember(Value = "ViewSalesStatistics")] - ViewSalesStatistics = 97, + ViewSalesStatistics = 109, /// /// Enum ViewSalesEndOfDayStatistics for value: ViewSalesEndOfDayStatistics /// [EnumMember(Value = "ViewSalesEndOfDayStatistics")] - ViewSalesEndOfDayStatistics = 98, + ViewSalesEndOfDayStatistics = 110, /// /// Enum ViewVouchersStatistics for value: ViewVouchersStatistics /// [EnumMember(Value = "ViewVouchersStatistics")] - ViewVouchersStatistics = 99, + ViewVouchersStatistics = 111, /// /// Enum DownloadCustomerCsvExport for value: DownloadCustomerCsvExport /// [EnumMember(Value = "DownloadCustomerCsvExport")] - DownloadCustomerCsvExport = 100, + DownloadCustomerCsvExport = 112, /// /// Enum ViewApmAuditLogs for value: ViewApmAuditLogs /// [EnumMember(Value = "ViewApmAuditLogs")] - ViewApmAuditLogs = 101, + ViewApmAuditLogs = 113, /// /// Enum ViewStoreAuditLogs for value: ViewStoreAuditLogs /// [EnumMember(Value = "ViewStoreAuditLogs")] - ViewStoreAuditLogs = 102, + ViewStoreAuditLogs = 114, /// /// Enum ViewMenuAuditLogs for value: ViewMenuAuditLogs /// [EnumMember(Value = "ViewMenuAuditLogs")] - ViewMenuAuditLogs = 103, + ViewMenuAuditLogs = 115, /// /// Enum ViewBankAccountAuditLogs for value: ViewBankAccountAuditLogs /// [EnumMember(Value = "ViewBankAccountAuditLogs")] - ViewBankAccountAuditLogs = 104, + ViewBankAccountAuditLogs = 116, /// /// Enum ViewFeeConfigurationsAuditLogs for value: ViewFeeConfigurationsAuditLogs /// [EnumMember(Value = "ViewFeeConfigurationsAuditLogs")] - ViewFeeConfigurationsAuditLogs = 105, + ViewFeeConfigurationsAuditLogs = 117, /// /// Enum ViewOrdersAuditLogs for value: ViewOrdersAuditLogs /// [EnumMember(Value = "ViewOrdersAuditLogs")] - ViewOrdersAuditLogs = 106, + ViewOrdersAuditLogs = 118, /// /// Enum ViewVouchersAuditLogs for value: ViewVouchersAuditLogs /// [EnumMember(Value = "ViewVouchersAuditLogs")] - ViewVouchersAuditLogs = 107, + ViewVouchersAuditLogs = 119, /// /// Enum ViewUserEventsAuditLogs for value: ViewUserEventsAuditLogs /// [EnumMember(Value = "ViewUserEventsAuditLogs")] - ViewUserEventsAuditLogs = 108, + ViewUserEventsAuditLogs = 120, /// /// Enum ViewCampaignsAuditLogs for value: ViewCampaignsAuditLogs /// [EnumMember(Value = "ViewCampaignsAuditLogs")] - ViewCampaignsAuditLogs = 109, + ViewCampaignsAuditLogs = 121, /// /// Enum ViewTeammatesAuditLogs for value: ViewTeammatesAuditLogs /// [EnumMember(Value = "ViewTeammatesAuditLogs")] - ViewTeammatesAuditLogs = 110, + ViewTeammatesAuditLogs = 122, /// /// Enum ViewAppAuditLogs for value: ViewAppAuditLogs /// [EnumMember(Value = "ViewAppAuditLogs")] - ViewAppAuditLogs = 111, + ViewAppAuditLogs = 123, /// /// Enum ViewCustomerAuditLogs for value: ViewCustomerAuditLogs /// [EnumMember(Value = "ViewCustomerAuditLogs")] - ViewCustomerAuditLogs = 112, + ViewCustomerAuditLogs = 124, /// /// Enum ViewPrinterAuditLogs for value: ViewPrinterAuditLogs /// [EnumMember(Value = "ViewPrinterAuditLogs")] - ViewPrinterAuditLogs = 113, + ViewPrinterAuditLogs = 125, /// /// Enum ViewHydraAuditLogs for value: ViewHydraAuditLogs /// [EnumMember(Value = "ViewHydraAuditLogs")] - ViewHydraAuditLogs = 114, + ViewHydraAuditLogs = 126, /// /// Enum ViewPushNotificationAuditLogs for value: ViewPushNotificationAuditLogs /// [EnumMember(Value = "ViewPushNotificationAuditLogs")] - ViewPushNotificationAuditLogs = 115, + ViewPushNotificationAuditLogs = 127, /// /// Enum ViewStripeCustomConnectedAccountAuditLogs for value: ViewStripeCustomConnectedAccountAuditLogs /// [EnumMember(Value = "ViewStripeCustomConnectedAccountAuditLogs")] - ViewStripeCustomConnectedAccountAuditLogs = 116, + ViewStripeCustomConnectedAccountAuditLogs = 128, /// /// Enum ViewKioskBluetoothDeviceAuditLogs for value: ViewKioskBluetoothDeviceAuditLogs /// [EnumMember(Value = "ViewKioskBluetoothDeviceAuditLogs")] - ViewKioskBluetoothDeviceAuditLogs = 117, + ViewKioskBluetoothDeviceAuditLogs = 129, /// /// Enum ViewExternalAuditLogs for value: ViewExternalAuditLogs /// [EnumMember(Value = "ViewExternalAuditLogs")] - ViewExternalAuditLogs = 118, + ViewExternalAuditLogs = 130, /// /// Enum CreateExternalAuditLogEvents for value: CreateExternalAuditLogEvents /// [EnumMember(Value = "CreateExternalAuditLogEvents")] - CreateExternalAuditLogEvents = 119, + CreateExternalAuditLogEvents = 131, /// /// Enum ViewCatalogAuditLogs for value: ViewCatalogAuditLogs /// [EnumMember(Value = "ViewCatalogAuditLogs")] - ViewCatalogAuditLogs = 120, + ViewCatalogAuditLogs = 132, /// /// Enum ViewOrderFulfillmentAuditLogs for value: ViewOrderFulfillmentAuditLogs /// [EnumMember(Value = "ViewOrderFulfillmentAuditLogs")] - ViewOrderFulfillmentAuditLogs = 121, + 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 = 122, + SendPushNotificationToCustomer = 136, /// /// Enum InviteDriverToApp for value: InviteDriverToApp /// [EnumMember(Value = "InviteDriverToApp")] - InviteDriverToApp = 123, + InviteDriverToApp = 137, /// /// Enum GetDriverForApp for value: GetDriverForApp /// [EnumMember(Value = "GetDriverForApp")] - GetDriverForApp = 124, + GetDriverForApp = 138, /// /// Enum RemoveDriverFromApp for value: RemoveDriverFromApp /// [EnumMember(Value = "RemoveDriverFromApp")] - RemoveDriverFromApp = 125, + RemoveDriverFromApp = 139, /// /// Enum AssignDriverToOrder for value: AssignDriverToOrder /// [EnumMember(Value = "AssignDriverToOrder")] - AssignDriverToOrder = 126, + AssignDriverToOrder = 140, /// /// Enum UnassignDriverFromOrder for value: UnassignDriverFromOrder /// [EnumMember(Value = "UnassignDriverFromOrder")] - UnassignDriverFromOrder = 127, + UnassignDriverFromOrder = 141, /// /// Enum UpdateOrdersDeliveryTrackingStatus for value: UpdateOrdersDeliveryTrackingStatus /// [EnumMember(Value = "UpdateOrdersDeliveryTrackingStatus")] - UpdateOrdersDeliveryTrackingStatus = 128, + UpdateOrdersDeliveryTrackingStatus = 142, /// /// Enum UpdateOrderFulfillmentStatus for value: UpdateOrderFulfillmentStatus /// [EnumMember(Value = "UpdateOrderFulfillmentStatus")] - UpdateOrderFulfillmentStatus = 129, + UpdateOrderFulfillmentStatus = 143, /// /// Enum ViewFulfillmentStatesConfiguration for value: ViewFulfillmentStatesConfiguration /// [EnumMember(Value = "ViewFulfillmentStatesConfiguration")] - ViewFulfillmentStatesConfiguration = 130, + ViewFulfillmentStatesConfiguration = 144, /// /// Enum CreateFulfillmentStatesConfiguration for value: CreateFulfillmentStatesConfiguration /// [EnumMember(Value = "CreateFulfillmentStatesConfiguration")] - CreateFulfillmentStatesConfiguration = 131, + CreateFulfillmentStatesConfiguration = 145, /// /// Enum UpdateFulfillmentStatesConfiguration for value: UpdateFulfillmentStatesConfiguration /// [EnumMember(Value = "UpdateFulfillmentStatesConfiguration")] - UpdateFulfillmentStatesConfiguration = 132, + UpdateFulfillmentStatesConfiguration = 146, /// /// Enum DeleteFulfillmentStatesConfiguration for value: DeleteFulfillmentStatesConfiguration /// [EnumMember(Value = "DeleteFulfillmentStatesConfiguration")] - DeleteFulfillmentStatesConfiguration = 133, + DeleteFulfillmentStatesConfiguration = 147, /// /// Enum ViewPayouts for value: ViewPayouts /// [EnumMember(Value = "ViewPayouts")] - ViewPayouts = 134, + ViewPayouts = 148, /// /// Enum ViewChannels for value: ViewChannels /// [EnumMember(Value = "ViewChannels")] - ViewChannels = 135, + ViewChannels = 149, /// /// Enum ViewOnboarding for value: ViewOnboarding /// [EnumMember(Value = "ViewOnboarding")] - ViewOnboarding = 136, + ViewOnboarding = 150, /// /// Enum UpdateOnboarding for value: UpdateOnboarding /// [EnumMember(Value = "UpdateOnboarding")] - UpdateOnboarding = 137, + 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 = 138, + CreateAppStoreAppConfiguration = 157, /// /// Enum ViewAppStoreAppConfiguration for value: ViewAppStoreAppConfiguration /// [EnumMember(Value = "ViewAppStoreAppConfiguration")] - ViewAppStoreAppConfiguration = 139, + ViewAppStoreAppConfiguration = 158, /// /// Enum UpdateAppStoreAppConfiguration for value: UpdateAppStoreAppConfiguration /// [EnumMember(Value = "UpdateAppStoreAppConfiguration")] - UpdateAppStoreAppConfiguration = 140, + UpdateAppStoreAppConfiguration = 159, /// /// Enum DeleteAppStoreAppConfiguration for value: DeleteAppStoreAppConfiguration /// [EnumMember(Value = "DeleteAppStoreAppConfiguration")] - DeleteAppStoreAppConfiguration = 141, + 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 = 142, + ViewSalesChannels = 165, /// /// Enum EditSalesChannels for value: EditSalesChannels /// [EnumMember(Value = "EditSalesChannels")] - EditSalesChannels = 143, + EditSalesChannels = 166, /// /// Enum ViewPayGreenWhiteLabelConfiguration for value: ViewPayGreenWhiteLabelConfiguration /// [EnumMember(Value = "ViewPayGreenWhiteLabelConfiguration")] - ViewPayGreenWhiteLabelConfiguration = 144, + ViewPayGreenWhiteLabelConfiguration = 167, /// /// Enum CreatePayGreenWhiteLabelConfiguration for value: CreatePayGreenWhiteLabelConfiguration /// [EnumMember(Value = "CreatePayGreenWhiteLabelConfiguration")] - CreatePayGreenWhiteLabelConfiguration = 145, + CreatePayGreenWhiteLabelConfiguration = 168, /// /// Enum UpdatePayGreenWhiteLabelConfiguration for value: UpdatePayGreenWhiteLabelConfiguration /// [EnumMember(Value = "UpdatePayGreenWhiteLabelConfiguration")] - UpdatePayGreenWhiteLabelConfiguration = 146, + UpdatePayGreenWhiteLabelConfiguration = 169, /// /// Enum UpdatePayGreenStoreConfiguration for value: UpdatePayGreenStoreConfiguration /// [EnumMember(Value = "UpdatePayGreenStoreConfiguration")] - UpdatePayGreenStoreConfiguration = 147 + 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 } @@ -1001,6 +1373,51 @@ public enum AppResourceSetEnum [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 @@ -1038,8 +1455,10 @@ public enum ApplicationCategoryEnum /// /// 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.. - /// 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. + /// 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.. @@ -1049,18 +1468,27 @@ public enum ApplicationCategoryEnum /// 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 aternative 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.. + /// In case of IsPanaceaEnabled is true, the app can be accessed via https://my.flipdish.com/{PanaceaVanityUrl}. /// Cookie Consent Prompt Enabled. - public App(string appId = default(string), bool? hasIosApp = default(bool?), bool? hasAndroidApp = default(bool?), string countryId = default(string), 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 name = default(string), string hostName = default(string), string mainColor = default(string), ApplicationCategoryEnum? applicationCategory = default(ApplicationCategoryEnum?), bool? isPanaceaEnabled = default(bool?), bool? cookieConsentPromptEnabled = default(bool?)) + /// 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.CountryId = countryId; + this.AndroidPlayStoreUrl = androidPlayStoreUrl; + this.DisplayDeliveryRestaurantScreen = displayDeliveryRestaurantScreen; this.LogoImageUrl = logoImageUrl; this.Languages = languages; this.AvailableAppLanguages = availableAppLanguages; @@ -1070,12 +1498,19 @@ public enum ApplicationCategoryEnum 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; } /// @@ -1092,6 +1527,13 @@ public enum ApplicationCategoryEnum [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. /// @@ -1100,11 +1542,18 @@ public enum ApplicationCategoryEnum public bool? HasAndroidApp { 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 + /// Android Play Store 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 - [DataMember(Name="CountryId", EmitDefaultValue=false)] - public string CountryId { get; set; } + /// 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. @@ -1157,6 +1606,28 @@ public enum ApplicationCategoryEnum [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. /// @@ -1178,14 +1649,28 @@ public enum ApplicationCategoryEnum [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 aternative 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. /// - /// 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 aternative 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 /// @@ -1193,6 +1678,13 @@ public enum ApplicationCategoryEnum [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 /// @@ -1203,8 +1695,10 @@ public override string ToString() 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(" CountryId: ").Append(CountryId).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"); @@ -1214,12 +1708,19 @@ public override string ToString() 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(); } @@ -1264,15 +1765,25 @@ public bool Equals(App input) (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.CountryId == input.CountryId || - (this.CountryId != null && - this.CountryId.Equals(input.CountryId)) + 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 || @@ -1319,6 +1830,26 @@ public bool Equals(App input) (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 && @@ -1334,6 +1865,11 @@ public bool Equals(App input) (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 && @@ -1344,10 +1880,20 @@ public bool Equals(App input) (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)) ); } @@ -1364,10 +1910,14 @@ public override int GetHashCode() 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.CountryId != null) - hashCode = hashCode * 59 + this.CountryId.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) @@ -1386,18 +1936,32 @@ public override int GetHashCode() 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/AppCompliance.cs b/src/Flipdish/Model/AppCompliance.cs index 7a466ad3..fbe1a333 100644 --- a/src/Flipdish/Model/AppCompliance.cs +++ b/src/Flipdish/Model/AppCompliance.cs @@ -60,10 +60,12 @@ public enum ComplianceTypeEnum /// /// 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.. - public AppCompliance(string appId = default(string), ComplianceTypeEnum? complianceType = default(ComplianceTypeEnum?)) + /// 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; } /// @@ -74,6 +76,13 @@ public enum ComplianceTypeEnum 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 /// @@ -84,6 +93,7 @@ public override string ToString() 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(); } @@ -127,6 +137,11 @@ public bool Equals(AppCompliance input) this.ComplianceType == input.ComplianceType || (this.ComplianceType != null && this.ComplianceType.Equals(input.ComplianceType)) + ) && + ( + this.AllowDisablingOfGdpr == input.AllowDisablingOfGdpr || + (this.AllowDisablingOfGdpr != null && + this.AllowDisablingOfGdpr.Equals(input.AllowDisablingOfGdpr)) ); } @@ -143,6 +158,8 @@ public override int GetHashCode() 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 index b41cde8d..749d2f53 100644 --- a/src/Flipdish/Model/AppConfigSalesChannel.cs +++ b/src/Flipdish/Model/AppConfigSalesChannel.cs @@ -107,9 +107,9 @@ public enum WebToAppRedirectEnum [DataMember(Name="WebToAppRedirect", EmitDefaultValue=false)] public WebToAppRedirectEnum? WebToAppRedirect { get; set; } /// - /// Address entry type + /// Address entry type - TextEntryManualDisallowed is the only supported configuration /// - /// Address entry type + /// Address entry type - TextEntryManualDisallowed is the only supported configuration [JsonConverter(typeof(StringEnumConverter))] public enum AddressEntryTypeEnum { @@ -134,9 +134,9 @@ public enum AddressEntryTypeEnum } /// - /// Address entry type + /// Address entry type - TextEntryManualDisallowed is the only supported configuration /// - /// Address entry type + /// Address entry type - TextEntryManualDisallowed is the only supported configuration [DataMember(Name="AddressEntryType", EmitDefaultValue=false)] public AddressEntryTypeEnum? AddressEntryType { get; set; } /// @@ -144,7 +144,7 @@ public enum AddressEntryTypeEnum /// /// 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. + /// 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?)) { diff --git a/src/Flipdish/Model/AppConfigUpdateModel.cs b/src/Flipdish/Model/AppConfigUpdateModel.cs index bf061961..05421cea 100644 --- a/src/Flipdish/Model/AppConfigUpdateModel.cs +++ b/src/Flipdish/Model/AppConfigUpdateModel.cs @@ -67,17 +67,25 @@ public enum ApplicationCategoryEnum /// 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 aternative 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.. + /// In case of IsPanaceaEnabled is true, the app can be accessed via https://my.flipdish.com/{PanaceaVanityUrl}. /// Cookie Consent Prompt Enabled. - public AppConfigUpdateModel(string name = default(string), string hostName = default(string), string mainColor = default(string), ApplicationCategoryEnum? applicationCategory = default(ApplicationCategoryEnum?), bool? isPanaceaEnabled = default(bool?), bool? cookieConsentPromptEnabled = default(bool?)) + /// 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; } /// @@ -101,14 +109,28 @@ public enum ApplicationCategoryEnum [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 aternative 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. /// - /// 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 aternative 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 /// @@ -116,6 +138,20 @@ public enum ApplicationCategoryEnum [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 /// @@ -127,9 +163,13 @@ public override string ToString() 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(); } @@ -179,6 +219,11 @@ public bool Equals(AppConfigUpdateModel input) (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 && @@ -189,10 +234,25 @@ public bool Equals(AppConfigUpdateModel input) (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)) ); } @@ -211,12 +271,20 @@ public override int GetHashCode() 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 index 55645e91..348eb905 100644 --- a/src/Flipdish/Model/AppCreatedEvent.cs +++ b/src/Flipdish/Model/AppCreatedEvent.cs @@ -36,23 +36,31 @@ public partial class AppCreatedEvent : IEquatable /// 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. - public AppCreatedEvent(string eventName = default(string), string description = default(string), string appName = default(string), string countryId = 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)) + /// 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; } /// @@ -90,6 +98,20 @@ public partial class AppCreatedEvent : IEquatable [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 /// @@ -125,6 +147,20 @@ public partial class AppCreatedEvent : IEquatable [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 /// @@ -138,11 +174,15 @@ public override string ToString() 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(); } @@ -202,6 +242,16 @@ public bool Equals(AppCreatedEvent input) (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 && @@ -226,6 +276,16 @@ public bool Equals(AppCreatedEvent input) 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)) ); } @@ -248,6 +308,10 @@ public override int GetHashCode() 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) @@ -258,6 +322,10 @@ public override int GetHashCode() 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/RequestPasswordResetPinResponse.cs b/src/Flipdish/Model/AppLookup.cs similarity index 57% rename from src/Flipdish/Model/RequestPasswordResetPinResponse.cs rename to src/Flipdish/Model/AppLookup.cs index e541c6e3..c8a5e445 100644 --- a/src/Flipdish/Model/RequestPasswordResetPinResponse.cs +++ b/src/Flipdish/Model/AppLookup.cs @@ -23,26 +23,26 @@ namespace Flipdish.Model { /// - /// Request Password Reset PIN response + /// App lookup model /// [DataContract] - public partial class RequestPasswordResetPinResponse : IEquatable + public partial class AppLookup : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Password Reset PIN sent via email to user. - public RequestPasswordResetPinResponse(bool? passwordResetPinSentViaEmail = default(bool?)) + /// App id. + public AppLookup(string appId = default(string)) { - this.PasswordResetPinSentViaEmail = passwordResetPinSentViaEmail; + this.AppId = appId; } /// - /// Password Reset PIN sent via email to user + /// App id /// - /// Password Reset PIN sent via email to user - [DataMember(Name="PasswordResetPinSentViaEmail", EmitDefaultValue=false)] - public bool? PasswordResetPinSentViaEmail { get; set; } + /// App id + [DataMember(Name="AppId", EmitDefaultValue=false)] + public string AppId { get; set; } /// /// Returns the string presentation of the object @@ -51,8 +51,8 @@ public partial class RequestPasswordResetPinResponse : IEquatableBoolean public override bool Equals(object input) { - return this.Equals(input as RequestPasswordResetPinResponse); + return this.Equals(input as AppLookup); } /// - /// Returns true if RequestPasswordResetPinResponse instances are equal + /// Returns true if AppLookup instances are equal /// - /// Instance of RequestPasswordResetPinResponse to be compared + /// Instance of AppLookup to be compared /// Boolean - public bool Equals(RequestPasswordResetPinResponse input) + public bool Equals(AppLookup input) { if (input == null) return false; return ( - this.PasswordResetPinSentViaEmail == input.PasswordResetPinSentViaEmail || - (this.PasswordResetPinSentViaEmail != null && - this.PasswordResetPinSentViaEmail.Equals(input.PasswordResetPinSentViaEmail)) + this.AppId == input.AppId || + (this.AppId != null && + this.AppId.Equals(input.AppId)) ); } @@ -103,8 +103,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.PasswordResetPinSentViaEmail != null) - hashCode = hashCode * 59 + this.PasswordResetPinSentViaEmail.GetHashCode(); + 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 index ff31e6cc..62b8afdb 100644 --- a/src/Flipdish/Model/AppStoreApp.cs +++ b/src/Flipdish/Model/AppStoreApp.cs @@ -23,15 +23,14 @@ namespace Flipdish.Model { /// - /// App store app + /// AppStoreApp /// [DataContract] public partial class AppStoreApp : IEquatable { /// - /// Application verification status + /// Defines VerificationStatus /// - /// Application verification status [JsonConverter(typeof(StringEnumConverter))] public enum VerificationStatusEnum { @@ -56,15 +55,13 @@ public enum VerificationStatusEnum } /// - /// Application verification status + /// Gets or Sets VerificationStatus /// - /// Application verification status [DataMember(Name="VerificationStatus", EmitDefaultValue=false)] public VerificationStatusEnum VerificationStatus { get; set; } /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> + /// Defines ConfigurationType /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> [JsonConverter(typeof(StringEnumConverter))] public enum ConfigurationTypeEnum { @@ -83,15 +80,13 @@ public enum ConfigurationTypeEnum } /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> + /// Gets or Sets ConfigurationType /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> [DataMember(Name="ConfigurationType", EmitDefaultValue=false)] public ConfigurationTypeEnum ConfigurationType { get; set; } /// - /// Store selector type + /// Defines StoreSelectorType /// - /// Store selector type [JsonConverter(typeof(StringEnumConverter))] public enum StoreSelectorTypeEnum { @@ -116,15 +111,13 @@ public enum StoreSelectorTypeEnum } /// - /// Store selector type + /// Gets or Sets StoreSelectorType /// - /// Store selector type [DataMember(Name="StoreSelectorType", EmitDefaultValue=false)] public StoreSelectorTypeEnum StoreSelectorType { get; set; } /// - /// Teammate app access level + /// Defines TeammateAppAccessLevel /// - /// Teammate app access level [JsonConverter(typeof(StringEnumConverter))] public enum TeammateAppAccessLevelEnum { @@ -141,53 +134,69 @@ public enum TeammateAppAccessLevelEnum [EnumMember(Value = "StoreOwner")] StoreOwner = 2, + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 3, + /// /// Enum ManagedOwner for value: ManagedOwner /// [EnumMember(Value = "ManagedOwner")] - ManagedOwner = 3, + ManagedOwner = 4, /// /// Enum Integrator for value: Integrator /// [EnumMember(Value = "Integrator")] - Integrator = 4, + Integrator = 5, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 6, /// /// Enum StoreManager for value: StoreManager /// [EnumMember(Value = "StoreManager")] - StoreManager = 5, + StoreManager = 7, /// /// Enum StoreStaff for value: StoreStaff /// [EnumMember(Value = "StoreStaff")] - StoreStaff = 6, + StoreStaff = 8, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 9, /// /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess /// [EnumMember(Value = "StoreReadOnlyAccess")] - StoreReadOnlyAccess = 7, + StoreReadOnlyAccess = 10, /// /// Enum FinanceManger for value: FinanceManger /// [EnumMember(Value = "FinanceManger")] - FinanceManger = 8 + FinanceManger = 11 } /// - /// Teammate app access level + /// Gets or Sets TeammateAppAccessLevel /// - /// Teammate app access level [DataMember(Name="TeammateAppAccessLevel", EmitDefaultValue=false)] public TeammateAppAccessLevelEnum? TeammateAppAccessLevel { get; set; } /// - /// Permissions type + /// Defines PermissionsType /// - /// Permissions type [JsonConverter(typeof(StringEnumConverter))] public enum PermissionsTypeEnum { @@ -200,9 +209,8 @@ public enum PermissionsTypeEnum } /// - /// Permissions type + /// Gets or Sets PermissionsType /// - /// Permissions type [DataMember(Name="PermissionsType", EmitDefaultValue=false)] public PermissionsTypeEnum PermissionsType { get; set; } /// @@ -257,9 +265,8 @@ public enum CategoriesEnum /// - /// Categories + /// Gets or Sets Categories /// - /// Categories [DataMember(Name="Categories", EmitDefaultValue=false)] public List Categories { get; set; } /// @@ -374,9 +381,8 @@ public enum CountriesEnum /// - /// Countries + /// Gets or Sets Countries /// - /// Countries [DataMember(Name="Countries", EmitDefaultValue=false)] public List Countries { get; set; } /// @@ -387,26 +393,30 @@ protected AppStoreApp() { } /// /// Initializes a new instance of the class. /// - /// Unique App store app id (required). - /// Application verification status (required). - /// Logo. - /// OAuth App identifier (required). - /// Details (required). - /// Configuration type <example>External link</example><example>Flipdish hosted</example> (required). - /// Store selector type (required). - /// Field groups. - /// Setup instructions. - /// External setup link. - /// Teammate app access level. - /// Permissions type (required). - /// Support information. - /// Name (required). - /// Description (required). - /// Is application enabled. - /// Categories (required). - /// Countries (required). - /// Developer Name. - public AppStoreApp(string id = default(string), VerificationStatusEnum verificationStatus = default(VerificationStatusEnum), string logo = default(string), string oAuthAppId = default(string), 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 name = default(string), string description = default(string), bool? isEnabled = default(bool?), List categories = default(List), List countries = default(List), string developerName = default(string)) + /// 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) @@ -435,6 +445,15 @@ protected AppStoreApp() { } { 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) { @@ -513,98 +532,113 @@ protected AppStoreApp() { } this.ExternalSetupLink = externalSetupLink; this.TeammateAppAccessLevel = teammateAppAccessLevel; this.Support = support; + this.ExternalFunctionActionUrl = externalFunctionActionUrl; + this.ExternalFunctionSignatureKey = externalFunctionSignatureKey; + this.IsPaid = isPaid; this.IsEnabled = isEnabled; this.DeveloperName = developerName; } /// - /// Unique App store app id + /// Gets or Sets Id /// - /// Unique App store app id [DataMember(Name="Id", EmitDefaultValue=false)] public string Id { get; set; } /// - /// Logo + /// Gets or Sets Logo /// - /// Logo [DataMember(Name="Logo", EmitDefaultValue=false)] public string Logo { get; set; } /// - /// OAuth App identifier + /// Gets or Sets OAuthAppId /// - /// OAuth App identifier [DataMember(Name="OAuthAppId", EmitDefaultValue=false)] public string OAuthAppId { get; set; } /// - /// Details + /// Gets or Sets Internal + /// + [DataMember(Name="Internal", EmitDefaultValue=false)] + public bool? Internal { get; set; } + + /// + /// Gets or Sets Details /// - /// Details [DataMember(Name="Details", EmitDefaultValue=false)] public string Details { get; set; } /// - /// Field groups + /// Gets or Sets FieldGroups /// - /// Field groups [DataMember(Name="FieldGroups", EmitDefaultValue=false)] public List FieldGroups { get; set; } /// - /// Setup instructions + /// Gets or Sets SetupInstructions /// - /// Setup instructions [DataMember(Name="SetupInstructions", EmitDefaultValue=false)] public string SetupInstructions { get; set; } /// - /// External setup link + /// Gets or Sets ExternalSetupLink /// - /// External setup link [DataMember(Name="ExternalSetupLink", EmitDefaultValue=false)] public string ExternalSetupLink { get; set; } /// - /// Support information + /// Gets or Sets Support /// - /// Support information [DataMember(Name="Support", EmitDefaultValue=false)] public AppStoreAppSupportInfo Support { get; set; } /// - /// Name + /// 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 /// - /// Name [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Description + /// Gets or Sets Description /// - /// Description [DataMember(Name="Description", EmitDefaultValue=false)] public string Description { get; set; } /// - /// Is application enabled + /// Gets or Sets IsEnabled /// - /// Is application enabled [DataMember(Name="IsEnabled", EmitDefaultValue=false)] public bool? IsEnabled { get; set; } /// - /// Developer Name + /// Gets or Sets DeveloperName /// - /// Developer Name [DataMember(Name="DeveloperName", EmitDefaultValue=false)] public string DeveloperName { get; set; } @@ -620,6 +654,7 @@ public override string ToString() 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"); @@ -629,6 +664,9 @@ public override string ToString() 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"); @@ -689,6 +727,11 @@ public bool Equals(AppStoreApp input) (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 && @@ -734,6 +777,21 @@ public bool Equals(AppStoreApp input) (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 && @@ -783,6 +841,8 @@ public override int GetHashCode() 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) @@ -801,6 +861,12 @@ public override int GetHashCode() 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) diff --git a/src/Flipdish/Model/AppStoreAppConfiguration.cs b/src/Flipdish/Model/AppStoreAppConfiguration.cs index fa0b0d34..3d3c0c5c 100644 --- a/src/Flipdish/Model/AppStoreAppConfiguration.cs +++ b/src/Flipdish/Model/AppStoreAppConfiguration.cs @@ -23,15 +23,14 @@ namespace Flipdish.Model { /// - /// App store app configurations + /// AppStoreAppConfiguration /// [DataContract] public partial class AppStoreAppConfiguration : IEquatable { /// - /// Application verification status + /// Defines VerificationStatus /// - /// Application verification status [JsonConverter(typeof(StringEnumConverter))] public enum VerificationStatusEnum { @@ -56,15 +55,13 @@ public enum VerificationStatusEnum } /// - /// Application verification status + /// Gets or Sets VerificationStatus /// - /// Application verification status [DataMember(Name="VerificationStatus", EmitDefaultValue=false)] public VerificationStatusEnum VerificationStatus { get; set; } /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> + /// Defines ConfigurationType /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> [JsonConverter(typeof(StringEnumConverter))] public enum ConfigurationTypeEnum { @@ -83,15 +80,13 @@ public enum ConfigurationTypeEnum } /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> + /// Gets or Sets ConfigurationType /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> [DataMember(Name="ConfigurationType", EmitDefaultValue=false)] public ConfigurationTypeEnum ConfigurationType { get; set; } /// - /// Store selector type + /// Defines StoreSelectorType /// - /// Store selector type [JsonConverter(typeof(StringEnumConverter))] public enum StoreSelectorTypeEnum { @@ -116,15 +111,13 @@ public enum StoreSelectorTypeEnum } /// - /// Store selector type + /// Gets or Sets StoreSelectorType /// - /// Store selector type [DataMember(Name="StoreSelectorType", EmitDefaultValue=false)] public StoreSelectorTypeEnum StoreSelectorType { get; set; } /// - /// Teammate app access level + /// Defines TeammateAppAccessLevel /// - /// Teammate app access level [JsonConverter(typeof(StringEnumConverter))] public enum TeammateAppAccessLevelEnum { @@ -141,53 +134,69 @@ public enum TeammateAppAccessLevelEnum [EnumMember(Value = "StoreOwner")] StoreOwner = 2, + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 3, + /// /// Enum ManagedOwner for value: ManagedOwner /// [EnumMember(Value = "ManagedOwner")] - ManagedOwner = 3, + ManagedOwner = 4, /// /// Enum Integrator for value: Integrator /// [EnumMember(Value = "Integrator")] - Integrator = 4, + Integrator = 5, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 6, /// /// Enum StoreManager for value: StoreManager /// [EnumMember(Value = "StoreManager")] - StoreManager = 5, + StoreManager = 7, /// /// Enum StoreStaff for value: StoreStaff /// [EnumMember(Value = "StoreStaff")] - StoreStaff = 6, + StoreStaff = 8, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 9, /// /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess /// [EnumMember(Value = "StoreReadOnlyAccess")] - StoreReadOnlyAccess = 7, + StoreReadOnlyAccess = 10, /// /// Enum FinanceManger for value: FinanceManger /// [EnumMember(Value = "FinanceManger")] - FinanceManger = 8 + FinanceManger = 11 } /// - /// Teammate app access level + /// Gets or Sets TeammateAppAccessLevel /// - /// Teammate app access level [DataMember(Name="TeammateAppAccessLevel", EmitDefaultValue=false)] public TeammateAppAccessLevelEnum? TeammateAppAccessLevel { get; set; } /// - /// Permissions type + /// Defines PermissionsType /// - /// Permissions type [JsonConverter(typeof(StringEnumConverter))] public enum PermissionsTypeEnum { @@ -200,9 +209,8 @@ public enum PermissionsTypeEnum } /// - /// Permissions type + /// Gets or Sets PermissionsType /// - /// Permissions type [DataMember(Name="PermissionsType", EmitDefaultValue=false)] public PermissionsTypeEnum PermissionsType { get; set; } /// @@ -257,9 +265,8 @@ public enum CategoriesEnum /// - /// Categories + /// Gets or Sets Categories /// - /// Categories [DataMember(Name="Categories", EmitDefaultValue=false)] public List Categories { get; set; } /// @@ -374,9 +381,8 @@ public enum CountriesEnum /// - /// Countries + /// Gets or Sets Countries /// - /// Countries [DataMember(Name="Countries", EmitDefaultValue=false)] public List Countries { get; set; } /// @@ -387,30 +393,34 @@ protected AppStoreAppConfiguration() { } /// /// Initializes a new instance of the class. /// - /// Unique App store app configuration id (required). - /// App id (required). - /// App store app id (required). - /// Is enabled (required). - /// Stores id's. - /// Settings. - /// Application verification status (required). - /// Logo. - /// OAuth App identifier (required). - /// Details (required). - /// Configuration type <example>External link</example><example>Flipdish hosted</example> (required). - /// Store selector type (required). - /// Field groups. - /// Setup instructions. - /// External setup link. - /// Teammate app access level. - /// Permissions type (required). - /// Support information. - /// Name (required). - /// Description (required). - /// Categories (required). - /// Countries (required). - /// Developer Name. - 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), 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 name = default(string), string description = default(string), List categories = default(List), List countries = default(List), string developerName = default(string)) + /// 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) @@ -466,6 +476,15 @@ protected AppStoreAppConfiguration() { } { 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) { @@ -546,125 +565,136 @@ protected AppStoreAppConfiguration() { } this.ExternalSetupLink = externalSetupLink; this.TeammateAppAccessLevel = teammateAppAccessLevel; this.Support = support; + this.ExternalFunctionActionUrl = externalFunctionActionUrl; + this.ExternalFunctionSignatureKey = externalFunctionSignatureKey; + this.IsPaid = isPaid; this.DeveloperName = developerName; } /// - /// Unique App store app configuration id + /// Gets or Sets Id /// - /// Unique App store app configuration id [DataMember(Name="Id", EmitDefaultValue=false)] public string Id { get; set; } /// - /// App id + /// Gets or Sets AppId /// - /// App id [DataMember(Name="AppId", EmitDefaultValue=false)] public string AppId { get; set; } /// - /// App store app id + /// Gets or Sets AppStoreAppId /// - /// App store app id [DataMember(Name="AppStoreAppId", EmitDefaultValue=false)] public string AppStoreAppId { get; set; } /// - /// Is enabled + /// Gets or Sets IsEnabled /// - /// Is enabled [DataMember(Name="IsEnabled", EmitDefaultValue=false)] public bool? IsEnabled { get; set; } /// - /// Stores id's + /// Gets or Sets StoreIds /// - /// Stores id's [DataMember(Name="StoreIds", EmitDefaultValue=false)] public List StoreIds { get; set; } /// - /// Settings + /// Gets or Sets Settings /// - /// Settings [DataMember(Name="Settings", EmitDefaultValue=false)] public List Settings { get; set; } /// - /// Logo + /// Gets or Sets Logo /// - /// Logo [DataMember(Name="Logo", EmitDefaultValue=false)] public string Logo { get; set; } /// - /// OAuth App identifier + /// Gets or Sets OAuthAppId /// - /// OAuth App identifier [DataMember(Name="OAuthAppId", EmitDefaultValue=false)] public string OAuthAppId { get; set; } /// - /// Details + /// Gets or Sets Internal + /// + [DataMember(Name="Internal", EmitDefaultValue=false)] + public bool? Internal { get; set; } + + /// + /// Gets or Sets Details /// - /// Details [DataMember(Name="Details", EmitDefaultValue=false)] public string Details { get; set; } /// - /// Field groups + /// Gets or Sets FieldGroups /// - /// Field groups [DataMember(Name="FieldGroups", EmitDefaultValue=false)] public List FieldGroups { get; set; } /// - /// Setup instructions + /// Gets or Sets SetupInstructions /// - /// Setup instructions [DataMember(Name="SetupInstructions", EmitDefaultValue=false)] public string SetupInstructions { get; set; } /// - /// External setup link + /// Gets or Sets ExternalSetupLink /// - /// External setup link [DataMember(Name="ExternalSetupLink", EmitDefaultValue=false)] public string ExternalSetupLink { get; set; } /// - /// Support information + /// Gets or Sets Support /// - /// Support information [DataMember(Name="Support", EmitDefaultValue=false)] public AppStoreAppSupportInfo Support { get; set; } /// - /// Name + /// 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 /// - /// Name [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Description + /// Gets or Sets Description /// - /// Description [DataMember(Name="Description", EmitDefaultValue=false)] public string Description { get; set; } /// - /// Developer Name + /// Gets or Sets DeveloperName /// - /// Developer Name [DataMember(Name="DeveloperName", EmitDefaultValue=false)] public string DeveloperName { get; set; } @@ -685,6 +715,7 @@ public override string ToString() 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"); @@ -694,6 +725,9 @@ public override string ToString() 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"); @@ -778,6 +812,11 @@ public bool Equals(AppStoreAppConfiguration input) (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 && @@ -823,6 +862,21 @@ public bool Equals(AppStoreAppConfiguration input) (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 && @@ -877,6 +931,8 @@ public override int GetHashCode() 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) @@ -895,6 +951,12 @@ public override int GetHashCode() 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) diff --git a/src/Flipdish/Model/AppStoreAppConfigurationHeader.cs b/src/Flipdish/Model/AppStoreAppConfigurationHeader.cs deleted file mode 100644 index 7c104663..00000000 --- a/src/Flipdish/Model/AppStoreAppConfigurationHeader.cs +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Flipdish Open API v1.0 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Collections; -using System.Collections.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 app configuration header information - /// - [DataContract] - public partial class AppStoreAppConfigurationHeader : IEquatable - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected AppStoreAppConfigurationHeader() { } - /// - /// Initializes a new instance of the class. - /// - /// Unique App store app id (required). - /// Name of Appstore app (required). - /// Description (required). - /// Logo. - /// Developer name. - public AppStoreAppConfigurationHeader(string appStoreAppId = default(string), string name = default(string), string description = default(string), string logo = default(string), string developerName = default(string)) - { - // to ensure "appStoreAppId" is required (not null) - if (appStoreAppId == null) - { - throw new InvalidDataException("appStoreAppId is a required property for AppStoreAppConfigurationHeader 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 AppStoreAppConfigurationHeader 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 AppStoreAppConfigurationHeader and cannot be null"); - } - else - { - this.Description = description; - } - this.Logo = logo; - this.DeveloperName = developerName; - } - - /// - /// Unique App store app id - /// - /// Unique App store app id - [DataMember(Name="AppStoreAppId", EmitDefaultValue=false)] - public string AppStoreAppId { get; set; } - - /// - /// Name of Appstore app - /// - /// Name of Appstore app - [DataMember(Name="Name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Description - /// - /// Description - [DataMember(Name="Description", EmitDefaultValue=false)] - public string Description { get; set; } - - /// - /// Logo - /// - /// Logo - [DataMember(Name="Logo", EmitDefaultValue=false)] - public string Logo { get; set; } - - /// - /// Developer name - /// - /// Developer name - [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 AppStoreAppConfigurationHeader {\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 AppStoreAppConfigurationHeader); - } - - /// - /// Returns true if AppStoreAppConfigurationHeader instances are equal - /// - /// Instance of AppStoreAppConfigurationHeader to be compared - /// Boolean - public bool Equals(AppStoreAppConfigurationHeader input) - { - if (input == null) - return false; - - return - ( - 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.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/AppStoreAppConfigurationSummary.cs b/src/Flipdish/Model/AppStoreAppConfigurationSummary.cs index e77d6216..9d774115 100644 --- a/src/Flipdish/Model/AppStoreAppConfigurationSummary.cs +++ b/src/Flipdish/Model/AppStoreAppConfigurationSummary.cs @@ -23,15 +23,14 @@ namespace Flipdish.Model { /// - /// App store app configuration summary information + /// AppStoreAppConfigurationSummary /// [DataContract] public partial class AppStoreAppConfigurationSummary : IEquatable { /// - /// Configuration type + /// Defines ConfigurationType /// - /// Configuration type [JsonConverter(typeof(StringEnumConverter))] public enum ConfigurationTypeEnum { @@ -50,15 +49,13 @@ public enum ConfigurationTypeEnum } /// - /// Configuration type + /// Gets or Sets ConfigurationType /// - /// Configuration type [DataMember(Name="ConfigurationType", EmitDefaultValue=false)] - public ConfigurationTypeEnum? ConfigurationType { get; set; } + public ConfigurationTypeEnum ConfigurationType { get; set; } /// - /// Store selector type + /// Defines StoreSelectorType /// - /// Store selector type [JsonConverter(typeof(StringEnumConverter))] public enum StoreSelectorTypeEnum { @@ -83,11 +80,10 @@ public enum StoreSelectorTypeEnum } /// - /// Store selector type + /// Gets or Sets StoreSelectorType /// - /// Store selector type [DataMember(Name="StoreSelectorType", EmitDefaultValue=false)] - public StoreSelectorTypeEnum? StoreSelectorType { get; set; } + public StoreSelectorTypeEnum StoreSelectorType { get; set; } /// /// Initializes a new instance of the class. /// @@ -96,18 +92,19 @@ protected AppStoreAppConfigurationSummary() { } /// /// Initializes a new instance of the class. /// - /// Unique App store app configuration id (required). - /// App Id (required). - /// Is enabled (required). - /// List of stores (required). - /// Configuration type. - /// Store selector type. - /// Unique App store app id (required). - /// Name of Appstore app (required). - /// Description (required). - /// Logo. - /// Developer name. - 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?), string appStoreAppId = default(string), string name = default(string), string description = default(string), string logo = default(string), string developerName = default(string)) + /// 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) @@ -145,6 +142,33 @@ protected AppStoreAppConfigurationSummary() { } { 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) { @@ -172,74 +196,69 @@ protected AppStoreAppConfigurationSummary() { } { this.Description = description; } - this.ConfigurationType = configurationType; - this.StoreSelectorType = storeSelectorType; this.Logo = logo; this.DeveloperName = developerName; } /// - /// Unique App store app configuration id + /// Gets or Sets Id /// - /// Unique App store app configuration id [DataMember(Name="Id", EmitDefaultValue=false)] public string Id { get; set; } /// - /// App Id + /// Gets or Sets AppId /// - /// App Id [DataMember(Name="AppId", EmitDefaultValue=false)] public string AppId { get; set; } /// - /// Is enabled + /// Gets or Sets IsEnabled /// - /// Is enabled [DataMember(Name="IsEnabled", EmitDefaultValue=false)] public bool? IsEnabled { get; set; } /// - /// List of stores + /// Gets or Sets Stores /// - /// List of stores [DataMember(Name="Stores", EmitDefaultValue=false)] public List Stores { get; set; } /// - /// Unique App store app id + /// Gets or Sets Internal + /// + [DataMember(Name="Internal", EmitDefaultValue=false)] + public bool? Internal { get; set; } + + /// + /// Gets or Sets AppStoreAppId /// - /// Unique App store app id [DataMember(Name="AppStoreAppId", EmitDefaultValue=false)] public string AppStoreAppId { get; set; } /// - /// Name of Appstore app + /// Gets or Sets Name /// - /// Name of Appstore app [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Description + /// Gets or Sets Description /// - /// Description [DataMember(Name="Description", EmitDefaultValue=false)] public string Description { get; set; } /// - /// Logo + /// Gets or Sets Logo /// - /// Logo [DataMember(Name="Logo", EmitDefaultValue=false)] public string Logo { get; set; } /// - /// Developer name + /// Gets or Sets DeveloperName /// - /// Developer name [DataMember(Name="DeveloperName", EmitDefaultValue=false)] public string DeveloperName { get; set; } @@ -257,6 +276,7 @@ public override string ToString() 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"); @@ -326,6 +346,11 @@ public bool Equals(AppStoreAppConfigurationSummary input) (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 && @@ -374,6 +399,8 @@ public override int GetHashCode() 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) 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 index 7d84a548..d2771060 100644 --- a/src/Flipdish/Model/AppStoreAppSummary.cs +++ b/src/Flipdish/Model/AppStoreAppSummary.cs @@ -23,15 +23,14 @@ namespace Flipdish.Model { /// - /// App store app summary information + /// AppStoreAppSummary /// [DataContract] public partial class AppStoreAppSummary : IEquatable { /// - /// Application verification status + /// Defines VerificationStatus /// - /// Application verification status [JsonConverter(typeof(StringEnumConverter))] public enum VerificationStatusEnum { @@ -56,9 +55,8 @@ public enum VerificationStatusEnum } /// - /// Application verification status + /// Gets or Sets VerificationStatus /// - /// Application verification status [DataMember(Name="VerificationStatus", EmitDefaultValue=false)] public VerificationStatusEnum VerificationStatus { get; set; } /// @@ -113,9 +111,8 @@ public enum CategoriesEnum /// - /// Categories + /// Gets or Sets Categories /// - /// Categories [DataMember(Name="Categories", EmitDefaultValue=false)] public List Categories { get; set; } /// @@ -230,9 +227,8 @@ public enum CountriesEnum /// - /// Countries + /// Gets or Sets Countries /// - /// Countries [DataMember(Name="Countries", EmitDefaultValue=false)] public List Countries { get; set; } /// @@ -243,17 +239,27 @@ protected AppStoreAppSummary() { } /// /// Initializes a new instance of the class. /// - /// Unique App store app id. - /// Application verification status (required). - /// Logo. - /// Name (required). - /// Description (required). - /// Is application enabled. - /// Categories (required). - /// Countries (required). - /// Developer Name. - public AppStoreAppSummary(string id = default(string), VerificationStatusEnum verificationStatus = default(VerificationStatusEnum), string logo = default(string), string name = default(string), string description = default(string), bool? isEnabled = default(bool?), List categories = default(List), List countries = default(List), string developerName = default(string)) + /// 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) { @@ -263,6 +269,15 @@ protected AppStoreAppSummary() { } { 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) { @@ -299,54 +314,53 @@ protected AppStoreAppSummary() { } { this.Countries = countries; } - this.Id = id; this.Logo = logo; this.IsEnabled = isEnabled; this.DeveloperName = developerName; } /// - /// Unique App store app id + /// Gets or Sets Id /// - /// Unique App store app id [DataMember(Name="Id", EmitDefaultValue=false)] public string Id { get; set; } /// - /// Logo + /// Gets or Sets Logo /// - /// Logo [DataMember(Name="Logo", EmitDefaultValue=false)] public string Logo { get; set; } /// - /// Name + /// Gets or Sets Internal + /// + [DataMember(Name="Internal", EmitDefaultValue=false)] + public bool? Internal { get; set; } + + /// + /// Gets or Sets Name /// - /// Name [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Description + /// Gets or Sets Description /// - /// Description [DataMember(Name="Description", EmitDefaultValue=false)] public string Description { get; set; } /// - /// Is application enabled + /// Gets or Sets IsEnabled /// - /// Is application enabled [DataMember(Name="IsEnabled", EmitDefaultValue=false)] public bool? IsEnabled { get; set; } /// - /// Developer Name + /// Gets or Sets DeveloperName /// - /// Developer Name [DataMember(Name="DeveloperName", EmitDefaultValue=false)] public string DeveloperName { get; set; } @@ -361,6 +375,7 @@ public override string ToString() 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"); @@ -416,6 +431,11 @@ public bool Equals(AppStoreAppSummary input) (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 && @@ -463,6 +483,8 @@ public override int GetHashCode() 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) diff --git a/src/Flipdish/Model/AppStoreAppSupportInfo.cs b/src/Flipdish/Model/AppStoreAppSupportInfo.cs index e63186bf..9e43c588 100644 --- a/src/Flipdish/Model/AppStoreAppSupportInfo.cs +++ b/src/Flipdish/Model/AppStoreAppSupportInfo.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// App store app support information + /// AppStoreAppSupportInfo /// [DataContract] public partial class AppStoreAppSupportInfo : IEquatable @@ -31,12 +31,12 @@ public partial class AppStoreAppSupportInfo : IEquatable /// Initializes a new instance of the class. /// - /// Privacy policy url. - /// Terms of use url. - /// Company website url. - /// Learn more url. - /// Installation message. - /// Support email. + /// 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; @@ -48,44 +48,38 @@ public partial class AppStoreAppSupportInfo : IEquatable - /// Privacy policy url + /// Gets or Sets PrivacyPolicy /// - /// Privacy policy url [DataMember(Name="PrivacyPolicy", EmitDefaultValue=false)] public string PrivacyPolicy { get; set; } /// - /// Terms of use url + /// Gets or Sets TermsOfUse /// - /// Terms of use url [DataMember(Name="TermsOfUse", EmitDefaultValue=false)] public string TermsOfUse { get; set; } /// - /// Company website url + /// Gets or Sets CompanyWebsite /// - /// Company website url [DataMember(Name="CompanyWebsite", EmitDefaultValue=false)] public string CompanyWebsite { get; set; } /// - /// Learn more url + /// Gets or Sets LearnMore /// - /// Learn more url [DataMember(Name="LearnMore", EmitDefaultValue=false)] public string LearnMore { get; set; } /// - /// Installation message + /// Gets or Sets InstallationMessage /// - /// Installation message [DataMember(Name="InstallationMessage", EmitDefaultValue=false)] public string InstallationMessage { get; set; } /// - /// Support email + /// Gets or Sets SupportEmail /// - /// Support email [DataMember(Name="SupportEmail", EmitDefaultValue=false)] public string SupportEmail { get; set; } diff --git a/src/Flipdish/Model/AppStoreConfigCreatedEvent.cs b/src/Flipdish/Model/AppStoreConfigCreatedEvent.cs index b9c35c97..7b4d2192 100644 --- a/src/Flipdish/Model/AppStoreConfigCreatedEvent.cs +++ b/src/Flipdish/Model/AppStoreConfigCreatedEvent.cs @@ -34,21 +34,29 @@ public partial class AppStoreConfigCreatedEvent : IEquatableThe 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. - public AppStoreConfigCreatedEvent(string eventName = default(string), string appStoreAppId = default(string), string appStoreAppConfigurationId = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string)) + /// 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; } /// @@ -72,6 +80,13 @@ public partial class AppStoreConfigCreatedEvent : IEquatable + /// 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 /// @@ -100,6 +115,13 @@ public partial class AppStoreConfigCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -107,6 +129,20 @@ public partial class AppStoreConfigCreatedEvent : IEquatable + /// 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 /// @@ -118,11 +154,15 @@ public override string ToString() 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(); } @@ -172,6 +212,11 @@ public bool Equals(AppStoreConfigCreatedEvent input) (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 && @@ -192,10 +237,25 @@ public bool Equals(AppStoreConfigCreatedEvent input) (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)) ); } @@ -214,6 +274,8 @@ public override int GetHashCode() 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) @@ -222,8 +284,14 @@ public override int GetHashCode() 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 index 0afe3786..e29d5288 100644 --- a/src/Flipdish/Model/AppStoreConfigDeletedEvent.cs +++ b/src/Flipdish/Model/AppStoreConfigDeletedEvent.cs @@ -34,21 +34,29 @@ public partial class AppStoreConfigDeletedEvent : IEquatableThe 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. - public AppStoreConfigDeletedEvent(string eventName = default(string), string appStoreAppId = default(string), string appStoreAppConfigurationId = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string)) + /// 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; } /// @@ -72,6 +80,13 @@ public partial class AppStoreConfigDeletedEvent : IEquatable + /// 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 /// @@ -100,6 +115,13 @@ public partial class AppStoreConfigDeletedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -107,6 +129,20 @@ public partial class AppStoreConfigDeletedEvent : IEquatable + /// 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 /// @@ -118,11 +154,15 @@ public override string ToString() 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(); } @@ -172,6 +212,11 @@ public bool Equals(AppStoreConfigDeletedEvent input) (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 && @@ -192,10 +237,25 @@ public bool Equals(AppStoreConfigDeletedEvent input) (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)) ); } @@ -214,6 +274,8 @@ public override int GetHashCode() 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) @@ -222,8 +284,14 @@ public override int GetHashCode() 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 index 0ef4c60b..181d1b39 100644 --- a/src/Flipdish/Model/AppStoreConfigUpdatedEvent.cs +++ b/src/Flipdish/Model/AppStoreConfigUpdatedEvent.cs @@ -34,21 +34,29 @@ public partial class AppStoreConfigUpdatedEvent : IEquatableThe 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. - public AppStoreConfigUpdatedEvent(string eventName = default(string), string appStoreAppId = default(string), UpdateAppStoreAppConfigurationWebhookDTO appStoreAppConfiguration = default(UpdateAppStoreAppConfigurationWebhookDTO), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string)) + /// 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; } /// @@ -72,6 +80,13 @@ public partial class AppStoreConfigUpdatedEvent : IEquatable + /// 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 /// @@ -100,6 +115,13 @@ public partial class AppStoreConfigUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -107,6 +129,20 @@ public partial class AppStoreConfigUpdatedEvent : IEquatable + /// 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 /// @@ -118,11 +154,15 @@ public override string ToString() 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(); } @@ -172,6 +212,11 @@ public bool Equals(AppStoreConfigUpdatedEvent input) (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 && @@ -192,10 +237,25 @@ public bool Equals(AppStoreConfigUpdatedEvent input) (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)) ); } @@ -214,6 +274,8 @@ public override int GetHashCode() 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) @@ -222,8 +284,14 @@ public override int GetHashCode() 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 index 7462ca35..b231c449 100644 --- a/src/Flipdish/Model/AppUpdatedEvent.cs +++ b/src/Flipdish/Model/AppUpdatedEvent.cs @@ -37,12 +37,16 @@ public partial class AppUpdatedEvent : IEquatable /// 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. - 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), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string)) + /// 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; @@ -50,11 +54,15 @@ public partial class AppUpdatedEvent : IEquatable 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; } /// @@ -99,6 +107,20 @@ public partial class AppUpdatedEvent : IEquatable [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 /// @@ -134,6 +156,20 @@ public partial class AppUpdatedEvent : IEquatable [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 /// @@ -148,11 +184,15 @@ public override string ToString() 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(); } @@ -217,6 +257,16 @@ public bool Equals(AppUpdatedEvent input) (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 && @@ -241,6 +291,16 @@ public bool Equals(AppUpdatedEvent input) 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)) ); } @@ -265,6 +325,10 @@ public override int GetHashCode() 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) @@ -275,6 +339,10 @@ public override int GetHashCode() 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/BalanceDetails.cs b/src/Flipdish/Model/BalanceDetails.cs index 7c815d34..4928528f 100644 --- a/src/Flipdish/Model/BalanceDetails.cs +++ b/src/Flipdish/Model/BalanceDetails.cs @@ -31,8 +31,8 @@ public partial class BalanceDetails : IEquatable /// /// Initializes a new instance of the class. /// - /// openingBalance. - /// closingBalance. + /// OpeningBalance.. + /// ClosingBalance.. public BalanceDetails(double? openingBalance = default(double?), double? closingBalance = default(double?)) { this.OpeningBalance = openingBalance; @@ -40,14 +40,16 @@ public partial class BalanceDetails : IEquatable } /// - /// Gets or Sets OpeningBalance + /// OpeningBalance. /// + /// OpeningBalance. [DataMember(Name="OpeningBalance", EmitDefaultValue=false)] public double? OpeningBalance { get; set; } /// - /// Gets or Sets ClosingBalance + /// ClosingBalance. /// + /// ClosingBalance. [DataMember(Name="ClosingBalance", EmitDefaultValue=false)] public double? ClosingBalance { get; set; } diff --git a/src/Flipdish/Model/BankAccount.cs b/src/Flipdish/Model/BankAccount.cs index eede4119..68e29128 100644 --- a/src/Flipdish/Model/BankAccount.cs +++ b/src/Flipdish/Model/BankAccount.cs @@ -77,12 +77,14 @@ public enum AccountStateEnum /// 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. - 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), string bankAddress = default(string), string bankCountryCode = default(string), string accountHolderAddress = default(string), string accountHolderCountryCode = default(string), string vatNumber = default(string)) + /// 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; @@ -91,11 +93,13 @@ public enum AccountStateEnum 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; } /// @@ -141,6 +145,13 @@ public enum AccountStateEnum [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 /// @@ -176,6 +187,13 @@ public enum AccountStateEnum [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 /// @@ -191,11 +209,13 @@ public override string ToString() 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(); } @@ -265,6 +285,11 @@ public bool Equals(BankAccount input) 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 && @@ -289,6 +314,11 @@ public bool Equals(BankAccount input) this.VatNumber == input.VatNumber || (this.VatNumber != null && this.VatNumber.Equals(input.VatNumber)) + ) && + ( + this.StripeAccountId == input.StripeAccountId || + (this.StripeAccountId != null && + this.StripeAccountId.Equals(input.StripeAccountId)) ); } @@ -315,6 +345,8 @@ public override int GetHashCode() 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) @@ -325,6 +357,8 @@ public override int GetHashCode() 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/BankAccountCreatedEvent.cs b/src/Flipdish/Model/BankAccountCreatedEvent.cs index 96208721..f6966b6a 100644 --- a/src/Flipdish/Model/BankAccountCreatedEvent.cs +++ b/src/Flipdish/Model/BankAccountCreatedEvent.cs @@ -31,24 +31,39 @@ 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. - public BankAccountCreatedEvent(BankAccount bankAccount = default(BankAccount), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string)) + /// 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 /// @@ -56,6 +71,13 @@ public partial class BankAccountCreatedEvent : IEquatable + /// Updated by user + /// + /// Updated by user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + /// /// The event name /// @@ -98,6 +120,20 @@ public partial class BankAccountCreatedEvent : IEquatable + /// 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 /// @@ -106,13 +142,17 @@ 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(); } @@ -147,11 +187,21 @@ public bool Equals(BankAccountCreatedEvent input) 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 && @@ -181,6 +231,16 @@ public bool Equals(BankAccountCreatedEvent input) 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)) ); } @@ -193,8 +253,12 @@ 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) @@ -207,6 +271,10 @@ public override int GetHashCode() 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 index fa249d79..0494cfc6 100644 --- a/src/Flipdish/Model/BankAccountDeletedEvent.cs +++ b/src/Flipdish/Model/BankAccountDeletedEvent.cs @@ -31,24 +31,39 @@ 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. - public BankAccountDeletedEvent(BankAccount bankAccount = default(BankAccount), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string)) + /// 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 /// @@ -56,6 +71,13 @@ public partial class BankAccountDeletedEvent : IEquatable + /// Updated by user + /// + /// Updated by user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + /// /// The event name /// @@ -98,6 +120,20 @@ public partial class BankAccountDeletedEvent : IEquatable + /// 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 /// @@ -106,13 +142,17 @@ 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(); } @@ -147,11 +187,21 @@ public bool Equals(BankAccountDeletedEvent input) 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 && @@ -181,6 +231,16 @@ public bool Equals(BankAccountDeletedEvent input) 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)) ); } @@ -193,8 +253,12 @@ 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) @@ -207,6 +271,10 @@ public override int GetHashCode() 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/BankAccountSummary.cs b/src/Flipdish/Model/BankAccountSummary.cs index 92996c17..95d85827 100644 --- a/src/Flipdish/Model/BankAccountSummary.cs +++ b/src/Flipdish/Model/BankAccountSummary.cs @@ -111,8 +111,12 @@ public enum BusinessTypeEnum /// /// 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. @@ -121,12 +125,16 @@ public enum BusinessTypeEnum /// 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), AccountStateEnum? accountState = default(AccountStateEnum?), string currencyCode = 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?)) + 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; @@ -151,6 +159,13 @@ public enum BusinessTypeEnum [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 @@ -159,6 +174,27 @@ public enum BusinessTypeEnum [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) /// @@ -219,8 +255,12 @@ public override string ToString() 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"); @@ -273,6 +313,11 @@ public bool Equals(BankAccountSummary input) 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 && @@ -283,6 +328,21 @@ public bool Equals(BankAccountSummary input) (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 && @@ -338,10 +398,18 @@ public override int GetHashCode() 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) diff --git a/src/Flipdish/Model/BankAccountUpdatedEvent.cs b/src/Flipdish/Model/BankAccountUpdatedEvent.cs index bc3bf665..68a48d94 100644 --- a/src/Flipdish/Model/BankAccountUpdatedEvent.cs +++ b/src/Flipdish/Model/BankAccountUpdatedEvent.cs @@ -31,24 +31,39 @@ 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. - public BankAccountUpdatedEvent(BankAccount bankAccount = default(BankAccount), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string)) + /// 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 /// @@ -56,6 +71,13 @@ public partial class BankAccountUpdatedEvent : IEquatable + /// Updated by user + /// + /// Updated by user + [DataMember(Name="User", EmitDefaultValue=false)] + public UserEventInfo User { get; set; } + /// /// The event name /// @@ -98,6 +120,20 @@ public partial class BankAccountUpdatedEvent : IEquatable + /// 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 /// @@ -106,13 +142,17 @@ 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(); } @@ -147,11 +187,21 @@ public bool Equals(BankAccountUpdatedEvent input) 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 && @@ -181,6 +231,16 @@ public bool Equals(BankAccountUpdatedEvent input) 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)) ); } @@ -193,8 +253,12 @@ 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) @@ -207,6 +271,10 @@ public override int GetHashCode() 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/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/CampaignStatistics.cs b/src/Flipdish/Model/CampaignStatistics.cs index da986a92..39b796b4 100644 --- a/src/Flipdish/Model/CampaignStatistics.cs +++ b/src/Flipdish/Model/CampaignStatistics.cs @@ -31,11 +31,11 @@ public partial class CampaignStatistics : IEquatable /// /// Initializes a new instance of the class. /// - /// Number of issued vouchers. - /// Number of redeemed vouchers. - /// Conversion percentage of campaign (VouchersIssued / VouchersRedeemed). - /// Sales generated by campaign (TotalAmount - FeeChargedToCustomer ie. the discounted sale value). - /// Return of investment percentage of campaign (TotalAmount / DiscountAmount). + /// 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; @@ -46,37 +46,37 @@ public partial class CampaignStatistics : IEquatable } /// - /// Number of issued vouchers + /// Deprecated. Number of issued vouchers. This field is always zero. /// - /// Number of issued vouchers + /// Deprecated. Number of issued vouchers. This field is always zero. [DataMember(Name="VouchersIssued", EmitDefaultValue=false)] public int? VouchersIssued { get; set; } /// - /// Number of redeemed vouchers + /// Deprecated. Number of redeemed vouchers. This field is always zero. This field is always zero. /// - /// Number of redeemed vouchers + /// 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; } /// - /// Conversion percentage of campaign (VouchersIssued / VouchersRedeemed) + /// Deprecated. Conversion of campaign (VouchersIssued / VouchersRedeemed). This field is always zero. /// - /// Conversion percentage of campaign (VouchersIssued / VouchersRedeemed) + /// Deprecated. Conversion of campaign (VouchersIssued / VouchersRedeemed). This field is always zero. [DataMember(Name="Conversion", EmitDefaultValue=false)] public double? Conversion { get; set; } /// - /// Sales generated by campaign (TotalAmount - FeeChargedToCustomer ie. the discounted sale value) + /// Deprecated. Sales generated by campaign (TotalAmount - FeeChargedToCustomer ie. the discounted sale value). This field is always zero. /// - /// Sales generated by campaign (TotalAmount - FeeChargedToCustomer ie. the discounted sale value) + /// 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; } /// - /// Return of investment percentage of campaign (TotalAmount / DiscountAmount) + /// Deprecated. Return of investment of campaign (TotalAmount / DiscountAmount). This field is always zero. /// - /// Return of investment percentage of campaign (TotalAmount / DiscountAmount) + /// Deprecated. Return of investment of campaign (TotalAmount / DiscountAmount). This field is always zero. [DataMember(Name="ReturnOfInvestment", EmitDefaultValue=false)] public double? ReturnOfInvestment { get; set; } diff --git a/src/Flipdish/Model/Cart.cs b/src/Flipdish/Model/CancellationToken.cs similarity index 50% rename from src/Flipdish/Model/Cart.cs rename to src/Flipdish/Model/CancellationToken.cs index a6380734..107b89b0 100644 --- a/src/Flipdish/Model/Cart.cs +++ b/src/Flipdish/Model/CancellationToken.cs @@ -23,44 +23,36 @@ namespace Flipdish.Model { /// - /// Defines the cart + /// CancellationToken /// [DataContract] - public partial class Cart : IEquatable + public partial class CancellationToken : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Line items from the cart. - /// Total cart price. - /// Total tip amount. - public Cart(List lineItems = default(List), Price cartAmount = default(Price), Price tip = default(Price)) + [JsonConstructorAttribute] + public CancellationToken() { - this.LineItems = lineItems; - this.CartAmount = cartAmount; - this.Tip = tip; } /// - /// Line items from the cart + /// Gets or Sets IsCancellationRequested /// - /// Line items from the cart - [DataMember(Name="LineItems", EmitDefaultValue=false)] - public List LineItems { get; set; } + [DataMember(Name="IsCancellationRequested", EmitDefaultValue=false)] + public bool? IsCancellationRequested { get; private set; } /// - /// Total cart price + /// Gets or Sets CanBeCanceled /// - /// Total cart price - [DataMember(Name="CartAmount", EmitDefaultValue=false)] - public Price CartAmount { get; set; } + [DataMember(Name="CanBeCanceled", EmitDefaultValue=false)] + public bool? CanBeCanceled { get; private set; } /// - /// Total tip amount + /// Gets or Sets WaitHandle /// - /// Total tip amount - [DataMember(Name="Tip", EmitDefaultValue=false)] - public Price Tip { get; set; } + [DataMember(Name="WaitHandle", EmitDefaultValue=false)] + public WaitHandle WaitHandle { get; private set; } /// /// Returns the string presentation of the object @@ -69,10 +61,10 @@ public partial class Cart : IEquatable public override string ToString() { var sb = new StringBuilder(); - sb.Append("class Cart {\n"); - sb.Append(" LineItems: ").Append(LineItems).Append("\n"); - sb.Append(" CartAmount: ").Append(CartAmount).Append("\n"); - sb.Append(" Tip: ").Append(Tip).Append("\n"); + 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(); } @@ -93,34 +85,34 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as Cart); + return this.Equals(input as CancellationToken); } /// - /// Returns true if Cart instances are equal + /// Returns true if CancellationToken instances are equal /// - /// Instance of Cart to be compared + /// Instance of CancellationToken to be compared /// Boolean - public bool Equals(Cart input) + public bool Equals(CancellationToken input) { if (input == null) return false; return ( - this.LineItems == input.LineItems || - this.LineItems != null && - this.LineItems.SequenceEqual(input.LineItems) + this.IsCancellationRequested == input.IsCancellationRequested || + (this.IsCancellationRequested != null && + this.IsCancellationRequested.Equals(input.IsCancellationRequested)) ) && ( - this.CartAmount == input.CartAmount || - (this.CartAmount != null && - this.CartAmount.Equals(input.CartAmount)) + this.CanBeCanceled == input.CanBeCanceled || + (this.CanBeCanceled != null && + this.CanBeCanceled.Equals(input.CanBeCanceled)) ) && ( - this.Tip == input.Tip || - (this.Tip != null && - this.Tip.Equals(input.Tip)) + this.WaitHandle == input.WaitHandle || + (this.WaitHandle != null && + this.WaitHandle.Equals(input.WaitHandle)) ); } @@ -133,12 +125,12 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.LineItems != null) - hashCode = hashCode * 59 + this.LineItems.GetHashCode(); - if (this.CartAmount != null) - hashCode = hashCode * 59 + this.CartAmount.GetHashCode(); - if (this.Tip != null) - hashCode = hashCode * 59 + this.Tip.GetHashCode(); + 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/CatalogGroupArchivedEvent.cs b/src/Flipdish/Model/CatalogGroupArchivedEvent.cs index 3749739e..121881d8 100644 --- a/src/Flipdish/Model/CatalogGroupArchivedEvent.cs +++ b/src/Flipdish/Model/CatalogGroupArchivedEvent.cs @@ -39,8 +39,11 @@ public partial class CatalogGroupArchivedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class CatalogGroupArchivedEvent : IEquatable @@ -109,6 +115,13 @@ public partial class CatalogGroupArchivedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -116,6 +129,20 @@ public partial class CatalogGroupArchivedEvent : IEquatable + /// 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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(CatalogGroupArchivedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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 index bbc1db94..d0d1698f 100644 --- a/src/Flipdish/Model/CatalogGroupCreatedEvent.cs +++ b/src/Flipdish/Model/CatalogGroupCreatedEvent.cs @@ -39,8 +39,11 @@ public partial class CatalogGroupCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class CatalogGroupCreatedEvent : IEquatable @@ -109,6 +115,13 @@ public partial class CatalogGroupCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -116,6 +129,20 @@ public partial class CatalogGroupCreatedEvent : IEquatable + /// 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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(CatalogGroupCreatedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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 index ae743aaf..31dd24d0 100644 --- a/src/Flipdish/Model/CatalogGroupReference.cs +++ b/src/Flipdish/Model/CatalogGroupReference.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Reference to an existing {Flipdish.PublicModels.V1.Catalog.Groups.Group} + /// Reference to an existing {Flipdish.Menus.PublicModels.V1.Catalog.Groups.Group} /// [DataContract] public partial class CatalogGroupReference : IEquatable @@ -57,7 +57,7 @@ protected CatalogGroupReference() { } /// /// Initializes a new instance of the class. /// - /// Details of the referenced {Flipdish.PublicModels.V1.Catalog.Items.CatalogItem}. + /// 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). @@ -86,9 +86,9 @@ protected CatalogGroupReference() { } } /// - /// Details of the referenced {Flipdish.PublicModels.V1.Catalog.Items.CatalogItem} + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Items.CatalogItem} /// - /// Details of the referenced {Flipdish.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; } diff --git a/src/Flipdish/Model/CatalogGroupUpdatedEvent.cs b/src/Flipdish/Model/CatalogGroupUpdatedEvent.cs index 42a6bbe3..e2e29b7a 100644 --- a/src/Flipdish/Model/CatalogGroupUpdatedEvent.cs +++ b/src/Flipdish/Model/CatalogGroupUpdatedEvent.cs @@ -39,8 +39,11 @@ public partial class CatalogGroupUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class CatalogGroupUpdatedEvent : IEquatable @@ -109,6 +115,13 @@ public partial class CatalogGroupUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -116,6 +129,20 @@ public partial class CatalogGroupUpdatedEvent : IEquatable + /// 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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(CatalogGroupUpdatedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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/CatalogItemArchivedEvent.cs b/src/Flipdish/Model/CatalogItemArchivedEvent.cs index c5da7c83..a5d723b9 100644 --- a/src/Flipdish/Model/CatalogItemArchivedEvent.cs +++ b/src/Flipdish/Model/CatalogItemArchivedEvent.cs @@ -39,8 +39,11 @@ public partial class CatalogItemArchivedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class CatalogItemArchivedEvent : IEquatable @@ -109,6 +115,13 @@ public partial class CatalogItemArchivedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -116,6 +129,20 @@ public partial class CatalogItemArchivedEvent : IEquatable + /// 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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(CatalogItemArchivedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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 index 58cd3289..c2eb057e 100644 --- a/src/Flipdish/Model/CatalogItemCreatedEvent.cs +++ b/src/Flipdish/Model/CatalogItemCreatedEvent.cs @@ -39,8 +39,11 @@ public partial class CatalogItemCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class CatalogItemCreatedEvent : IEquatable @@ -109,6 +115,13 @@ public partial class CatalogItemCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -116,6 +129,20 @@ public partial class CatalogItemCreatedEvent : IEquatable + /// 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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(CatalogItemCreatedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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 index a95ebb6d..454d2314 100644 --- a/src/Flipdish/Model/CatalogItemUpdatedEvent.cs +++ b/src/Flipdish/Model/CatalogItemUpdatedEvent.cs @@ -39,8 +39,11 @@ public partial class CatalogItemUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class CatalogItemUpdatedEvent : IEquatable @@ -109,6 +115,13 @@ public partial class CatalogItemUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -116,6 +129,20 @@ public partial class CatalogItemUpdatedEvent : IEquatable + /// 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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(CatalogItemUpdatedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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 index 21ff9275..4450ccf6 100644 --- a/src/Flipdish/Model/CertificateCreatedEvent.cs +++ b/src/Flipdish/Model/CertificateCreatedEvent.cs @@ -37,8 +37,11 @@ public partial class CertificateCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -46,7 +49,10 @@ public partial class CertificateCreatedEvent : IEquatable @@ -91,6 +97,13 @@ public partial class CertificateCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -98,6 +111,20 @@ public partial class CertificateCreatedEvent : IEquatable + /// 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 /// @@ -112,7 +139,10 @@ public override string ToString() 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(); } @@ -177,10 +207,25 @@ public bool Equals(CertificateCreatedEvent input) (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)) ); } @@ -205,8 +250,14 @@ public override int GetHashCode() 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 index 79279235..f8c97cf1 100644 --- a/src/Flipdish/Model/CertificateRenewedEvent.cs +++ b/src/Flipdish/Model/CertificateRenewedEvent.cs @@ -37,8 +37,11 @@ public partial class CertificateRenewedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -46,7 +49,10 @@ public partial class CertificateRenewedEvent : IEquatable @@ -91,6 +97,13 @@ public partial class CertificateRenewedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -98,6 +111,20 @@ public partial class CertificateRenewedEvent : IEquatable + /// 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 /// @@ -112,7 +139,10 @@ public override string ToString() 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(); } @@ -177,10 +207,25 @@ public bool Equals(CertificateRenewedEvent input) (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)) ); } @@ -205,8 +250,14 @@ public override int GetHashCode() 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/Channel.cs b/src/Flipdish/Model/Channel.cs index db27df42..39c47fd8 100644 --- a/src/Flipdish/Model/Channel.cs +++ b/src/Flipdish/Model/Channel.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Channel + /// Channel. /// [DataContract] public partial class Channel : IEquatable 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 index 8ef2c42e..0f849b2d 100644 --- a/src/Flipdish/Model/ChargebackDetails.cs +++ b/src/Flipdish/Model/ChargebackDetails.cs @@ -32,12 +32,14 @@ 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? chargebackRefundedFees = default(double?), int? chargebacksCount = default(int?), double? totalChargebackCost = default(double?)) + 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; @@ -50,6 +52,13 @@ public partial class ChargebackDetails : IEquatable [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 /// @@ -80,6 +89,7 @@ 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"); @@ -122,6 +132,11 @@ public bool Equals(ChargebackDetails input) (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 && @@ -150,6 +165,8 @@ public override int GetHashCode() 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) 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 index 5a2c6d9b..3f3e9019 100644 --- a/src/Flipdish/Model/ConfiguredStore.cs +++ b/src/Flipdish/Model/ConfiguredStore.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Configured stores + /// ConfiguredStore /// [DataContract] public partial class ConfiguredStore : IEquatable @@ -31,8 +31,8 @@ public partial class ConfiguredStore : IEquatable /// /// Initializes a new instance of the class. /// - /// Store id. - /// Name of store. + /// storeId. + /// name. public ConfiguredStore(int? storeId = default(int?), string name = default(string)) { this.StoreId = storeId; @@ -40,16 +40,14 @@ public partial class ConfiguredStore : IEquatable } /// - /// Store id + /// Gets or Sets StoreId /// - /// Store id [DataMember(Name="StoreId", EmitDefaultValue=false)] public int? StoreId { get; set; } /// - /// Name of store + /// Gets or Sets Name /// - /// Name of store [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } diff --git a/src/Flipdish/Model/Contact.cs b/src/Flipdish/Model/Contact.cs deleted file mode 100644 index fb722cbc..00000000 --- a/src/Flipdish/Model/Contact.cs +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Flipdish Open API v1.0 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; - -namespace Flipdish.Model -{ - /// - /// Contact information for the user - /// - [DataContract] - public partial class Contact : IEquatable - { - /// - /// Initializes a new instance of the class. - /// - /// Email Address. - /// International format Phone Number. - /// First Name. - /// Last Name. - public Contact(string email = default(string), string phoneNumber = default(string), string firstName = default(string), string lastName = default(string)) - { - this.Email = email; - this.PhoneNumber = phoneNumber; - this.FirstName = firstName; - this.LastName = lastName; - } - - /// - /// Email Address - /// - /// Email Address - [DataMember(Name="Email", EmitDefaultValue=false)] - public string Email { get; set; } - - /// - /// International format Phone Number - /// - /// International format Phone Number - [DataMember(Name="PhoneNumber", EmitDefaultValue=false)] - public string PhoneNumber { get; set; } - - /// - /// First Name - /// - /// First Name - [DataMember(Name="FirstName", EmitDefaultValue=false)] - public string FirstName { get; set; } - - /// - /// Last Name - /// - /// Last Name - [DataMember(Name="LastName", EmitDefaultValue=false)] - public string LastName { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Contact {\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); - sb.Append(" FirstName: ").Append(FirstName).Append("\n"); - sb.Append(" LastName: ").Append(LastName).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Contact); - } - - /// - /// Returns true if Contact instances are equal - /// - /// Instance of Contact to be compared - /// Boolean - public bool Equals(Contact input) - { - if (input == null) - return false; - - return - ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) - ) && - ( - this.PhoneNumber == input.PhoneNumber || - (this.PhoneNumber != null && - this.PhoneNumber.Equals(input.PhoneNumber)) - ) && - ( - this.FirstName == input.FirstName || - (this.FirstName != null && - this.FirstName.Equals(input.FirstName)) - ) && - ( - this.LastName == input.LastName || - (this.LastName != null && - this.LastName.Equals(input.LastName)) - ); - } - - /// - /// 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.PhoneNumber != null) - hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); - if (this.FirstName != null) - hashCode = hashCode * 59 + this.FirstName.GetHashCode(); - if (this.LastName != null) - hashCode = hashCode * 59 + this.LastName.GetHashCode(); - return hashCode; - } - } - } - -} diff --git a/src/Flipdish/Model/CreateAccountModel.cs b/src/Flipdish/Model/CreateAccountModel.cs index 311b70e9..d587dea3 100644 --- a/src/Flipdish/Model/CreateAccountModel.cs +++ b/src/Flipdish/Model/CreateAccountModel.cs @@ -36,12 +36,13 @@ protected CreateAccountModel() { } /// /// Initializes a new instance of the class. /// - /// Email addres (required). + /// Email address (required). /// Store name (required). /// LanguageId. /// Referral ID. /// Campaign ID. - public CreateAccountModel(string email = default(string), string storeName = default(string), string languageId = default(string), int? rid = default(int?), string cid = default(string)) + /// 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) @@ -64,12 +65,13 @@ protected CreateAccountModel() { } this.LanguageId = languageId; this.Rid = rid; this.Cid = cid; + this.RecaptchaToken = recaptchaToken; } /// - /// Email addres + /// Email address /// - /// Email addres + /// Email address [DataMember(Name="Email", EmitDefaultValue=false)] public string Email { get; set; } @@ -101,6 +103,13 @@ protected CreateAccountModel() { } [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 /// @@ -114,6 +123,7 @@ public override string ToString() 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(); } @@ -172,6 +182,11 @@ public bool Equals(CreateAccountModel input) this.Cid == input.Cid || (this.Cid != null && this.Cid.Equals(input.Cid)) + ) && + ( + this.RecaptchaToken == input.RecaptchaToken || + (this.RecaptchaToken != null && + this.RecaptchaToken.Equals(input.RecaptchaToken)) ); } @@ -194,6 +209,8 @@ public override int GetHashCode() 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/FulfillmentStatesConfigurationCreateBase.cs b/src/Flipdish/Model/CreateAppParameters.cs similarity index 75% rename from src/Flipdish/Model/FulfillmentStatesConfigurationCreateBase.cs rename to src/Flipdish/Model/CreateAppParameters.cs index 957bdf02..753b7198 100644 --- a/src/Flipdish/Model/FulfillmentStatesConfigurationCreateBase.cs +++ b/src/Flipdish/Model/CreateAppParameters.cs @@ -23,24 +23,24 @@ namespace Flipdish.Model { /// - /// Fulfillment States Configuration Create Base + /// The parameters required to create a new app. /// [DataContract] - public partial class FulfillmentStatesConfigurationCreateBase : IEquatable + public partial class CreateAppParameters : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Name. - public FulfillmentStatesConfigurationCreateBase(string name = default(string)) + /// The name of the brand that this app/white-label represents.. + public CreateAppParameters(string name = default(string)) { this.Name = name; } /// - /// Name + /// The name of the brand that this app/white-label represents. /// - /// Name + /// The name of the brand that this app/white-label represents. [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } @@ -51,7 +51,7 @@ public partial class FulfillmentStatesConfigurationCreateBase : IEquatableBoolean public override bool Equals(object input) { - return this.Equals(input as FulfillmentStatesConfigurationCreateBase); + return this.Equals(input as CreateAppParameters); } /// - /// Returns true if FulfillmentStatesConfigurationCreateBase instances are equal + /// Returns true if CreateAppParameters instances are equal /// - /// Instance of FulfillmentStatesConfigurationCreateBase to be compared + /// Instance of CreateAppParameters to be compared /// Boolean - public bool Equals(FulfillmentStatesConfigurationCreateBase input) + public bool Equals(CreateAppParameters input) { if (input == null) return false; diff --git a/src/Flipdish/Model/CreateAppStoreApp.cs b/src/Flipdish/Model/CreateAppStoreApp.cs index 9efeb829..d95fdb6f 100644 --- a/src/Flipdish/Model/CreateAppStoreApp.cs +++ b/src/Flipdish/Model/CreateAppStoreApp.cs @@ -23,15 +23,14 @@ namespace Flipdish.Model { /// - /// Create App store app + /// CreateAppStoreApp /// [DataContract] public partial class CreateAppStoreApp : IEquatable { /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> + /// Defines ConfigurationType /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> [JsonConverter(typeof(StringEnumConverter))] public enum ConfigurationTypeEnum { @@ -50,15 +49,13 @@ public enum ConfigurationTypeEnum } /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> + /// Gets or Sets ConfigurationType /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> [DataMember(Name="ConfigurationType", EmitDefaultValue=false)] public ConfigurationTypeEnum ConfigurationType { get; set; } /// - /// Store selector type + /// Defines StoreSelectorType /// - /// Store selector type [JsonConverter(typeof(StringEnumConverter))] public enum StoreSelectorTypeEnum { @@ -83,15 +80,13 @@ public enum StoreSelectorTypeEnum } /// - /// Store selector type + /// Gets or Sets StoreSelectorType /// - /// Store selector type [DataMember(Name="StoreSelectorType", EmitDefaultValue=false)] public StoreSelectorTypeEnum StoreSelectorType { get; set; } /// - /// Teammate app access level + /// Defines TeammateAppAccessLevel /// - /// Teammate app access level [JsonConverter(typeof(StringEnumConverter))] public enum TeammateAppAccessLevelEnum { @@ -108,53 +103,69 @@ public enum TeammateAppAccessLevelEnum [EnumMember(Value = "StoreOwner")] StoreOwner = 2, + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 3, + /// /// Enum ManagedOwner for value: ManagedOwner /// [EnumMember(Value = "ManagedOwner")] - ManagedOwner = 3, + ManagedOwner = 4, /// /// Enum Integrator for value: Integrator /// [EnumMember(Value = "Integrator")] - Integrator = 4, + Integrator = 5, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 6, /// /// Enum StoreManager for value: StoreManager /// [EnumMember(Value = "StoreManager")] - StoreManager = 5, + StoreManager = 7, /// /// Enum StoreStaff for value: StoreStaff /// [EnumMember(Value = "StoreStaff")] - StoreStaff = 6, + StoreStaff = 8, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 9, /// /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess /// [EnumMember(Value = "StoreReadOnlyAccess")] - StoreReadOnlyAccess = 7, + StoreReadOnlyAccess = 10, /// /// Enum FinanceManger for value: FinanceManger /// [EnumMember(Value = "FinanceManger")] - FinanceManger = 8 + FinanceManger = 11 } /// - /// Teammate app access level + /// Gets or Sets TeammateAppAccessLevel /// - /// Teammate app access level [DataMember(Name="TeammateAppAccessLevel", EmitDefaultValue=false)] public TeammateAppAccessLevelEnum? TeammateAppAccessLevel { get; set; } /// - /// Permissions type + /// Defines PermissionsType /// - /// Permissions type [JsonConverter(typeof(StringEnumConverter))] public enum PermissionsTypeEnum { @@ -167,9 +178,8 @@ public enum PermissionsTypeEnum } /// - /// Permissions type + /// Gets or Sets PermissionsType /// - /// Permissions type [DataMember(Name="PermissionsType", EmitDefaultValue=false)] public PermissionsTypeEnum PermissionsType { get; set; } /// @@ -224,9 +234,8 @@ public enum CategoriesEnum /// - /// Categories + /// Gets or Sets Categories /// - /// Categories [DataMember(Name="Categories", EmitDefaultValue=false)] public List Categories { get; set; } /// @@ -341,9 +350,8 @@ public enum CountriesEnum /// - /// Countries + /// Gets or Sets Countries /// - /// Countries [DataMember(Name="Countries", EmitDefaultValue=false)] public List Countries { get; set; } /// @@ -354,22 +362,25 @@ protected CreateAppStoreApp() { } /// /// Initializes a new instance of the class. /// - /// Details (required). - /// Configuration type <example>External link</example><example>Flipdish hosted</example> (required). - /// Store selector type (required). - /// Field groups. - /// Setup instructions. - /// External setup link. - /// Teammate app access level. - /// Permissions type (required). - /// Support information. - /// Name (required). - /// Description (required). - /// Is application enabled. - /// Categories (required). - /// Countries (required). - /// Developer Name. - 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 name = default(string), string description = default(string), bool? isEnabled = default(bool?), List categories = default(List), List countries = default(List), string developerName = default(string)) + /// 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) @@ -448,76 +459,88 @@ protected CreateAppStoreApp() { } this.ExternalSetupLink = externalSetupLink; this.TeammateAppAccessLevel = teammateAppAccessLevel; this.Support = support; + this.ExternalFunctionActionUrl = externalFunctionActionUrl; + this.ExternalFunctionSignatureKey = externalFunctionSignatureKey; + this.IsPaid = isPaid; this.IsEnabled = isEnabled; this.DeveloperName = developerName; } /// - /// Details + /// Gets or Sets Details /// - /// Details [DataMember(Name="Details", EmitDefaultValue=false)] public string Details { get; set; } /// - /// Field groups + /// Gets or Sets FieldGroups /// - /// Field groups [DataMember(Name="FieldGroups", EmitDefaultValue=false)] public List FieldGroups { get; set; } /// - /// Setup instructions + /// Gets or Sets SetupInstructions /// - /// Setup instructions [DataMember(Name="SetupInstructions", EmitDefaultValue=false)] public string SetupInstructions { get; set; } /// - /// External setup link + /// Gets or Sets ExternalSetupLink /// - /// External setup link [DataMember(Name="ExternalSetupLink", EmitDefaultValue=false)] public string ExternalSetupLink { get; set; } /// - /// Support information + /// Gets or Sets Support /// - /// Support information [DataMember(Name="Support", EmitDefaultValue=false)] public AppStoreAppSupportInfo Support { get; set; } /// - /// Name + /// 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 /// - /// Name [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Description + /// Gets or Sets Description /// - /// Description [DataMember(Name="Description", EmitDefaultValue=false)] public string Description { get; set; } /// - /// Is application enabled + /// Gets or Sets IsEnabled /// - /// Is application enabled [DataMember(Name="IsEnabled", EmitDefaultValue=false)] public bool? IsEnabled { get; set; } /// - /// Developer Name + /// Gets or Sets DeveloperName /// - /// Developer Name [DataMember(Name="DeveloperName", EmitDefaultValue=false)] public string DeveloperName { get; set; } @@ -538,6 +561,9 @@ public override string ToString() 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"); @@ -623,6 +649,21 @@ public bool Equals(CreateAppStoreApp input) (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 && @@ -682,6 +723,12 @@ public override int GetHashCode() 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) 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 index cb7e787e..5489c494 100644 --- a/src/Flipdish/Model/CreateCatalogGroupReference.cs +++ b/src/Flipdish/Model/CreateCatalogGroupReference.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Information to create a reference to a {Flipdish.PublicModels.V1.Catalog.Groups.Group} + /// Information to create a reference to a {Flipdish.Menus.PublicModels.V1.Catalog.Groups.Group} /// [DataContract] public partial class CreateCatalogGroupReference : IEquatable 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 index 630f95ea..6b5c1c6e 100644 --- a/src/Flipdish/Model/CreateFullMenu.cs +++ b/src/Flipdish/Model/CreateFullMenu.cs @@ -87,12 +87,13 @@ public enum TaxTypeEnum /// /// Name of Menu, only shown in portal. /// Image url. - /// Menu sections (startes, main etc). + /// Menu sections (starters, main etc). /// Menu tax rates. /// Display menu section link on UI. /// Menu section behaviour. /// Tax type. - 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?)) + /// 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; @@ -101,6 +102,7 @@ public enum TaxTypeEnum this.DisplaySectionLinks = displaySectionLinks; this.MenuSectionBehaviour = menuSectionBehaviour; this.TaxType = taxType; + this.IsIntegrated = isIntegrated; } /// @@ -118,9 +120,9 @@ public enum TaxTypeEnum public string ImageUrl { get; set; } /// - /// Menu sections (startes, main etc) + /// Menu sections (starters, main etc) /// - /// Menu sections (startes, main etc) + /// Menu sections (starters, main etc) [DataMember(Name="MenuSections", EmitDefaultValue=false)] public List MenuSections { get; set; } @@ -140,6 +142,13 @@ public enum TaxTypeEnum + /// + /// 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 /// @@ -155,6 +164,7 @@ public override string ToString() 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(); } @@ -223,6 +233,11 @@ public bool Equals(CreateFullMenu input) this.TaxType == input.TaxType || (this.TaxType != null && this.TaxType.Equals(input.TaxType)) + ) && + ( + this.IsIntegrated == input.IsIntegrated || + (this.IsIntegrated != null && + this.IsIntegrated.Equals(input.IsIntegrated)) ); } @@ -249,6 +264,8 @@ public override int GetHashCode() 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 index 9d990dcc..c170c232 100644 --- a/src/Flipdish/Model/CreateFullMenuItemOptionSet.cs +++ b/src/Flipdish/Model/CreateFullMenuItemOptionSet.cs @@ -78,7 +78,8 @@ public enum CellLayoutTypeEnum /// Minimum items must be selected. /// Maximum number of items can be selected. /// Small | Medium | Large Affects the layout of the menu.. - 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?)) + /// 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; @@ -88,6 +89,7 @@ public enum CellLayoutTypeEnum this.MinSelectCount = minSelectCount; this.MaxSelectCount = maxSelectCount; this.CellLayoutType = cellLayoutType; + this.PublicId = publicId; } /// @@ -140,6 +142,13 @@ public enum CellLayoutTypeEnum 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 /// @@ -156,6 +165,7 @@ public override string ToString() 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(); } @@ -229,6 +239,11 @@ public bool Equals(CreateFullMenuItemOptionSet input) this.CellLayoutType == input.CellLayoutType || (this.CellLayoutType != null && this.CellLayoutType.Equals(input.CellLayoutType)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) ); } @@ -257,6 +272,8 @@ public override int GetHashCode() 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 index b020b0ea..7e9bc9da 100644 --- a/src/Flipdish/Model/CreateFullMenuItemOptionSetItem.cs +++ b/src/Flipdish/Model/CreateFullMenuItemOptionSetItem.cs @@ -76,11 +76,13 @@ public enum CellLayoutTypeEnum /// 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. - 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?), bool? isAvailable = default(bool?), int? displayOrder = default(int?), CellLayoutTypeEnum? cellLayoutType = default(CellLayoutTypeEnum?), string imageUrl = default(string)) + /// 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; @@ -88,10 +90,12 @@ public enum CellLayoutTypeEnum 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; } /// @@ -136,6 +140,13 @@ public enum CellLayoutTypeEnum [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 /// @@ -158,6 +169,13 @@ public enum CellLayoutTypeEnum [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 /// @@ -172,10 +190,12 @@ public override string ToString() 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(); } @@ -240,6 +260,11 @@ public bool Equals(CreateFullMenuItemOptionSetItem input) (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 && @@ -259,6 +284,11 @@ public bool Equals(CreateFullMenuItemOptionSetItem input) this.ImageUrl == input.ImageUrl || (this.ImageUrl != null && this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) ); } @@ -283,6 +313,8 @@ public override int GetHashCode() 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) @@ -291,6 +323,8 @@ public override int GetHashCode() 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 index 991b7a65..af25e767 100644 --- a/src/Flipdish/Model/CreateFullMenuSection.cs +++ b/src/Flipdish/Model/CreateFullMenuSection.cs @@ -40,7 +40,8 @@ public partial class CreateFullMenuSection : IEquatable /// Is hidden from customer. Perhaps when the item is out of stock.. /// Image url. /// Menu Section Id. - 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?)) + /// 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; @@ -51,6 +52,7 @@ public partial class CreateFullMenuSection : IEquatable this.IsHiddenFromCustomers = isHiddenFromCustomers; this.ImageUrl = imageUrl; this.MenuSectionId = menuSectionId; + this.PublicId = publicId; } /// @@ -116,6 +118,13 @@ public partial class CreateFullMenuSection : IEquatable [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 /// @@ -133,6 +142,7 @@ public override string ToString() 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(); } @@ -211,6 +221,11 @@ public bool Equals(CreateFullMenuSection input) this.MenuSectionId == input.MenuSectionId || (this.MenuSectionId != null && this.MenuSectionId.Equals(input.MenuSectionId)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) ); } @@ -241,6 +256,8 @@ public override int GetHashCode() 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 index d79e79d2..63cc1bac 100644 --- a/src/Flipdish/Model/CreateFullMenuSectionItem.cs +++ b/src/Flipdish/Model/CreateFullMenuSectionItem.cs @@ -116,6 +116,7 @@ public enum CellLayoutTypeEnum /// 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. @@ -124,7 +125,9 @@ public enum CellLayoutTypeEnum /// Image url. /// Image url. /// Menu Item Id. - 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?), 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?)) + /// 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; @@ -133,6 +136,7 @@ public enum CellLayoutTypeEnum this.Description = description; this.SpicinessRating = spicinessRating; this.Price = price; + this.DepositReturnFee = depositReturnFee; this.DisplayOrder = displayOrder; this.Alcohol = alcohol; this.IsAvailable = isAvailable; @@ -141,6 +145,8 @@ public enum CellLayoutTypeEnum this.ImageName = imageName; this.ImageUrl = imageUrl; this.MenuItemId = menuItemId; + this.ExcludeFromVoucherDiscounting = excludeFromVoucherDiscounting; + this.PublicId = publicId; } /// @@ -186,6 +192,13 @@ public enum CellLayoutTypeEnum [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 /// @@ -236,6 +249,20 @@ public enum CellLayoutTypeEnum [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 /// @@ -251,6 +278,7 @@ public override string ToString() 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"); @@ -259,6 +287,8 @@ public override string ToString() 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(); } @@ -328,6 +358,11 @@ public bool Equals(CreateFullMenuSectionItem input) (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 && @@ -367,6 +402,16 @@ public bool Equals(CreateFullMenuSectionItem input) 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)) ); } @@ -393,6 +438,8 @@ public override int GetHashCode() 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) @@ -409,6 +456,10 @@ public override int GetHashCode() 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/CreateMetafieldDefinition.cs b/src/Flipdish/Model/CreateMetafieldDefinition.cs index fd26e80f..65f6ffaa 100644 --- a/src/Flipdish/Model/CreateMetafieldDefinition.cs +++ b/src/Flipdish/Model/CreateMetafieldDefinition.cs @@ -23,15 +23,15 @@ namespace Flipdish.Model { /// - /// Information to create a {Flipdish.PublicModels.V1.Metafields.MetafieldDefinition} + /// Information to create a {Flipdish.Metafields.PublicModels.V1.MetafieldDefinition} /// [DataContract] public partial class CreateMetafieldDefinition : IEquatable { /// - /// The Metafield will extend the specified {Flipdish.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} /// - /// The Metafield will extend the specified {Flipdish.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} [JsonConverter(typeof(StringEnumConverter))] public enum OwnerEntityEnum { @@ -56,9 +56,9 @@ public enum OwnerEntityEnum } /// - /// The Metafield will extend the specified {Flipdish.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} /// - /// The Metafield will extend the specified {Flipdish.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} [DataMember(Name="OwnerEntity", EmitDefaultValue=false)] public OwnerEntityEnum? OwnerEntity { get; set; } /// @@ -69,23 +69,29 @@ public enum OwnerEntityEnum public enum ValueTypeEnum { + /// + /// Enum Boolean for value: Boolean + /// + [EnumMember(Value = "Boolean")] + Boolean = 1, + /// /// Enum Json for value: Json /// [EnumMember(Value = "Json")] - Json = 1, + Json = 2, /// /// Enum SingleLineString for value: SingleLineString /// [EnumMember(Value = "SingleLineString")] - SingleLineString = 2, + SingleLineString = 3, /// /// Enum MultiLineString for value: MultiLineString /// [EnumMember(Value = "MultiLineString")] - MultiLineString = 3 + MultiLineString = 4 } /// @@ -130,7 +136,7 @@ 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.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity}. + /// 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). diff --git a/src/Flipdish/Model/CreatePayGreenConfigurationRequest.cs b/src/Flipdish/Model/CreatePayGreenConfigurationRequest.cs index e7c3d808..ce79ac67 100644 --- a/src/Flipdish/Model/CreatePayGreenConfigurationRequest.cs +++ b/src/Flipdish/Model/CreatePayGreenConfigurationRequest.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// CreatePayGreenConfigurationRequest + /// CreatePayGreenConfigurationRequest. /// [DataContract] public partial class CreatePayGreenConfigurationRequest : IEquatable @@ -31,10 +31,10 @@ public partial class CreatePayGreenConfigurationRequest : IEquatable /// Initializes a new instance of the class. /// - /// name. - /// payGreenId. - /// payGreenPrivateKey. - /// assignedStores. + /// 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; @@ -44,26 +44,30 @@ public partial class CreatePayGreenConfigurationRequest : IEquatable - /// Gets or Sets Name + /// Name. /// + /// Name. [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Gets or Sets PayGreenId + /// PayGreenId. /// + /// PayGreenId. [DataMember(Name="PayGreenId", EmitDefaultValue=false)] public string PayGreenId { get; set; } /// - /// Gets or Sets PayGreenPrivateKey + /// PayGreenPrivateKey. /// + /// PayGreenPrivateKey. [DataMember(Name="PayGreenPrivateKey", EmitDefaultValue=false)] public string PayGreenPrivateKey { get; set; } /// - /// Gets or Sets AssignedStores + /// AssignedStores. /// + /// AssignedStores. [DataMember(Name="AssignedStores", EmitDefaultValue=false)] public List AssignedStores { get; set; } diff --git a/src/Flipdish/Model/CreateProductReference.cs b/src/Flipdish/Model/CreateProductReference.cs index 0dc82936..67780f05 100644 --- a/src/Flipdish/Model/CreateProductReference.cs +++ b/src/Flipdish/Model/CreateProductReference.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Information to create a reference to a {Flipdish.PublicModels.V1.Catalog.Product} + /// Information to create a reference to a {Flipdish.Menus.PublicModels.V1.Catalog.Product} /// [DataContract] public partial class CreateProductReference : IEquatable 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 index d8967db0..320395b7 100644 --- a/src/Flipdish/Model/CreateTeammate.cs +++ b/src/Flipdish/Model/CreateTeammate.cs @@ -54,47 +54,71 @@ public enum AppAccessLevelEnum [EnumMember(Value = "StoreOwner")] StoreOwner = 3, + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 4, + /// /// Enum ManagedOwner for value: ManagedOwner /// [EnumMember(Value = "ManagedOwner")] - ManagedOwner = 4, + ManagedOwner = 5, /// /// Enum Integrator for value: Integrator /// [EnumMember(Value = "Integrator")] - Integrator = 5, + Integrator = 6, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 7, /// /// Enum StoreManager for value: StoreManager /// [EnumMember(Value = "StoreManager")] - StoreManager = 6, + StoreManager = 8, /// /// Enum StoreStaff for value: StoreStaff /// [EnumMember(Value = "StoreStaff")] - StoreStaff = 7, + StoreStaff = 9, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 10, /// /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess /// [EnumMember(Value = "StoreReadOnlyAccess")] - StoreReadOnlyAccess = 8, + StoreReadOnlyAccess = 11, /// /// Enum FinanceManger for value: FinanceManger /// [EnumMember(Value = "FinanceManger")] - FinanceManger = 9, + FinanceManger = 12, + + /// + /// Enum Onboarding for value: Onboarding + /// + [EnumMember(Value = "Onboarding")] + Onboarding = 13, /// /// Enum Support for value: Support /// [EnumMember(Value = "Support")] - Support = 10 + Support = 14 } /// @@ -110,12 +134,14 @@ public enum AppAccessLevelEnum /// 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). - public CreateTeammate(string email = default(string), AppAccessLevelEnum? appAccessLevel = default(AppAccessLevelEnum?), bool? hasAccessToAllStores = default(bool?), List storeIds = default(List)) + /// 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; } /// @@ -140,6 +166,13 @@ public enum AppAccessLevelEnum [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 /// @@ -152,6 +185,7 @@ public override string ToString() 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(); } @@ -205,6 +239,11 @@ public bool Equals(CreateTeammate input) this.StoreIds == input.StoreIds || this.StoreIds != null && this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.PropertyIds == input.PropertyIds || + this.PropertyIds != null && + this.PropertyIds.SequenceEqual(input.PropertyIds) ); } @@ -225,6 +264,8 @@ public override int GetHashCode() 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 index 6fa48b9f..b2dd46f9 100644 --- a/src/Flipdish/Model/CreateVoucher.cs +++ b/src/Flipdish/Model/CreateVoucher.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Voucher + /// Create Voucher /// [DataContract] public partial class CreateVoucher : IEquatable @@ -58,7 +58,13 @@ public enum VoucherTypeEnum /// Enum CreditNote for value: CreditNote /// [EnumMember(Value = "CreditNote")] - CreditNote = 4 + CreditNote = 4, + + /// + /// Enum FreeDelivery for value: FreeDelivery + /// + [EnumMember(Value = "FreeDelivery")] + FreeDelivery = 5 } /// @@ -68,16 +74,124 @@ public enum VoucherTypeEnum [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. - /// Stores that this voucher applies to. - /// Add item details. + /// 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. @@ -90,18 +204,26 @@ public enum VoucherTypeEnum /// 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). - public CreateVoucher(VoucherTypeEnum? voucherType = default(VoucherTypeEnum?), List stores = default(List), AddItemDetails addItemDetails = default(AddItemDetails), CreditNoteDetails creditNoteDetails = default(CreditNoteDetails), LumpDiscountDetails lumpDiscountDetails = default(LumpDiscountDetails), PercentDiscountDetails percentDiscountDetails = default(PercentDiscountDetails), string code = default(string), string description = default(string), 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?), DateTime? startDate = default(DateTime?), DateTime? expiryDate = default(DateTime?)) + /// 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.Stores = stores; - this.AddItemDetails = addItemDetails; + 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; @@ -114,24 +236,25 @@ public enum VoucherTypeEnum 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; } /// - /// Stores that this voucher applies to + /// Create Promotion details /// - /// Stores that this voucher applies to - [DataMember(Name="Stores", EmitDefaultValue=false)] - public List Stores { get; set; } - - /// - /// Add item details - /// - /// Add item details - [DataMember(Name="AddItemDetails", EmitDefaultValue=false)] - public AddItemDetails AddItemDetails { get; set; } + /// Create Promotion details + [DataMember(Name="Promotion", EmitDefaultValue=false)] + public CreatePromotion Promotion { get; set; } /// /// Credit note details @@ -168,6 +291,13 @@ public enum VoucherTypeEnum [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 /// @@ -252,6 +382,27 @@ public enum VoucherTypeEnum [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) /// @@ -266,6 +417,29 @@ public enum VoucherTypeEnum [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 /// @@ -275,13 +449,13 @@ public override string ToString() var sb = new StringBuilder(); sb.Append("class CreateVoucher {\n"); sb.Append(" VoucherType: ").Append(VoucherType).Append("\n"); - sb.Append(" Stores: ").Append(Stores).Append("\n"); - sb.Append(" AddItemDetails: ").Append(AddItemDetails).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"); @@ -294,8 +468,16 @@ public override string ToString() 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(); } @@ -336,14 +518,9 @@ public bool Equals(CreateVoucher input) this.VoucherType.Equals(input.VoucherType)) ) && ( - this.Stores == input.Stores || - this.Stores != null && - this.Stores.SequenceEqual(input.Stores) - ) && - ( - this.AddItemDetails == input.AddItemDetails || - (this.AddItemDetails != null && - this.AddItemDetails.Equals(input.AddItemDetails)) + this.Promotion == input.Promotion || + (this.Promotion != null && + this.Promotion.Equals(input.Promotion)) ) && ( this.CreditNoteDetails == input.CreditNoteDetails || @@ -370,6 +547,11 @@ public bool Equals(CreateVoucher input) (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 && @@ -430,6 +612,21 @@ public bool Equals(CreateVoucher input) (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 && @@ -439,6 +636,31 @@ public bool Equals(CreateVoucher input) 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)) ); } @@ -453,10 +675,8 @@ public override int GetHashCode() int hashCode = 41; if (this.VoucherType != null) hashCode = hashCode * 59 + this.VoucherType.GetHashCode(); - if (this.Stores != null) - hashCode = hashCode * 59 + this.Stores.GetHashCode(); - if (this.AddItemDetails != null) - hashCode = hashCode * 59 + this.AddItemDetails.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) @@ -467,6 +687,8 @@ public override int GetHashCode() 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) @@ -491,10 +713,26 @@ public override int GetHashCode() 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/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/Customer.cs b/src/Flipdish/Model/Customer.cs index 8a2e8a82..9cb6241e 100644 --- a/src/Flipdish/Model/Customer.cs +++ b/src/Flipdish/Model/Customer.cs @@ -32,14 +32,18 @@ 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?), DateTime? registrationDate = default(DateTime?), bool? cashOrdersEnabled = default(bool?), bool? cardOrdersEnabled = default(bool?), bool? marketingEnabled = default(bool?)) + 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; @@ -52,6 +56,13 @@ public partial class Customer : IEquatable [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 /// @@ -59,6 +70,13 @@ public partial class Customer : IEquatable [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 /// @@ -89,7 +107,9 @@ 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"); @@ -132,11 +152,21 @@ public bool Equals(Customer input) (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 && @@ -165,8 +195,12 @@ public override int GetHashCode() 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) diff --git a/src/Flipdish/Model/CustomerConsentUpdatedEvent.cs b/src/Flipdish/Model/CustomerConsentUpdatedEvent.cs index 56123dd1..50397b74 100644 --- a/src/Flipdish/Model/CustomerConsentUpdatedEvent.cs +++ b/src/Flipdish/Model/CustomerConsentUpdatedEvent.cs @@ -32,6 +32,7 @@ public partial class CustomerConsentUpdatedEvent : IEquatable class. /// /// The event name. + /// Organisation Id. /// Enabled. /// Description. /// Customer User info. @@ -40,9 +41,12 @@ public partial class CustomerConsentUpdatedEvent : IEquatablePosition. /// App id. /// Ip Address. - public CustomerConsentUpdatedEvent(string eventName = 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)) + /// 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; @@ -51,6 +55,8 @@ public partial class CustomerConsentUpdatedEvent : IEquatable @@ -60,6 +66,13 @@ public partial class CustomerConsentUpdatedEvent : IEquatable + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Enabled /// @@ -116,6 +129,20 @@ public partial class CustomerConsentUpdatedEvent : IEquatable + /// 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 /// @@ -125,6 +152,7 @@ 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"); @@ -133,6 +161,8 @@ public override string ToString() 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(); } @@ -172,6 +202,11 @@ public bool Equals(CustomerConsentUpdatedEvent input) (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 && @@ -211,6 +246,16 @@ public bool Equals(CustomerConsentUpdatedEvent input) 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)) ); } @@ -225,6 +270,8 @@ public override int GetHashCode() 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) @@ -241,6 +288,10 @@ public override int GetHashCode() 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 index 27bdbbd4..b7c3b622 100644 --- a/src/Flipdish/Model/CustomerCreatedEvent.cs +++ b/src/Flipdish/Model/CustomerCreatedEvent.cs @@ -32,6 +32,7 @@ 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. @@ -39,9 +40,12 @@ public partial class CustomerCreatedEvent : IEquatable /// Position. /// App id. /// Ip Address. - public CustomerCreatedEvent(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 ipAddress = default(string)) + /// 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; @@ -49,6 +53,8 @@ public partial class CustomerCreatedEvent : IEquatable this.Position = position; this.AppId = appId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -58,6 +64,13 @@ public partial class CustomerCreatedEvent : IEquatable [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 /// @@ -107,6 +120,20 @@ public partial class CustomerCreatedEvent : IEquatable [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 /// @@ -116,6 +143,7 @@ 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"); @@ -123,6 +151,8 @@ public override string ToString() 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(); } @@ -162,6 +192,11 @@ public bool Equals(CustomerCreatedEvent input) (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 && @@ -196,6 +231,16 @@ public bool Equals(CustomerCreatedEvent input) 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)) ); } @@ -210,6 +255,8 @@ public override int GetHashCode() 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) @@ -224,6 +271,10 @@ public override int GetHashCode() 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/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 index 2b520eb4..485c8dba 100644 --- a/src/Flipdish/Model/CustomerSummary.cs +++ b/src/Flipdish/Model/CustomerSummary.cs @@ -36,13 +36,15 @@ public partial class CustomerSummary : IEquatable /// Customer email address. /// Customer local phone number. /// Customer phone number. - public CustomerSummary(int? id = default(int?), string name = default(string), string emailAddress = default(string), string phoneNumberLocalFormat = default(string), string phoneNumber = default(string)) + /// 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; } /// @@ -80,6 +82,13 @@ public partial class CustomerSummary : IEquatable [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 /// @@ -93,6 +102,7 @@ public override string ToString() 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(); } @@ -151,6 +161,11 @@ public bool Equals(CustomerSummary input) this.PhoneNumber == input.PhoneNumber || (this.PhoneNumber != null && this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.LanguagePreference == input.LanguagePreference || + (this.LanguagePreference != null && + this.LanguagePreference.Equals(input.LanguagePreference)) ); } @@ -173,6 +188,8 @@ public override int GetHashCode() 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/CustomerUpdatedEvent.cs b/src/Flipdish/Model/CustomerUpdatedEvent.cs index be26f271..7b7a5954 100644 --- a/src/Flipdish/Model/CustomerUpdatedEvent.cs +++ b/src/Flipdish/Model/CustomerUpdatedEvent.cs @@ -38,8 +38,11 @@ public partial class CustomerUpdatedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class CustomerUpdatedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -100,6 +106,13 @@ public partial class CustomerUpdatedEvent : IEquatable [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 /// @@ -107,6 +120,20 @@ public partial class CustomerUpdatedEvent : IEquatable [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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(CustomerUpdatedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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/DeliveryZone.cs b/src/Flipdish/Model/DeliveryZone.cs index 4388c91b..96b05f93 100644 --- a/src/Flipdish/Model/DeliveryZone.cs +++ b/src/Flipdish/Model/DeliveryZone.cs @@ -32,13 +32,15 @@ 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? deliveryFee = default(double?), double? minimumDeliveryOrderAmount = default(double?), string wellKnownText = default(string), bool? isEnabled = default(bool?)) + 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; @@ -52,6 +54,13 @@ public partial class DeliveryZone : IEquatable [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) /// @@ -89,6 +98,7 @@ 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"); @@ -132,6 +142,11 @@ public bool Equals(DeliveryZone input) (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 && @@ -165,6 +180,8 @@ public override int GetHashCode() 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) diff --git a/src/Flipdish/Model/DeliveryZoneCreatedEvent.cs b/src/Flipdish/Model/DeliveryZoneCreatedEvent.cs index 71aeb23d..611ad41e 100644 --- a/src/Flipdish/Model/DeliveryZoneCreatedEvent.cs +++ b/src/Flipdish/Model/DeliveryZoneCreatedEvent.cs @@ -41,8 +41,11 @@ public partial class DeliveryZoneCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -54,7 +57,10 @@ public partial class DeliveryZoneCreatedEvent : IEquatable @@ -127,6 +133,13 @@ public partial class DeliveryZoneCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -134,6 +147,20 @@ public partial class DeliveryZoneCreatedEvent : IEquatable + /// 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 /// @@ -152,7 +179,10 @@ public override string ToString() 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(); } @@ -237,10 +267,25 @@ public bool Equals(DeliveryZoneCreatedEvent input) (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)) ); } @@ -273,8 +318,14 @@ public override int GetHashCode() 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 index 8a240443..17dfa87d 100644 --- a/src/Flipdish/Model/DeliveryZoneDeletedEvent.cs +++ b/src/Flipdish/Model/DeliveryZoneDeletedEvent.cs @@ -41,8 +41,11 @@ public partial class DeliveryZoneDeletedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -54,7 +57,10 @@ public partial class DeliveryZoneDeletedEvent : IEquatable @@ -127,6 +133,13 @@ public partial class DeliveryZoneDeletedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -134,6 +147,20 @@ public partial class DeliveryZoneDeletedEvent : IEquatable + /// 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 /// @@ -152,7 +179,10 @@ public override string ToString() 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(); } @@ -237,10 +267,25 @@ public bool Equals(DeliveryZoneDeletedEvent input) (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)) ); } @@ -273,8 +318,14 @@ public override int GetHashCode() 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 index a3a9ce52..3949f87f 100644 --- a/src/Flipdish/Model/DeliveryZoneUpdatedEvent.cs +++ b/src/Flipdish/Model/DeliveryZoneUpdatedEvent.cs @@ -41,8 +41,11 @@ public partial class DeliveryZoneUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -54,7 +57,10 @@ public partial class DeliveryZoneUpdatedEvent : IEquatable @@ -127,6 +133,13 @@ public partial class DeliveryZoneUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -134,6 +147,20 @@ public partial class DeliveryZoneUpdatedEvent : IEquatable + /// 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 /// @@ -152,7 +179,10 @@ public override string ToString() 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(); } @@ -237,10 +267,25 @@ public bool Equals(DeliveryZoneUpdatedEvent input) (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)) ); } @@ -273,8 +318,14 @@ public override int GetHashCode() 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/DnsVerifiedEvent.cs b/src/Flipdish/Model/DnsVerifiedEvent.cs index e1ca9e4b..467a4bc3 100644 --- a/src/Flipdish/Model/DnsVerifiedEvent.cs +++ b/src/Flipdish/Model/DnsVerifiedEvent.cs @@ -37,8 +37,11 @@ public partial class DnsVerifiedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -46,7 +49,10 @@ public partial class DnsVerifiedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -91,6 +97,13 @@ public partial class DnsVerifiedEvent : IEquatable [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 /// @@ -98,6 +111,20 @@ public partial class DnsVerifiedEvent : IEquatable [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 /// @@ -112,7 +139,10 @@ public override string ToString() 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(); } @@ -177,10 +207,25 @@ public bool Equals(DnsVerifiedEvent input) (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)) ); } @@ -205,8 +250,14 @@ public override int GetHashCode() 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/Driver.cs b/src/Flipdish/Model/Driver.cs deleted file mode 100644 index 79c19729..00000000 --- a/src/Flipdish/Model/Driver.cs +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Flipdish Open API v1.0 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Collections; -using System.Collections.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 - /// - [DataContract] - public partial class Driver : IEquatable - { - /// - /// Initializes a new instance of the class. - /// - /// User Id. - /// User Name. - /// User Phone Number. - /// stores. - /// Profile image url. - /// Driver Key. - public Driver(int? userId = default(int?), string userName = default(string), string userPhoneNumber = default(string), List stores = default(List), string profileImageUrl = default(string), string driverKey = default(string)) - { - this.UserId = userId; - this.UserName = userName; - this.UserPhoneNumber = userPhoneNumber; - this.Stores = stores; - this.ProfileImageUrl = profileImageUrl; - this.DriverKey = driverKey; - } - - /// - /// 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; } - - /// - /// Gets or Sets Stores - /// - [DataMember(Name="Stores", EmitDefaultValue=false)] - public List Stores { get; set; } - - /// - /// Profile image url - /// - /// Profile image url - [DataMember(Name="ProfileImageUrl", EmitDefaultValue=false)] - public string ProfileImageUrl { get; set; } - - /// - /// Driver Key - /// - /// Driver Key - [DataMember(Name="DriverKey", EmitDefaultValue=false)] - public string DriverKey { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Driver {\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" UserName: ").Append(UserName).Append("\n"); - sb.Append(" UserPhoneNumber: ").Append(UserPhoneNumber).Append("\n"); - sb.Append(" Stores: ").Append(Stores).Append("\n"); - sb.Append(" ProfileImageUrl: ").Append(ProfileImageUrl).Append("\n"); - sb.Append(" DriverKey: ").Append(DriverKey).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Driver); - } - - /// - /// Returns true if Driver instances are equal - /// - /// Instance of Driver to be compared - /// Boolean - public bool Equals(Driver 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.Stores == input.Stores || - this.Stores != null && - this.Stores.SequenceEqual(input.Stores) - ) && - ( - this.ProfileImageUrl == input.ProfileImageUrl || - (this.ProfileImageUrl != null && - this.ProfileImageUrl.Equals(input.ProfileImageUrl)) - ) && - ( - this.DriverKey == input.DriverKey || - (this.DriverKey != null && - this.DriverKey.Equals(input.DriverKey)) - ); - } - - /// - /// 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.Stores != null) - hashCode = hashCode * 59 + this.Stores.GetHashCode(); - if (this.ProfileImageUrl != null) - hashCode = hashCode * 59 + this.ProfileImageUrl.GetHashCode(); - if (this.DriverKey != null) - hashCode = hashCode * 59 + this.DriverKey.GetHashCode(); - return hashCode; - } - } - } - -} diff --git a/src/Flipdish/Model/DynamicFormField.cs b/src/Flipdish/Model/DynamicFormField.cs index a48fd258..5c41f167 100644 --- a/src/Flipdish/Model/DynamicFormField.cs +++ b/src/Flipdish/Model/DynamicFormField.cs @@ -38,7 +38,8 @@ public partial class DynamicFormField : IEquatable /// mapping. /// modifiers. /// value. - 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)) + /// 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; @@ -47,6 +48,7 @@ public partial class DynamicFormField : IEquatable this.Mapping = mapping; this.Modifiers = modifiers; this.Value = value; + this.Scopes = scopes; } /// @@ -91,6 +93,12 @@ public partial class DynamicFormField : IEquatable [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 /// @@ -106,6 +114,7 @@ public override string ToString() 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(); } @@ -174,6 +183,11 @@ public bool Equals(DynamicFormField input) this.Value == input.Value || (this.Value != null && this.Value.Equals(input.Value)) + ) && + ( + this.Scopes == input.Scopes || + (this.Scopes != null && + this.Scopes.Equals(input.Scopes)) ); } @@ -200,6 +214,8 @@ public override int GetHashCode() 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/EmvNotificationEvent.cs b/src/Flipdish/Model/EmvNotificationEvent.cs index 3dc9b143..d717a0a6 100644 --- a/src/Flipdish/Model/EmvNotificationEvent.cs +++ b/src/Flipdish/Model/EmvNotificationEvent.cs @@ -46,8 +46,11 @@ public partial class EmvNotificationEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -64,7 +67,10 @@ public partial class EmvNotificationEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -172,6 +178,13 @@ public partial class EmvNotificationEvent : IEquatable [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 /// @@ -179,6 +192,20 @@ public partial class EmvNotificationEvent : IEquatable [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 /// @@ -202,7 +229,10 @@ public override string ToString() 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(); } @@ -312,10 +342,25 @@ public bool Equals(EmvNotificationEvent input) (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)) ); } @@ -358,8 +403,14 @@ public override int GetHashCode() 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/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 index 6022d415..1d3bfe63 100644 --- a/src/Flipdish/Model/EventSearchResult.cs +++ b/src/Flipdish/Model/EventSearchResult.cs @@ -38,6 +38,7 @@ public partial class EventSearchResult : IEquatable /// 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. @@ -65,6 +66,7 @@ public partial class EventSearchResult : IEquatable /// 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. @@ -96,6 +98,8 @@ public partial class EventSearchResult : IEquatable /// 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. @@ -112,6 +116,7 @@ public partial class EventSearchResult : IEquatable /// Voucher created event. /// Voucher updated event. /// Voucher deleted event. + /// Voucher applied event. /// Teammate invite sent event. /// Teammate invite accepted event. /// Teammate updated event. @@ -121,6 +126,7 @@ public partial class EventSearchResult : IEquatable /// 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. @@ -151,6 +157,7 @@ public partial class EventSearchResult : IEquatable /// 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. @@ -163,7 +170,10 @@ public partial class EventSearchResult : IEquatable /// Location created event. /// Location deleted event. /// Service Charge 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 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 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 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 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 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 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)) + /// 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; @@ -172,6 +182,7 @@ public partial class EventSearchResult : IEquatable this.OrderDispatchedEvent = orderDispatchedEvent; this.OrderCustomerTrackingCreatedEvent = orderCustomerTrackingCreatedEvent; this.OrderDeliveryTrackingStatusUpdatedEvent = orderDeliveryTrackingStatusUpdatedEvent; + this.OrderBatchPublishedEvent = orderBatchPublishedEvent; this.OrderCreatedEvent = orderCreatedEvent; this.OrderRatingUpdatedEvent = orderRatingUpdatedEvent; this.OrderRefundedEvent = orderRefundedEvent; @@ -199,6 +210,7 @@ public partial class EventSearchResult : IEquatable this.StoreLogoUpdatedEvent = storeLogoUpdatedEvent; this.StoreLogoDeletedEvent = storeLogoDeletedEvent; this.MenuCreatedEvent = menuCreatedEvent; + this.MenuAsyncCreationCompletedEvent = menuAsyncCreationCompletedEvent; this.MenuUpdatedEvent = menuUpdatedEvent; this.MenuUploadedEvent = menuUploadedEvent; this.MenuBulkEditEvent = menuBulkEditEvent; @@ -230,6 +242,8 @@ public partial class EventSearchResult : IEquatable this.PrinterUnassignedFromStoreEvent = printerUnassignedFromStoreEvent; this.PhoneCallStartedEvent = phoneCallStartedEvent; this.PhoneCallEndedEvent = phoneCallEndedEvent; + this.TelephonyConfigUpdatedEvent = telephonyConfigUpdatedEvent; + this.ChannelStoresUpdatedEvent = channelStoresUpdatedEvent; this.LoyaltyCampaignCreatedEvent = loyaltyCampaignCreatedEvent; this.LoyaltyCampaignDeletedEvent = loyaltyCampaignDeletedEvent; this.LoyaltyCampaignUpdatedEvent = loyaltyCampaignUpdatedEvent; @@ -246,6 +260,7 @@ public partial class EventSearchResult : IEquatable this.VoucherCreatedEvent = voucherCreatedEvent; this.VoucherUpdatedEvent = voucherUpdatedEvent; this.VoucherDeletedEvent = voucherDeletedEvent; + this.VoucherAppliedEvent = voucherAppliedEvent; this.TeammateInviteSentEvent = teammateInviteSentEvent; this.TeammateInviteAcceptedEvent = teammateInviteAcceptedEvent; this.TeammateUpdatedEvent = teammateUpdatedEvent; @@ -255,6 +270,7 @@ public partial class EventSearchResult : IEquatable this.BankAccountDeletedEvent = bankAccountDeletedEvent; this.BankAccountAssignedEvent = bankAccountAssignedEvent; this.HydraAssignedEvent = hydraAssignedEvent; + this.HydraCreatedEvent = hydraCreatedEvent; this.HydraRequestResetEvent = hydraRequestResetEvent; this.HydraStoreAssignedEvent = hydraStoreAssignedEvent; this.HydraStoreUnassignedEvent = hydraStoreUnassignedEvent; @@ -285,6 +301,7 @@ public partial class EventSearchResult : IEquatable this.AppStoreConfigCreatedEvent = appStoreConfigCreatedEvent; this.AppStoreConfigUpdatedEvent = appStoreConfigUpdatedEvent; this.AppStoreConfigDeletedEvent = appStoreConfigDeletedEvent; + this.AppStoreSubscriptionChangeJobUpdatedEvent = appStoreSubscriptionChangeJobUpdatedEvent; this.CatalogItemCreatedEvent = catalogItemCreatedEvent; this.CatalogItemUpdatedEvent = catalogItemUpdatedEvent; this.CatalogItemArchivedEvent = catalogItemArchivedEvent; @@ -297,6 +314,9 @@ public partial class EventSearchResult : IEquatable this.LocationCreatedEvent = locationCreatedEvent; this.LocationDeletedEvent = locationDeletedEvent; this.StoreServiceChargeUpdatedEvent = storeServiceChargeUpdatedEvent; + this.MobileAppsSubmissionStatusUpdatedEvent = mobileAppsSubmissionStatusUpdatedEvent; + this.MobileAppsSubmissionUpdatedEvent = mobileAppsSubmissionUpdatedEvent; + this.StoreFeeConfigUpdatedEvent = storeFeeConfigUpdatedEvent; } /// @@ -348,6 +368,13 @@ public partial class EventSearchResult : IEquatable [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 /// @@ -537,6 +564,13 @@ public partial class EventSearchResult : IEquatable [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 /// @@ -754,6 +788,20 @@ public partial class EventSearchResult : IEquatable [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 /// @@ -866,6 +914,13 @@ public partial class EventSearchResult : IEquatable [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 /// @@ -920,7 +975,7 @@ public partial class EventSearchResult : IEquatable /// /// Bank account assigned event [DataMember(Name="BankAccountAssignedEvent", EmitDefaultValue=false)] - public List BankAccountAssignedEvent { get; set; } + public List BankAccountAssignedEvent { get; set; } /// /// Hydra assigned event @@ -929,6 +984,13 @@ public partial class EventSearchResult : IEquatable [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 /// @@ -1139,6 +1201,13 @@ public partial class EventSearchResult : IEquatable [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 /// @@ -1223,6 +1292,27 @@ public partial class EventSearchResult : IEquatable [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 /// @@ -1238,6 +1328,7 @@ public override string ToString() 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"); @@ -1265,6 +1356,7 @@ public override string ToString() 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"); @@ -1296,6 +1388,8 @@ public override string ToString() 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"); @@ -1312,6 +1406,7 @@ public override string ToString() 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"); @@ -1321,6 +1416,7 @@ public override string ToString() 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"); @@ -1351,6 +1447,7 @@ public override string ToString() 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"); @@ -1363,6 +1460,9 @@ public override string ToString() 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(); } @@ -1432,6 +1532,11 @@ public bool Equals(EventSearchResult input) 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 && @@ -1567,6 +1672,11 @@ public bool Equals(EventSearchResult input) 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 && @@ -1722,6 +1832,16 @@ public bool Equals(EventSearchResult input) 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 && @@ -1802,6 +1922,11 @@ public bool Equals(EventSearchResult input) 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 && @@ -1847,6 +1972,11 @@ public bool Equals(EventSearchResult input) 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 && @@ -1997,6 +2127,11 @@ public bool Equals(EventSearchResult input) 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 && @@ -2056,6 +2191,21 @@ public bool Equals(EventSearchResult input) 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) ); } @@ -2082,6 +2232,8 @@ public override int GetHashCode() 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) @@ -2136,6 +2288,8 @@ public override int GetHashCode() 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) @@ -2198,6 +2352,10 @@ public override int GetHashCode() 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) @@ -2230,6 +2388,8 @@ public override int GetHashCode() 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) @@ -2248,6 +2408,8 @@ public override int GetHashCode() 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) @@ -2308,6 +2470,8 @@ public override int GetHashCode() 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) @@ -2332,6 +2496,12 @@ public override int GetHashCode() 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/PaymentInfo.cs b/src/Flipdish/Model/ExecuteConfigurationActionRequest.cs similarity index 56% rename from src/Flipdish/Model/PaymentInfo.cs rename to src/Flipdish/Model/ExecuteConfigurationActionRequest.cs index de5f9378..30750e5d 100644 --- a/src/Flipdish/Model/PaymentInfo.cs +++ b/src/Flipdish/Model/ExecuteConfigurationActionRequest.cs @@ -23,35 +23,33 @@ namespace Flipdish.Model { /// - /// Payment information + /// ExecuteConfigurationActionRequest /// [DataContract] - public partial class PaymentInfo : IEquatable + public partial class ExecuteConfigurationActionRequest : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Defines if the order was paid. - /// Payment Description. - public PaymentInfo(bool? paid = default(bool?), string paymentType = default(string)) + /// key. + /// action. + public ExecuteConfigurationActionRequest(string key = default(string), string action = default(string)) { - this.Paid = paid; - this.PaymentType = paymentType; + this.Key = key; + this.Action = action; } /// - /// Defines if the order was paid + /// Gets or Sets Key /// - /// Defines if the order was paid - [DataMember(Name="Paid", EmitDefaultValue=false)] - public bool? Paid { get; set; } + [DataMember(Name="Key", EmitDefaultValue=false)] + public string Key { get; set; } /// - /// Payment Description + /// Gets or Sets Action /// - /// Payment Description - [DataMember(Name="PaymentType", EmitDefaultValue=false)] - public string PaymentType { get; set; } + [DataMember(Name="Action", EmitDefaultValue=false)] + public string Action { get; set; } /// /// Returns the string presentation of the object @@ -60,9 +58,9 @@ public partial class PaymentInfo : IEquatable public override string ToString() { var sb = new StringBuilder(); - sb.Append("class PaymentInfo {\n"); - sb.Append(" Paid: ").Append(Paid).Append("\n"); - sb.Append(" PaymentType: ").Append(PaymentType).Append("\n"); + 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(); } @@ -83,29 +81,29 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as PaymentInfo); + return this.Equals(input as ExecuteConfigurationActionRequest); } /// - /// Returns true if PaymentInfo instances are equal + /// Returns true if ExecuteConfigurationActionRequest instances are equal /// - /// Instance of PaymentInfo to be compared + /// Instance of ExecuteConfigurationActionRequest to be compared /// Boolean - public bool Equals(PaymentInfo input) + public bool Equals(ExecuteConfigurationActionRequest input) { if (input == null) return false; return ( - this.Paid == input.Paid || - (this.Paid != null && - this.Paid.Equals(input.Paid)) + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) ) && ( - this.PaymentType == input.PaymentType || - (this.PaymentType != null && - this.PaymentType.Equals(input.PaymentType)) + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) ); } @@ -118,10 +116,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Paid != null) - hashCode = hashCode * 59 + this.Paid.GetHashCode(); - if (this.PaymentType != null) - hashCode = hashCode * 59 + this.PaymentType.GetHashCode(); + 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/ExternalStoreEvent.cs b/src/Flipdish/Model/ExternalStoreEvent.cs index de0bf3cc..d3da3783 100644 --- a/src/Flipdish/Model/ExternalStoreEvent.cs +++ b/src/Flipdish/Model/ExternalStoreEvent.cs @@ -49,8 +49,11 @@ public partial class ExternalStoreEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -70,7 +73,10 @@ public partial class ExternalStoreEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -199,6 +205,13 @@ public partial class ExternalStoreEvent : IEquatable [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 /// @@ -206,6 +219,20 @@ public partial class ExternalStoreEvent : IEquatable [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 /// @@ -232,7 +259,10 @@ public override string ToString() 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(); } @@ -357,10 +387,25 @@ public bool Equals(ExternalStoreEvent input) (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)) ); } @@ -409,8 +454,14 @@ public override int GetHashCode() 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/Field.cs b/src/Flipdish/Model/Field.cs index 9fc8fd41..4d342ce7 100644 --- a/src/Flipdish/Model/Field.cs +++ b/src/Flipdish/Model/Field.cs @@ -29,9 +29,8 @@ namespace Flipdish.Model public partial class Field : IEquatable { /// - /// Field Type + /// Defines FieldType /// - /// Field Type [JsonConverter(typeof(StringEnumConverter))] public enum FieldTypeEnum { @@ -88,13 +87,18 @@ public enum FieldTypeEnum /// Enum Boolean for value: Boolean /// [EnumMember(Value = "Boolean")] - Boolean = 9 + Boolean = 9, + + /// + /// Enum ActionButton for value: ActionButton + /// + [EnumMember(Value = "ActionButton")] + ActionButton = 10 } /// - /// Field Type + /// Gets or Sets FieldType /// - /// Field Type [DataMember(Name="FieldType", EmitDefaultValue=false)] public FieldTypeEnum FieldType { get; set; } /// @@ -105,16 +109,17 @@ protected Field() { } /// /// Initializes a new instance of the class. /// - /// Name (required). - /// Description (required). - /// Key (required). - /// Tooltip. - /// Position (required). - /// Default Value. - /// Valid Values <remarks>Used typically for dropdown/select</remarks>. - /// Validation Regex. - /// Field Type (required). - 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)) + /// 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) @@ -165,65 +170,64 @@ protected Field() { } this.DefaultValue = defaultValue; this.ValidValues = validValues; this.ValidationRegex = validationRegex; + this.IsFlipdishRestricted = isFlipdishRestricted; } /// - /// Name + /// Gets or Sets Name /// - /// Name [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Description + /// Gets or Sets Description /// - /// Description [DataMember(Name="Description", EmitDefaultValue=false)] public string Description { get; set; } /// - /// Key + /// Gets or Sets Key /// - /// Key [DataMember(Name="Key", EmitDefaultValue=false)] public string Key { get; set; } /// - /// Tooltip + /// Gets or Sets Tooltip /// - /// Tooltip [DataMember(Name="Tooltip", EmitDefaultValue=false)] public string Tooltip { get; set; } /// - /// Position + /// Gets or Sets Position /// - /// Position [DataMember(Name="Position", EmitDefaultValue=false)] public int? Position { get; set; } /// - /// Default Value + /// Gets or Sets DefaultValue /// - /// Default Value [DataMember(Name="DefaultValue", EmitDefaultValue=false)] public string DefaultValue { get; set; } /// - /// Valid Values <remarks>Used typically for dropdown/select</remarks> + /// Gets or Sets ValidValues /// - /// Valid Values <remarks>Used typically for dropdown/select</remarks> [DataMember(Name="ValidValues", EmitDefaultValue=false)] public List ValidValues { get; set; } /// - /// Validation Regex + /// Gets or Sets ValidationRegex /// - /// Validation Regex [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 /// @@ -241,6 +245,7 @@ public override string ToString() 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(); } @@ -319,6 +324,11 @@ public bool Equals(Field input) this.FieldType == input.FieldType || (this.FieldType != null && this.FieldType.Equals(input.FieldType)) + ) && + ( + this.IsFlipdishRestricted == input.IsFlipdishRestricted || + (this.IsFlipdishRestricted != null && + this.IsFlipdishRestricted.Equals(input.IsFlipdishRestricted)) ); } @@ -349,6 +359,8 @@ public override int GetHashCode() 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/FieldGroup.cs b/src/Flipdish/Model/FieldGroup.cs index 1978a705..a0e90b58 100644 --- a/src/Flipdish/Model/FieldGroup.cs +++ b/src/Flipdish/Model/FieldGroup.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Field group + /// FieldGroup /// [DataContract] public partial class FieldGroup : IEquatable @@ -36,11 +36,11 @@ protected FieldGroup() { } /// /// Initializes a new instance of the class. /// - /// Name (required). - /// Description. - /// Tooltip <remarks>Displays on text hover</remarks>. - /// Position <remarks>Position order in the field groups to display</remarks> (required). - /// Fields. + /// 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) @@ -67,37 +67,32 @@ protected FieldGroup() { } } /// - /// Name + /// Gets or Sets Name /// - /// Name [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Description + /// Gets or Sets Description /// - /// Description [DataMember(Name="Description", EmitDefaultValue=false)] public string Description { get; set; } /// - /// Tooltip <remarks>Displays on text hover</remarks> + /// Gets or Sets Tooltip /// - /// Tooltip <remarks>Displays on text hover</remarks> [DataMember(Name="Tooltip", EmitDefaultValue=false)] public string Tooltip { get; set; } /// - /// Position <remarks>Position order in the field groups to display</remarks> + /// Gets or Sets Position /// - /// Position <remarks>Position order in the field groups to display</remarks> [DataMember(Name="Position", EmitDefaultValue=false)] public int? Position { get; set; } /// - /// Fields + /// Gets or Sets Fields /// - /// Fields [DataMember(Name="Fields", EmitDefaultValue=false)] public List Fields { get; set; } 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 index dc184196..255d078b 100644 --- a/src/Flipdish/Model/FlipdishEventBase.cs +++ b/src/Flipdish/Model/FlipdishEventBase.cs @@ -36,15 +36,21 @@ public partial class FlipdishEventBase : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - public FlipdishEventBase(string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string)) + /// 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; } /// @@ -82,6 +88,13 @@ public partial class FlipdishEventBase : IEquatable [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 /// @@ -89,6 +102,20 @@ public partial class FlipdishEventBase : IEquatable [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 /// @@ -102,7 +129,10 @@ public override string ToString() 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(); } @@ -162,10 +192,25 @@ public bool Equals(FlipdishEventBase input) (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)) ); } @@ -188,8 +233,14 @@ public override int GetHashCode() 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 index f6790d65..585a5d59 100644 --- a/src/Flipdish/Model/FlipdishFeesDetails.cs +++ b/src/Flipdish/Model/FlipdishFeesDetails.cs @@ -33,18 +33,22 @@ public partial class FlipdishFeesDetails : IEquatable /// /// 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? totalSalesFees = default(double?), double? onlineSalesRefundedFees = default(double?), double? cashSalesRefundedFees = default(double?), double? salesFeesVat = default(double?), double? totalFees = default(double?)) + 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; } @@ -63,6 +67,13 @@ public partial class FlipdishFeesDetails : IEquatable [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 /// @@ -84,6 +95,13 @@ public partial class FlipdishFeesDetails : IEquatable [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 /// @@ -108,9 +126,11 @@ public override string ToString() 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"); @@ -157,6 +177,11 @@ public bool Equals(FlipdishFeesDetails input) (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 && @@ -172,6 +197,11 @@ public bool Equals(FlipdishFeesDetails input) (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 && @@ -197,12 +227,16 @@ public override int GetHashCode() 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) diff --git a/src/Flipdish/Model/FulfillmentInfo.cs b/src/Flipdish/Model/FulfillmentInfo.cs deleted file mode 100644 index bd5f6de2..00000000 --- a/src/Flipdish/Model/FulfillmentInfo.cs +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Flipdish Open API v1.0 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Collections; -using System.Collections.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 information (required for all orders) - /// - [DataContract] - public partial class FulfillmentInfo : IEquatable - { - /// - /// [Required] Dispatch Type (i.e Pickup / Delivery) - /// - /// [Required] Dispatch Type (i.e Pickup / Delivery) - [JsonConverter(typeof(StringEnumConverter))] - public enum DispatchTypeEnum - { - - /// - /// Enum Delivery for value: Delivery - /// - [EnumMember(Value = "Delivery")] - Delivery = 1, - - /// - /// Enum Pickup for value: Pickup - /// - [EnumMember(Value = "Pickup")] - Pickup = 2 - } - - /// - /// [Required] Dispatch Type (i.e Pickup / Delivery) - /// - /// [Required] Dispatch Type (i.e Pickup / Delivery) - [DataMember(Name="DispatchType", EmitDefaultValue=false)] - public DispatchTypeEnum? DispatchType { get; set; } - /// - /// Initializes a new instance of the class. - /// - /// [Required] Dispatch Type (i.e Pickup / Delivery). - /// [Required] Time the order is requested for. - /// Location the order is to be delivered to [Required] Delivery [Not Required] Pickup. - /// Price of the dispatch, normally 0 for collection and a value for delivery [Required] Delivery [Not Required] Pickup. - public FulfillmentInfo(DispatchTypeEnum? dispatchType = default(DispatchTypeEnum?), DateTime? requestedForUtc = default(DateTime?), Location location = default(Location), Price dispatchAmount = default(Price)) - { - this.DispatchType = dispatchType; - this.RequestedForUtc = requestedForUtc; - this.Location = location; - this.DispatchAmount = dispatchAmount; - } - - - /// - /// [Required] Time the order is requested for - /// - /// [Required] Time the order is requested for - [DataMember(Name="RequestedForUtc", EmitDefaultValue=false)] - public DateTime? RequestedForUtc { get; set; } - - /// - /// Location the order is to be delivered to [Required] Delivery [Not Required] Pickup - /// - /// Location the order is to be delivered to [Required] Delivery [Not Required] Pickup - [DataMember(Name="Location", EmitDefaultValue=false)] - public Location Location { get; set; } - - /// - /// Price of the dispatch, normally 0 for collection and a value for delivery [Required] Delivery [Not Required] Pickup - /// - /// Price of the dispatch, normally 0 for collection and a value for delivery [Required] Delivery [Not Required] Pickup - [DataMember(Name="DispatchAmount", EmitDefaultValue=false)] - public Price DispatchAmount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FulfillmentInfo {\n"); - sb.Append(" DispatchType: ").Append(DispatchType).Append("\n"); - sb.Append(" RequestedForUtc: ").Append(RequestedForUtc).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" DispatchAmount: ").Append(DispatchAmount).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as FulfillmentInfo); - } - - /// - /// Returns true if FulfillmentInfo instances are equal - /// - /// Instance of FulfillmentInfo to be compared - /// Boolean - public bool Equals(FulfillmentInfo input) - { - if (input == null) - return false; - - return - ( - this.DispatchType == input.DispatchType || - (this.DispatchType != null && - this.DispatchType.Equals(input.DispatchType)) - ) && - ( - this.RequestedForUtc == input.RequestedForUtc || - (this.RequestedForUtc != null && - this.RequestedForUtc.Equals(input.RequestedForUtc)) - ) && - ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) - ) && - ( - this.DispatchAmount == input.DispatchAmount || - (this.DispatchAmount != null && - this.DispatchAmount.Equals(input.DispatchAmount)) - ); - } - - /// - /// 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.RequestedForUtc != null) - hashCode = hashCode * 59 + this.RequestedForUtc.GetHashCode(); - if (this.Location != null) - hashCode = hashCode * 59 + this.Location.GetHashCode(); - if (this.DispatchAmount != null) - hashCode = hashCode * 59 + this.DispatchAmount.GetHashCode(); - return hashCode; - } - } - } - -} diff --git a/src/Flipdish/Model/FulfillmentStatesConfiguration.cs b/src/Flipdish/Model/FulfillmentStatesConfiguration.cs index 37fb2f1f..c753d497 100644 --- a/src/Flipdish/Model/FulfillmentStatesConfiguration.cs +++ b/src/Flipdish/Model/FulfillmentStatesConfiguration.cs @@ -65,14 +65,16 @@ public enum StoreSelectorTypeEnum /// 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), string appId = default(string), string configurationUid = default(string), StoreSelectorTypeEnum? storeSelectorType = default(StoreSelectorTypeEnum?), List storeIds = default(List), string name = default(string)) + 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; @@ -87,6 +89,13 @@ public enum StoreSelectorTypeEnum [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 /// @@ -125,6 +134,7 @@ 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"); @@ -169,6 +179,11 @@ public bool Equals(FulfillmentStatesConfiguration input) 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 && @@ -207,6 +222,8 @@ public override int GetHashCode() 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) diff --git a/src/Flipdish/Model/FulfillmentStatesConfigurationSummary.cs b/src/Flipdish/Model/FulfillmentStatesConfigurationSummary.cs index 73d33b28..b30c2e8c 100644 --- a/src/Flipdish/Model/FulfillmentStatesConfigurationSummary.cs +++ b/src/Flipdish/Model/FulfillmentStatesConfigurationSummary.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// App store app configuration header information + /// Fulfillment configuration header information /// [DataContract] public partial class FulfillmentStatesConfigurationSummary : IEquatable diff --git a/src/Flipdish/Model/FulfillmentStatusConfigurationItem.cs b/src/Flipdish/Model/FulfillmentStatusConfigurationItem.cs index 5c60d1f7..450798df 100644 --- a/src/Flipdish/Model/FulfillmentStatusConfigurationItem.cs +++ b/src/Flipdish/Model/FulfillmentStatusConfigurationItem.cs @@ -117,8 +117,8 @@ public enum OrderTypesEnum /// 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. - /// Integer for ordering results in choices (eg. dropdowns). - 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?), int? visualOrder = default(int?)) + /// 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; @@ -134,7 +134,7 @@ public enum OrderTypesEnum this.IsCustom = isCustom; this.OrderTypes = orderTypes; this.Communication = communication; - this.VisualOrder = visualOrder; + this.Image = image; } /// @@ -224,11 +224,11 @@ public enum OrderTypesEnum public bool? Communication { get; set; } /// - /// Integer for ordering results in choices (eg. dropdowns) + /// Image (image filename, relative, not absolute URL) /// - /// Integer for ordering results in choices (eg. dropdowns) - [DataMember(Name="VisualOrder", EmitDefaultValue=false)] - public int? VisualOrder { get; set; } + /// Image (image filename, relative, not absolute URL) + [DataMember(Name="Image", EmitDefaultValue=false)] + public string Image { get; set; } /// /// Returns the string presentation of the object @@ -252,7 +252,7 @@ public override string ToString() sb.Append(" IsCustom: ").Append(IsCustom).Append("\n"); sb.Append(" OrderTypes: ").Append(OrderTypes).Append("\n"); sb.Append(" Communication: ").Append(Communication).Append("\n"); - sb.Append(" VisualOrder: ").Append(VisualOrder).Append("\n"); + sb.Append(" Image: ").Append(Image).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -358,9 +358,9 @@ public bool Equals(FulfillmentStatusConfigurationItem input) this.Communication.Equals(input.Communication)) ) && ( - this.VisualOrder == input.VisualOrder || - (this.VisualOrder != null && - this.VisualOrder.Equals(input.VisualOrder)) + this.Image == input.Image || + (this.Image != null && + this.Image.Equals(input.Image)) ); } @@ -401,8 +401,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.OrderTypes.GetHashCode(); if (this.Communication != null) hashCode = hashCode * 59 + this.Communication.GetHashCode(); - if (this.VisualOrder != null) - hashCode = hashCode * 59 + this.VisualOrder.GetHashCode(); + if (this.Image != null) + hashCode = hashCode * 59 + this.Image.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/GroupReference.cs b/src/Flipdish/Model/GroupReference.cs index 3cd88039..9a7d88c2 100644 --- a/src/Flipdish/Model/GroupReference.cs +++ b/src/Flipdish/Model/GroupReference.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Reference to an existing {Flipdish.PublicModels.V1.Catalog.Groups.Group} + /// Reference to an existing {Flipdish.Menus.PublicModels.V1.Catalog.Groups.Group} /// [DataContract] public partial class GroupReference : IEquatable @@ -57,7 +57,7 @@ protected GroupReference() { } /// /// Initializes a new instance of the class. /// - /// Details of the referenced {Flipdish.PublicModels.V1.Catalog.Products.GroupReference.Group}. + /// 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)) @@ -84,9 +84,9 @@ protected GroupReference() { } } /// - /// Details of the referenced {Flipdish.PublicModels.V1.Catalog.Products.GroupReference.Group} + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Products.GroupReference.Group} /// - /// Details of the referenced {Flipdish.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; } 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/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/HttpRequestAndResponseLog.cs b/src/Flipdish/Model/HttpRequestAndResponseLog.cs deleted file mode 100644 index 5ab7040b..00000000 --- a/src/Flipdish/Model/HttpRequestAndResponseLog.cs +++ /dev/null @@ -1,351 +0,0 @@ -/* - * Flipdish Open API v1.0 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; - -namespace Flipdish.Model -{ - /// - /// Http Request and Response Log - /// - [DataContract] - public partial class HttpRequestAndResponseLog : IEquatable - { - /// - /// Initializes a new instance of the class. - /// - /// Id of the log. - /// Verb associated with the HTTP call.. - /// Http request URI.. - /// Http response status code.. - /// Http response status line.. - /// Call duration representing the duration of the HTTP call in milliseconds.. - /// Identity of the caller.. - /// Ip address of the caller. - /// Timestamp at which the HTTP call took place.. - /// Http request headers.. - /// Http request body, if any.. - /// Http request content-length. - /// Http response headers.. - /// Http response body.. - /// Http response content-length. - public HttpRequestAndResponseLog(Guid? guid = default(Guid?), string verb = default(string), string requestUri = default(string), int? statusCode = default(int?), string reasonPhrase = default(string), long? callDurationInMilliseconds = default(long?), string userId = default(string), string ipAddress = default(string), string createdDateTime = default(string), Dictionary requestHeaders = default(Dictionary), string requestBody = default(string), long? requestLength = default(long?), Dictionary responseHeaders = default(Dictionary), string responseBody = default(string), long? responseLength = default(long?)) - { - this.Guid = guid; - this.Verb = verb; - this.RequestUri = requestUri; - this.StatusCode = statusCode; - this.ReasonPhrase = reasonPhrase; - this.CallDurationInMilliseconds = callDurationInMilliseconds; - this.UserId = userId; - this.IpAddress = ipAddress; - this.CreatedDateTime = createdDateTime; - this.RequestHeaders = requestHeaders; - this.RequestBody = requestBody; - this.RequestLength = requestLength; - this.ResponseHeaders = responseHeaders; - this.ResponseBody = responseBody; - this.ResponseLength = responseLength; - } - - /// - /// Id of the log - /// - /// Id of the log - [DataMember(Name="Guid", EmitDefaultValue=false)] - public Guid? Guid { get; set; } - - /// - /// Verb associated with the HTTP call. - /// - /// Verb associated with the HTTP call. - [DataMember(Name="Verb", EmitDefaultValue=false)] - public string Verb { get; set; } - - /// - /// Http request URI. - /// - /// Http request URI. - [DataMember(Name="RequestUri", EmitDefaultValue=false)] - public string RequestUri { get; set; } - - /// - /// Http response status code. - /// - /// Http response status code. - [DataMember(Name="StatusCode", EmitDefaultValue=false)] - public int? StatusCode { get; set; } - - /// - /// Http response status line. - /// - /// Http response status line. - [DataMember(Name="ReasonPhrase", EmitDefaultValue=false)] - public string ReasonPhrase { get; set; } - - /// - /// Call duration representing the duration of the HTTP call in milliseconds. - /// - /// Call duration representing the duration of the HTTP call in milliseconds. - [DataMember(Name="CallDurationInMilliseconds", EmitDefaultValue=false)] - public long? CallDurationInMilliseconds { get; set; } - - /// - /// Identity of the caller. - /// - /// Identity of the caller. - [DataMember(Name="UserId", EmitDefaultValue=false)] - public string UserId { get; set; } - - /// - /// Ip address of the caller - /// - /// Ip address of the caller - [DataMember(Name="IpAddress", EmitDefaultValue=false)] - public string IpAddress { get; set; } - - /// - /// Timestamp at which the HTTP call took place. - /// - /// Timestamp at which the HTTP call took place. - [DataMember(Name="CreatedDateTime", EmitDefaultValue=false)] - public string CreatedDateTime { get; set; } - - /// - /// Http request headers. - /// - /// Http request headers. - [DataMember(Name="RequestHeaders", EmitDefaultValue=false)] - public Dictionary RequestHeaders { get; set; } - - /// - /// Http request body, if any. - /// - /// Http request body, if any. - [DataMember(Name="RequestBody", EmitDefaultValue=false)] - public string RequestBody { get; set; } - - /// - /// Http request content-length - /// - /// Http request content-length - [DataMember(Name="RequestLength", EmitDefaultValue=false)] - public long? RequestLength { get; set; } - - /// - /// Http response headers. - /// - /// Http response headers. - [DataMember(Name="ResponseHeaders", EmitDefaultValue=false)] - public Dictionary ResponseHeaders { get; set; } - - /// - /// Http response body. - /// - /// Http response body. - [DataMember(Name="ResponseBody", EmitDefaultValue=false)] - public string ResponseBody { get; set; } - - /// - /// Http response content-length - /// - /// Http response content-length - [DataMember(Name="ResponseLength", EmitDefaultValue=false)] - public long? ResponseLength { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class HttpRequestAndResponseLog {\n"); - sb.Append(" Guid: ").Append(Guid).Append("\n"); - sb.Append(" Verb: ").Append(Verb).Append("\n"); - sb.Append(" RequestUri: ").Append(RequestUri).Append("\n"); - sb.Append(" StatusCode: ").Append(StatusCode).Append("\n"); - sb.Append(" ReasonPhrase: ").Append(ReasonPhrase).Append("\n"); - sb.Append(" CallDurationInMilliseconds: ").Append(CallDurationInMilliseconds).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" IpAddress: ").Append(IpAddress).Append("\n"); - sb.Append(" CreatedDateTime: ").Append(CreatedDateTime).Append("\n"); - sb.Append(" RequestHeaders: ").Append(RequestHeaders).Append("\n"); - sb.Append(" RequestBody: ").Append(RequestBody).Append("\n"); - sb.Append(" RequestLength: ").Append(RequestLength).Append("\n"); - sb.Append(" ResponseHeaders: ").Append(ResponseHeaders).Append("\n"); - sb.Append(" ResponseBody: ").Append(ResponseBody).Append("\n"); - sb.Append(" ResponseLength: ").Append(ResponseLength).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as HttpRequestAndResponseLog); - } - - /// - /// Returns true if HttpRequestAndResponseLog instances are equal - /// - /// Instance of HttpRequestAndResponseLog to be compared - /// Boolean - public bool Equals(HttpRequestAndResponseLog input) - { - if (input == null) - return false; - - return - ( - this.Guid == input.Guid || - (this.Guid != null && - this.Guid.Equals(input.Guid)) - ) && - ( - this.Verb == input.Verb || - (this.Verb != null && - this.Verb.Equals(input.Verb)) - ) && - ( - this.RequestUri == input.RequestUri || - (this.RequestUri != null && - this.RequestUri.Equals(input.RequestUri)) - ) && - ( - this.StatusCode == input.StatusCode || - (this.StatusCode != null && - this.StatusCode.Equals(input.StatusCode)) - ) && - ( - this.ReasonPhrase == input.ReasonPhrase || - (this.ReasonPhrase != null && - this.ReasonPhrase.Equals(input.ReasonPhrase)) - ) && - ( - this.CallDurationInMilliseconds == input.CallDurationInMilliseconds || - (this.CallDurationInMilliseconds != null && - this.CallDurationInMilliseconds.Equals(input.CallDurationInMilliseconds)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.IpAddress == input.IpAddress || - (this.IpAddress != null && - this.IpAddress.Equals(input.IpAddress)) - ) && - ( - this.CreatedDateTime == input.CreatedDateTime || - (this.CreatedDateTime != null && - this.CreatedDateTime.Equals(input.CreatedDateTime)) - ) && - ( - this.RequestHeaders == input.RequestHeaders || - this.RequestHeaders != null && - this.RequestHeaders.SequenceEqual(input.RequestHeaders) - ) && - ( - this.RequestBody == input.RequestBody || - (this.RequestBody != null && - this.RequestBody.Equals(input.RequestBody)) - ) && - ( - this.RequestLength == input.RequestLength || - (this.RequestLength != null && - this.RequestLength.Equals(input.RequestLength)) - ) && - ( - this.ResponseHeaders == input.ResponseHeaders || - this.ResponseHeaders != null && - this.ResponseHeaders.SequenceEqual(input.ResponseHeaders) - ) && - ( - this.ResponseBody == input.ResponseBody || - (this.ResponseBody != null && - this.ResponseBody.Equals(input.ResponseBody)) - ) && - ( - this.ResponseLength == input.ResponseLength || - (this.ResponseLength != null && - this.ResponseLength.Equals(input.ResponseLength)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Guid != null) - hashCode = hashCode * 59 + this.Guid.GetHashCode(); - if (this.Verb != null) - hashCode = hashCode * 59 + this.Verb.GetHashCode(); - if (this.RequestUri != null) - hashCode = hashCode * 59 + this.RequestUri.GetHashCode(); - if (this.StatusCode != null) - hashCode = hashCode * 59 + this.StatusCode.GetHashCode(); - if (this.ReasonPhrase != null) - hashCode = hashCode * 59 + this.ReasonPhrase.GetHashCode(); - if (this.CallDurationInMilliseconds != null) - hashCode = hashCode * 59 + this.CallDurationInMilliseconds.GetHashCode(); - if (this.UserId != null) - hashCode = hashCode * 59 + this.UserId.GetHashCode(); - if (this.IpAddress != null) - hashCode = hashCode * 59 + this.IpAddress.GetHashCode(); - if (this.CreatedDateTime != null) - hashCode = hashCode * 59 + this.CreatedDateTime.GetHashCode(); - if (this.RequestHeaders != null) - hashCode = hashCode * 59 + this.RequestHeaders.GetHashCode(); - if (this.RequestBody != null) - hashCode = hashCode * 59 + this.RequestBody.GetHashCode(); - if (this.RequestLength != null) - hashCode = hashCode * 59 + this.RequestLength.GetHashCode(); - if (this.ResponseHeaders != null) - hashCode = hashCode * 59 + this.ResponseHeaders.GetHashCode(); - if (this.ResponseBody != null) - hashCode = hashCode * 59 + this.ResponseBody.GetHashCode(); - if (this.ResponseLength != null) - hashCode = hashCode * 59 + this.ResponseLength.GetHashCode(); - return hashCode; - } - } - } - -} diff --git a/src/Flipdish/Model/HydraAssignedEvent.cs b/src/Flipdish/Model/HydraAssignedEvent.cs index e6b4d015..78ec1d0d 100644 --- a/src/Flipdish/Model/HydraAssignedEvent.cs +++ b/src/Flipdish/Model/HydraAssignedEvent.cs @@ -38,8 +38,11 @@ public partial class HydraAssignedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class HydraAssignedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -100,6 +106,13 @@ public partial class HydraAssignedEvent : IEquatable [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 /// @@ -107,6 +120,20 @@ public partial class HydraAssignedEvent : IEquatable [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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(HydraAssignedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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/HydraConnectionStatusChangedEvent.cs b/src/Flipdish/Model/HydraConnectionStatusChangedEvent.cs index 7e305f17..be0ae1bc 100644 --- a/src/Flipdish/Model/HydraConnectionStatusChangedEvent.cs +++ b/src/Flipdish/Model/HydraConnectionStatusChangedEvent.cs @@ -72,8 +72,11 @@ public enum HydraDeviceStatusEnum /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -83,7 +86,10 @@ public enum HydraDeviceStatusEnum this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -136,6 +142,13 @@ public enum HydraDeviceStatusEnum [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 /// @@ -143,6 +156,20 @@ public enum HydraDeviceStatusEnum [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 /// @@ -159,7 +186,10 @@ public override string ToString() 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(); } @@ -234,10 +264,25 @@ public bool Equals(HydraConnectionStatusChangedEvent input) (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)) ); } @@ -266,8 +311,14 @@ public override int GetHashCode() 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 index 77a785b3..7ef95db2 100644 --- a/src/Flipdish/Model/HydraDeviceDetails.cs +++ b/src/Flipdish/Model/HydraDeviceDetails.cs @@ -98,7 +98,8 @@ public enum StatusEnum /// Initializes a new instance of the class. /// /// Flipdish internal device identifier. - /// Device Id or Serial Number. + /// Device Id. + /// Serial Number. /// Type of the device. /// Status of the device. /// Device Name. @@ -108,10 +109,11 @@ public enum StatusEnum /// Build number of the device. /// SHA of the commit. /// Build branch. - public HydraDeviceDetails(int? hydraConfigId = default(int?), string deviceId = 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)) + 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; @@ -131,12 +133,19 @@ public enum StatusEnum public int? HydraConfigId { get; set; } /// - /// Device Id or Serial Number + /// Device Id /// - /// Device Id or Serial Number + /// 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; } + /// @@ -198,6 +207,7 @@ public override string ToString() 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"); @@ -251,6 +261,11 @@ public bool Equals(HydraDeviceDetails input) (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 && @@ -311,6 +326,8 @@ public override int GetHashCode() 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) diff --git a/src/Flipdish/Model/HydraRequestResetEvent.cs b/src/Flipdish/Model/HydraRequestResetEvent.cs index fbcf9179..956e038f 100644 --- a/src/Flipdish/Model/HydraRequestResetEvent.cs +++ b/src/Flipdish/Model/HydraRequestResetEvent.cs @@ -37,8 +37,11 @@ public partial class HydraRequestResetEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -46,7 +49,10 @@ public partial class HydraRequestResetEvent : IEquatable @@ -91,6 +97,13 @@ public partial class HydraRequestResetEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -98,6 +111,20 @@ public partial class HydraRequestResetEvent : IEquatable + /// 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 /// @@ -112,7 +139,10 @@ public override string ToString() 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(); } @@ -177,10 +207,25 @@ public bool Equals(HydraRequestResetEvent input) (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)) ); } @@ -205,8 +250,14 @@ public override int GetHashCode() 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 index 8040c191..b3b6a97c 100644 --- a/src/Flipdish/Model/HydraSettingChangedEvent.cs +++ b/src/Flipdish/Model/HydraSettingChangedEvent.cs @@ -38,8 +38,11 @@ public partial class HydraSettingChangedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class HydraSettingChangedEvent : IEquatable @@ -100,6 +106,13 @@ public partial class HydraSettingChangedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -107,6 +120,20 @@ public partial class HydraSettingChangedEvent : IEquatable + /// 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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(HydraSettingChangedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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 index 9316ef1f..1af7758f 100644 --- a/src/Flipdish/Model/HydraStatus.cs +++ b/src/Flipdish/Model/HydraStatus.cs @@ -29,9 +29,9 @@ namespace Flipdish.Model public partial class HydraStatus : IEquatable { /// - /// Hydra User Type + /// Hydra User Type as integer. Prefer {Flipdish.PublicModels.V1.Hydra.HydraStatus.DeviceType}. /// - /// Hydra User Type + /// Hydra User Type as integer. Prefer {Flipdish.PublicModels.V1.Hydra.HydraStatus.DeviceType}. [JsonConverter(typeof(StringEnumConverter))] public enum UserTypeEnum { @@ -56,12 +56,45 @@ public enum UserTypeEnum } /// - /// Hydra User Type + /// Hydra User Type as integer. Prefer {Flipdish.PublicModels.V1.Hydra.HydraStatus.DeviceType}. /// - /// Hydra User Type + /// 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] @@ -71,11 +104,14 @@ protected HydraStatus() { } /// /// 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. - public HydraStatus(string appId = default(string), List storeIds = default(List), bool? isRegistered = default(bool?), int? pinCode = default(int?), List images = default(List), UserTypeEnum? userType = default(UserTypeEnum?)) + /// 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) @@ -96,9 +132,12 @@ protected HydraStatus() { } this.IsRegistered = isRegistered; } this.StoreIds = storeIds; + this.PropertyIds = propertyIds; this.PinCode = pinCode; this.Images = images; this.UserType = userType; + this.DeviceType = deviceType; + this.HydraUserId = hydraUserId; } /// @@ -114,6 +153,13 @@ protected HydraStatus() { } [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 /// @@ -136,6 +182,14 @@ protected HydraStatus() { } 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 /// @@ -146,10 +200,13 @@ public override string ToString() 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(); } @@ -194,6 +251,11 @@ public bool Equals(HydraStatus input) 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 && @@ -213,6 +275,16 @@ public bool Equals(HydraStatus input) 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)) ); } @@ -229,6 +301,8 @@ public override int GetHashCode() 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) @@ -237,6 +311,10 @@ public override int GetHashCode() 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 index 4d2ced10..ad59740d 100644 --- a/src/Flipdish/Model/HydraStoreAssignedEvent.cs +++ b/src/Flipdish/Model/HydraStoreAssignedEvent.cs @@ -38,8 +38,11 @@ public partial class HydraStoreAssignedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class HydraStoreAssignedEvent : IEquatable @@ -100,6 +106,13 @@ public partial class HydraStoreAssignedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -107,6 +120,20 @@ public partial class HydraStoreAssignedEvent : IEquatable + /// 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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(HydraStoreAssignedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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/HydraStoreUnassignedEvent.cs b/src/Flipdish/Model/HydraStoreUnassignedEvent.cs index 189d791f..fff6e663 100644 --- a/src/Flipdish/Model/HydraStoreUnassignedEvent.cs +++ b/src/Flipdish/Model/HydraStoreUnassignedEvent.cs @@ -38,8 +38,11 @@ public partial class HydraStoreUnassignedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class HydraStoreUnassignedEvent : IEquatable @@ -100,6 +106,13 @@ public partial class HydraStoreUnassignedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -107,6 +120,20 @@ public partial class HydraStoreUnassignedEvent : IEquatable + /// 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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(HydraStoreUnassignedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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 index 99c3d7f4..b7ab2ffa 100644 --- a/src/Flipdish/Model/HydraUnAssignedEvent.cs +++ b/src/Flipdish/Model/HydraUnAssignedEvent.cs @@ -38,8 +38,11 @@ public partial class HydraUnAssignedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class HydraUnAssignedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -100,6 +106,13 @@ public partial class HydraUnAssignedEvent : IEquatable [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 /// @@ -107,6 +120,20 @@ public partial class HydraUnAssignedEvent : IEquatable [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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(HydraUnAssignedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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/KioskCashSetting.cs b/src/Flipdish/Model/IntercomUserHash.cs similarity index 60% rename from src/Flipdish/Model/KioskCashSetting.cs rename to src/Flipdish/Model/IntercomUserHash.cs index 7277f612..b6e37d18 100644 --- a/src/Flipdish/Model/KioskCashSetting.cs +++ b/src/Flipdish/Model/IntercomUserHash.cs @@ -23,26 +23,26 @@ namespace Flipdish.Model { /// - /// Model containing result of Kiosk cash setting + /// Intercom user hash /// [DataContract] - public partial class KioskCashSetting : IEquatable + public partial class IntercomUserHash : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Indicated whether cash payment is enabled or not eg: true. - public KioskCashSetting(bool? cashPaymentEnabled = default(bool?)) + /// User hash. + public IntercomUserHash(string userHash = default(string)) { - this.CashPaymentEnabled = cashPaymentEnabled; + this.UserHash = userHash; } /// - /// Indicated whether cash payment is enabled or not eg: true + /// User hash /// - /// Indicated whether cash payment is enabled or not eg: true - [DataMember(Name="CashPaymentEnabled", EmitDefaultValue=false)] - public bool? CashPaymentEnabled { get; set; } + /// User hash + [DataMember(Name="UserHash", EmitDefaultValue=false)] + public string UserHash { get; set; } /// /// Returns the string presentation of the object @@ -51,8 +51,8 @@ public partial class KioskCashSetting : IEquatable public override string ToString() { var sb = new StringBuilder(); - sb.Append("class KioskCashSetting {\n"); - sb.Append(" CashPaymentEnabled: ").Append(CashPaymentEnabled).Append("\n"); + sb.Append("class IntercomUserHash {\n"); + sb.Append(" UserHash: ").Append(UserHash).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -73,24 +73,24 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as KioskCashSetting); + return this.Equals(input as IntercomUserHash); } /// - /// Returns true if KioskCashSetting instances are equal + /// Returns true if IntercomUserHash instances are equal /// - /// Instance of KioskCashSetting to be compared + /// Instance of IntercomUserHash to be compared /// Boolean - public bool Equals(KioskCashSetting input) + public bool Equals(IntercomUserHash input) { if (input == null) return false; return ( - this.CashPaymentEnabled == input.CashPaymentEnabled || - (this.CashPaymentEnabled != null && - this.CashPaymentEnabled.Equals(input.CashPaymentEnabled)) + this.UserHash == input.UserHash || + (this.UserHash != null && + this.UserHash.Equals(input.UserHash)) ); } @@ -103,8 +103,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.CashPaymentEnabled != null) - hashCode = hashCode * 59 + this.CashPaymentEnabled.GetHashCode(); + 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/Price.cs b/src/Flipdish/Model/InvoiceDiscount.cs similarity index 57% rename from src/Flipdish/Model/Price.cs rename to src/Flipdish/Model/InvoiceDiscount.cs index 8bade47c..83cc7e72 100644 --- a/src/Flipdish/Model/Price.cs +++ b/src/Flipdish/Model/InvoiceDiscount.cs @@ -23,35 +23,56 @@ namespace Flipdish.Model { /// - /// Defines a price + /// Invoice Discount /// [DataContract] - public partial class Price : IEquatable + public partial class InvoiceDiscount : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Amount (including tax). - /// Tax (only required in tax exclusive prices). - public Price(double? amount = default(double?), double? tax = default(double?)) + [JsonConstructorAttribute] + protected InvoiceDiscount() { } + /// + /// Initializes a new instance of the class. + /// + /// Name (required). + /// Amount (required). + public InvoiceDiscount(string name = default(string), double? amount = default(double?)) { - this.Amount = amount; - this.Tax = tax; + // 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; + } } /// - /// Amount (including tax) + /// Name /// - /// Amount (including tax) - [DataMember(Name="Amount", EmitDefaultValue=false)] - public double? Amount { get; set; } + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } /// - /// Tax (only required in tax exclusive prices) + /// Amount /// - /// Tax (only required in tax exclusive prices) - [DataMember(Name="Tax", EmitDefaultValue=false)] - public double? Tax { get; set; } + /// Amount + [DataMember(Name="Amount", EmitDefaultValue=false)] + public double? Amount { get; set; } /// /// Returns the string presentation of the object @@ -60,9 +81,9 @@ public partial class Price : IEquatable public override string ToString() { var sb = new StringBuilder(); - sb.Append("class Price {\n"); + sb.Append("class InvoiceDiscount {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Tax: ").Append(Tax).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -83,29 +104,29 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as Price); + return this.Equals(input as InvoiceDiscount); } /// - /// Returns true if Price instances are equal + /// Returns true if InvoiceDiscount instances are equal /// - /// Instance of Price to be compared + /// Instance of InvoiceDiscount to be compared /// Boolean - public bool Equals(Price input) + 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)) - ) && - ( - this.Tax == input.Tax || - (this.Tax != null && - this.Tax.Equals(input.Tax)) ); } @@ -118,10 +139,10 @@ 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(); - if (this.Tax != null) - hashCode = hashCode * 59 + this.Tax.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/KioskBluetoothInstallUpdateInitiateEvent.cs b/src/Flipdish/Model/KioskBluetoothInstallUpdateInitiateEvent.cs index 6d7a68d2..6dcb99a1 100644 --- a/src/Flipdish/Model/KioskBluetoothInstallUpdateInitiateEvent.cs +++ b/src/Flipdish/Model/KioskBluetoothInstallUpdateInitiateEvent.cs @@ -84,8 +84,11 @@ public enum BluetoothTerminalTypeEnum /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -95,7 +98,10 @@ public enum BluetoothTerminalTypeEnum this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -148,6 +154,13 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -155,6 +168,20 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -171,7 +198,10 @@ public override string ToString() 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(); } @@ -246,10 +276,25 @@ public bool Equals(KioskBluetoothInstallUpdateInitiateEvent input) (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)) ); } @@ -278,8 +323,14 @@ public override int GetHashCode() 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 index 21edd38c..56782b59 100644 --- a/src/Flipdish/Model/KioskBluetoothPairingModeEvent.cs +++ b/src/Flipdish/Model/KioskBluetoothPairingModeEvent.cs @@ -84,8 +84,11 @@ public enum BluetoothTerminalTypeEnum /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -95,7 +98,10 @@ public enum BluetoothTerminalTypeEnum this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -148,6 +154,13 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -155,6 +168,20 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -171,7 +198,10 @@ public override string ToString() 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(); } @@ -246,10 +276,25 @@ public bool Equals(KioskBluetoothPairingModeEvent input) (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)) ); } @@ -278,8 +323,14 @@ public override int GetHashCode() 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 index 28a35cb8..998250db 100644 --- a/src/Flipdish/Model/KioskBluetoothTerminalCancelUpdateEvent.cs +++ b/src/Flipdish/Model/KioskBluetoothTerminalCancelUpdateEvent.cs @@ -84,8 +84,11 @@ public enum BluetoothTerminalTypeEnum /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -95,7 +98,10 @@ public enum BluetoothTerminalTypeEnum this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -148,6 +154,13 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -155,6 +168,20 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -171,7 +198,10 @@ public override string ToString() 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(); } @@ -246,10 +276,25 @@ public bool Equals(KioskBluetoothTerminalCancelUpdateEvent input) (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)) ); } @@ -278,8 +323,14 @@ public override int GetHashCode() 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 index c6b64088..5cf532cd 100644 --- a/src/Flipdish/Model/KioskBluetoothTerminalFirmwareVersionStatusEvent.cs +++ b/src/Flipdish/Model/KioskBluetoothTerminalFirmwareVersionStatusEvent.cs @@ -82,8 +82,11 @@ public enum UpdateTimeEstimateEnum /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -97,7 +100,10 @@ public enum UpdateTimeEstimateEnum this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -178,6 +184,13 @@ public enum UpdateTimeEstimateEnum [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 /// @@ -185,6 +198,20 @@ public enum UpdateTimeEstimateEnum [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 /// @@ -205,7 +232,10 @@ public override string ToString() 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(); } @@ -300,10 +330,25 @@ public bool Equals(KioskBluetoothTerminalFirmwareVersionStatusEvent input) (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)) ); } @@ -340,8 +385,14 @@ public override int GetHashCode() 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 index 1b25de2c..a08f6837 100644 --- a/src/Flipdish/Model/KioskBluetoothTerminalInitiateUpdateCheckEvent.cs +++ b/src/Flipdish/Model/KioskBluetoothTerminalInitiateUpdateCheckEvent.cs @@ -38,8 +38,11 @@ public partial class KioskBluetoothTerminalInitiateUpdateCheckEvent : IEquatabl /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class KioskBluetoothTerminalInitiateUpdateCheckEvent : IEquatabl this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -100,6 +106,13 @@ public partial class KioskBluetoothTerminalInitiateUpdateCheckEvent : IEquatabl [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 /// @@ -107,6 +120,20 @@ public partial class KioskBluetoothTerminalInitiateUpdateCheckEvent : IEquatabl [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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(KioskBluetoothTerminalInitiateUpdateCheckEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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 index 872f9f0b..bea84e25 100644 --- a/src/Flipdish/Model/KioskBluetoothTerminalInstallationStatusEvent.cs +++ b/src/Flipdish/Model/KioskBluetoothTerminalInstallationStatusEvent.cs @@ -86,8 +86,11 @@ public enum BluetoothTerminalTypeEnum /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -99,7 +102,10 @@ public enum BluetoothTerminalTypeEnum this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -166,6 +172,13 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -173,6 +186,20 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -191,7 +218,10 @@ public override string ToString() 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(); } @@ -276,10 +306,25 @@ public bool Equals(KioskBluetoothTerminalInstallationStatusEvent input) (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)) ); } @@ -312,8 +357,14 @@ public override int GetHashCode() 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 index 3f98e9d7..8b33f9e8 100644 --- a/src/Flipdish/Model/KioskBluetoothTerminalUnpairedEvent.cs +++ b/src/Flipdish/Model/KioskBluetoothTerminalUnpairedEvent.cs @@ -84,8 +84,11 @@ public enum BluetoothTerminalTypeEnum /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -95,7 +98,10 @@ public enum BluetoothTerminalTypeEnum this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -148,6 +154,13 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -155,6 +168,20 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -171,7 +198,10 @@ public override string ToString() 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(); } @@ -246,10 +276,25 @@ public bool Equals(KioskBluetoothTerminalUnpairedEvent input) (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)) ); } @@ -278,8 +323,14 @@ public override int GetHashCode() 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 index ca426d00..ed00809d 100644 --- a/src/Flipdish/Model/KioskBluetoothTerminalUpdatedEvent.cs +++ b/src/Flipdish/Model/KioskBluetoothTerminalUpdatedEvent.cs @@ -86,8 +86,11 @@ public enum BluetoothTerminalTypeEnum /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -99,7 +102,10 @@ public enum BluetoothTerminalTypeEnum this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -166,6 +172,13 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -173,6 +186,20 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -191,7 +218,10 @@ public override string ToString() 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(); } @@ -276,10 +306,25 @@ public bool Equals(KioskBluetoothTerminalUpdatedEvent input) (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)) ); } @@ -312,8 +357,14 @@ public override int GetHashCode() 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 index 9d2bada8..1e034696 100644 --- a/src/Flipdish/Model/KioskBluetoothUnpairingModeEvent.cs +++ b/src/Flipdish/Model/KioskBluetoothUnpairingModeEvent.cs @@ -84,8 +84,11 @@ public enum BluetoothTerminalTypeEnum /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -95,7 +98,10 @@ public enum BluetoothTerminalTypeEnum this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -148,6 +154,13 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -155,6 +168,20 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -171,7 +198,10 @@ public override string ToString() 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(); } @@ -246,10 +276,25 @@ public bool Equals(KioskBluetoothUnpairingModeEvent input) (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)) ); } @@ -278,8 +323,14 @@ public override int GetHashCode() 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/StoreKioskSettings.cs b/src/Flipdish/Model/KioskEntitlementsResult.cs similarity index 51% rename from src/Flipdish/Model/StoreKioskSettings.cs rename to src/Flipdish/Model/KioskEntitlementsResult.cs index fcd59951..5b696b0d 100644 --- a/src/Flipdish/Model/StoreKioskSettings.cs +++ b/src/Flipdish/Model/KioskEntitlementsResult.cs @@ -23,35 +23,35 @@ namespace Flipdish.Model { /// - /// Store Kiosk Settings + /// Kiosk entitlements and usage /// [DataContract] - public partial class StoreKioskSettings : IEquatable + public partial class KioskEntitlementsResult : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// List of Store Kiosk Settings. - /// Store Logo Url. - public StoreKioskSettings(List kioskStoreSettings = default(List), string storeLogoUrl = default(string)) + /// Number of kiosk devices entitled. + /// The quantity of entitlements that have been used. + public KioskEntitlementsResult(int? entitledQuantity = default(int?), int? usedQuantity = default(int?)) { - this.KioskStoreSettings = kioskStoreSettings; - this.StoreLogoUrl = storeLogoUrl; + this.EntitledQuantity = entitledQuantity; + this.UsedQuantity = usedQuantity; } /// - /// List of Store Kiosk Settings + /// Number of kiosk devices entitled /// - /// List of Store Kiosk Settings - [DataMember(Name="KioskStoreSettings", EmitDefaultValue=false)] - public List KioskStoreSettings { get; set; } + /// Number of kiosk devices entitled + [DataMember(Name="EntitledQuantity", EmitDefaultValue=false)] + public int? EntitledQuantity { get; set; } /// - /// Store Logo Url + /// The quantity of entitlements that have been used /// - /// Store Logo Url - [DataMember(Name="StoreLogoUrl", EmitDefaultValue=false)] - public string StoreLogoUrl { get; set; } + /// 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 @@ -60,9 +60,9 @@ public partial class StoreKioskSettings : IEquatable public override string ToString() { var sb = new StringBuilder(); - sb.Append("class StoreKioskSettings {\n"); - sb.Append(" KioskStoreSettings: ").Append(KioskStoreSettings).Append("\n"); - sb.Append(" StoreLogoUrl: ").Append(StoreLogoUrl).Append("\n"); + 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(); } @@ -83,29 +83,29 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as StoreKioskSettings); + return this.Equals(input as KioskEntitlementsResult); } /// - /// Returns true if StoreKioskSettings instances are equal + /// Returns true if KioskEntitlementsResult instances are equal /// - /// Instance of StoreKioskSettings to be compared + /// Instance of KioskEntitlementsResult to be compared /// Boolean - public bool Equals(StoreKioskSettings input) + public bool Equals(KioskEntitlementsResult input) { if (input == null) return false; return ( - this.KioskStoreSettings == input.KioskStoreSettings || - this.KioskStoreSettings != null && - this.KioskStoreSettings.SequenceEqual(input.KioskStoreSettings) + this.EntitledQuantity == input.EntitledQuantity || + (this.EntitledQuantity != null && + this.EntitledQuantity.Equals(input.EntitledQuantity)) ) && ( - this.StoreLogoUrl == input.StoreLogoUrl || - (this.StoreLogoUrl != null && - this.StoreLogoUrl.Equals(input.StoreLogoUrl)) + this.UsedQuantity == input.UsedQuantity || + (this.UsedQuantity != null && + this.UsedQuantity.Equals(input.UsedQuantity)) ); } @@ -118,10 +118,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.KioskStoreSettings != null) - hashCode = hashCode * 59 + this.KioskStoreSettings.GetHashCode(); - if (this.StoreLogoUrl != null) - hashCode = hashCode * 59 + this.StoreLogoUrl.GetHashCode(); + 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/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/KioskStoreSettings.cs b/src/Flipdish/Model/KioskStoreSettings.cs deleted file mode 100644 index e17476cc..00000000 --- a/src/Flipdish/Model/KioskStoreSettings.cs +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Flipdish Open API v1.0 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Collections; -using System.Collections.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 a kiosks store settings - /// - [DataContract] - public partial class KioskStoreSettings : IEquatable - { - /// - /// Initializes a new instance of the class. - /// - /// Kiosks store settings. - /// Kiosks timezone. - /// Servers current Utc time. - public KioskStoreSettings(List storeKioskSettings = default(List), string timezone = default(string), DateTime? currentUtcTime = default(DateTime?)) - { - this.StoreKioskSettings = storeKioskSettings; - this.Timezone = timezone; - this.CurrentUtcTime = currentUtcTime; - } - - /// - /// Kiosks store settings - /// - /// Kiosks store settings - [DataMember(Name="StoreKioskSettings", EmitDefaultValue=false)] - public List StoreKioskSettings { get; set; } - - /// - /// Kiosks timezone - /// - /// Kiosks timezone - [DataMember(Name="Timezone", EmitDefaultValue=false)] - public string Timezone { get; set; } - - /// - /// Servers current Utc time - /// - /// Servers current Utc time - [DataMember(Name="CurrentUtcTime", EmitDefaultValue=false)] - public DateTime? CurrentUtcTime { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class KioskStoreSettings {\n"); - sb.Append(" StoreKioskSettings: ").Append(StoreKioskSettings).Append("\n"); - sb.Append(" Timezone: ").Append(Timezone).Append("\n"); - sb.Append(" CurrentUtcTime: ").Append(CurrentUtcTime).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as KioskStoreSettings); - } - - /// - /// Returns true if KioskStoreSettings instances are equal - /// - /// Instance of KioskStoreSettings to be compared - /// Boolean - public bool Equals(KioskStoreSettings input) - { - if (input == null) - return false; - - return - ( - this.StoreKioskSettings == input.StoreKioskSettings || - this.StoreKioskSettings != null && - this.StoreKioskSettings.SequenceEqual(input.StoreKioskSettings) - ) && - ( - this.Timezone == input.Timezone || - (this.Timezone != null && - this.Timezone.Equals(input.Timezone)) - ) && - ( - this.CurrentUtcTime == input.CurrentUtcTime || - (this.CurrentUtcTime != null && - this.CurrentUtcTime.Equals(input.CurrentUtcTime)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.StoreKioskSettings != null) - hashCode = hashCode * 59 + this.StoreKioskSettings.GetHashCode(); - if (this.Timezone != null) - hashCode = hashCode * 59 + this.Timezone.GetHashCode(); - if (this.CurrentUtcTime != null) - hashCode = hashCode * 59 + this.CurrentUtcTime.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 index b04e0814..f311a024 100644 --- a/src/Flipdish/Model/KioskTerminalActionStateChangedEvent.cs +++ b/src/Flipdish/Model/KioskTerminalActionStateChangedEvent.cs @@ -85,8 +85,11 @@ public enum BluetoothTerminalTypeEnum /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -97,7 +100,10 @@ public enum BluetoothTerminalTypeEnum this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -157,6 +163,13 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -164,6 +177,20 @@ public enum BluetoothTerminalTypeEnum [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 /// @@ -181,7 +208,10 @@ public override string ToString() 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(); } @@ -261,10 +291,25 @@ public bool Equals(KioskTerminalActionStateChangedEvent input) (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)) ); } @@ -295,8 +340,14 @@ public override int GetHashCode() 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 index 49131f9b..7a6c3a89 100644 --- a/src/Flipdish/Model/Language.cs +++ b/src/Flipdish/Model/Language.cs @@ -34,11 +34,13 @@ public partial class Language : IEquatable /// ISO 639-1 Language Code. /// Display Order. /// Language Name. - public Language(string languageId = default(string), int? displayOrder = default(int?), string name = default(string)) + /// 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; } /// @@ -62,6 +64,13 @@ public partial class Language : IEquatable [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 /// @@ -73,6 +82,7 @@ public override string ToString() 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(); } @@ -121,6 +131,11 @@ public bool Equals(Language input) this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) + ) && + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) ); } @@ -139,6 +154,8 @@ public override int GetHashCode() 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/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/LineItem.cs b/src/Flipdish/Model/LineItem.cs deleted file mode 100644 index 24d50df6..00000000 --- a/src/Flipdish/Model/LineItem.cs +++ /dev/null @@ -1,249 +0,0 @@ -/* - * Flipdish Open API v1.0 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Collections; -using System.Collections.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 single line item - /// - [DataContract] - public partial class LineItem : IEquatable - { - /// - /// Initializes a new instance of the class. - /// - /// Flipdish Item Id, if unknown leave 'null'. - /// Item Name. - /// Menu section name. - /// External Item Id. - /// Item Quantity. - /// Item Price. - /// Item Notes. - /// Item Option. - /// Other Item Metadata. - public LineItem(int? id = default(int?), string name = default(string), string sectionName = default(string), string externalId = default(string), int? quantity = default(int?), Price price = default(Price), string notes = default(string), List options = default(List), Dictionary metadata = default(Dictionary)) - { - this.Id = id; - this.Name = name; - this.SectionName = sectionName; - this.ExternalId = externalId; - this.Quantity = quantity; - this.Price = price; - this.Notes = notes; - this.Options = options; - this.Metadata = metadata; - } - - /// - /// Flipdish Item Id, if unknown leave 'null' - /// - /// Flipdish Item Id, if unknown leave 'null' - [DataMember(Name="Id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// Item Name - /// - /// Item Name - [DataMember(Name="Name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// Menu section name - /// - /// Menu section name - [DataMember(Name="SectionName", EmitDefaultValue=false)] - public string SectionName { get; set; } - - /// - /// External Item Id - /// - /// External Item Id - [DataMember(Name="ExternalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// Item Quantity - /// - /// Item Quantity - [DataMember(Name="Quantity", EmitDefaultValue=false)] - public int? Quantity { get; set; } - - /// - /// Item Price - /// - /// Item Price - [DataMember(Name="Price", EmitDefaultValue=false)] - public Price Price { get; set; } - - /// - /// Item Notes - /// - /// Item Notes - [DataMember(Name="Notes", EmitDefaultValue=false)] - public string Notes { get; set; } - - /// - /// Item Option - /// - /// Item Option - [DataMember(Name="Options", EmitDefaultValue=false)] - public List Options { get; set; } - - /// - /// Other Item Metadata - /// - /// Other Item Metadata - [DataMember(Name="Metadata", EmitDefaultValue=false)] - public Dictionary Metadata { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LineItem {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" SectionName: ").Append(SectionName).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Quantity: ").Append(Quantity).Append("\n"); - sb.Append(" Price: ").Append(Price).Append("\n"); - sb.Append(" Notes: ").Append(Notes).Append("\n"); - sb.Append(" Options: ").Append(Options).Append("\n"); - sb.Append(" Metadata: ").Append(Metadata).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LineItem); - } - - /// - /// Returns true if LineItem instances are equal - /// - /// Instance of LineItem to be compared - /// Boolean - public bool Equals(LineItem 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.SectionName == input.SectionName || - (this.SectionName != null && - this.SectionName.Equals(input.SectionName)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - this.Quantity == input.Quantity || - (this.Quantity != null && - this.Quantity.Equals(input.Quantity)) - ) && - ( - this.Price == input.Price || - (this.Price != null && - this.Price.Equals(input.Price)) - ) && - ( - this.Notes == input.Notes || - (this.Notes != null && - this.Notes.Equals(input.Notes)) - ) && - ( - this.Options == input.Options || - this.Options != null && - this.Options.SequenceEqual(input.Options) - ) && - ( - this.Metadata == input.Metadata || - this.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ); - } - - /// - /// 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.SectionName != null) - hashCode = hashCode * 59 + this.SectionName.GetHashCode(); - if (this.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Quantity != null) - hashCode = hashCode * 59 + this.Quantity.GetHashCode(); - if (this.Price != null) - hashCode = hashCode * 59 + this.Price.GetHashCode(); - if (this.Notes != null) - hashCode = hashCode * 59 + this.Notes.GetHashCode(); - if (this.Options != null) - hashCode = hashCode * 59 + this.Options.GetHashCode(); - if (this.Metadata != null) - hashCode = hashCode * 59 + this.Metadata.GetHashCode(); - return hashCode; - } - } - } - -} diff --git a/src/Flipdish/Model/LineItemOption.cs b/src/Flipdish/Model/LineItemOption.cs deleted file mode 100644 index 4fd60265..00000000 --- a/src/Flipdish/Model/LineItemOption.cs +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Flipdish Open API v1.0 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Collections; -using System.Collections.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 single line item option - /// - [DataContract] - public partial class LineItemOption : IEquatable - { - /// - /// Initializes a new instance of the class. - /// - /// Flipdish Item Option Id, if unknown leave 'null'. - /// External Item Option Id. - /// External Item Option Name. - /// External Item Option Price. - /// Other Item Metadata. - public LineItemOption(int? id = default(int?), string externalId = default(string), string name = default(string), Price price = default(Price), Dictionary metadata = default(Dictionary)) - { - this.Id = id; - this.ExternalId = externalId; - this.Name = name; - this.Price = price; - this.Metadata = metadata; - } - - /// - /// Flipdish Item Option Id, if unknown leave 'null' - /// - /// Flipdish Item Option Id, if unknown leave 'null' - [DataMember(Name="Id", EmitDefaultValue=false)] - public int? Id { get; set; } - - /// - /// External Item Option Id - /// - /// External Item Option Id - [DataMember(Name="ExternalId", EmitDefaultValue=false)] - public string ExternalId { get; set; } - - /// - /// External Item Option Name - /// - /// External Item Option Name - [DataMember(Name="Name", EmitDefaultValue=false)] - public string Name { get; set; } - - /// - /// External Item Option Price - /// - /// External Item Option Price - [DataMember(Name="Price", EmitDefaultValue=false)] - public Price Price { get; set; } - - /// - /// Other Item Metadata - /// - /// Other Item Metadata - [DataMember(Name="Metadata", EmitDefaultValue=false)] - public Dictionary Metadata { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class LineItemOption {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" ExternalId: ").Append(ExternalId).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Price: ").Append(Price).Append("\n"); - sb.Append(" Metadata: ").Append(Metadata).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as LineItemOption); - } - - /// - /// Returns true if LineItemOption instances are equal - /// - /// Instance of LineItemOption to be compared - /// Boolean - public bool Equals(LineItemOption input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.ExternalId == input.ExternalId || - (this.ExternalId != null && - this.ExternalId.Equals(input.ExternalId)) - ) && - ( - 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.Metadata == input.Metadata || - this.Metadata != null && - this.Metadata.SequenceEqual(input.Metadata) - ); - } - - /// - /// 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.ExternalId != null) - hashCode = hashCode * 59 + this.ExternalId.GetHashCode(); - if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.Price != null) - hashCode = hashCode * 59 + this.Price.GetHashCode(); - if (this.Metadata != null) - hashCode = hashCode * 59 + this.Metadata.GetHashCode(); - return hashCode; - } - } - } - -} diff --git a/src/Flipdish/Model/Location.cs b/src/Flipdish/Model/Location.cs deleted file mode 100644 index 2edbc8ae..00000000 --- a/src/Flipdish/Model/Location.cs +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Flipdish Open API v1.0 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using SwaggerDateConverter = Flipdish.Client.SwaggerDateConverter; - -namespace Flipdish.Model -{ - /// - /// Location to deliver to - /// - [DataContract] - public partial class Location : IEquatable - { - /// - /// Initializes a new instance of the class. - /// - /// Line 1 of the address. - /// Line 2 of the address. - /// Formatted Address. - /// Postal / Zip Code. - /// City to deliver to. - /// Coordinates to deliver to. - /// Notes for delivery. - public Location(string addressLine1 = default(string), string addressLine2 = default(string), string formattedAddress = default(string), string postalCode = default(string), string city = default(string), Coordinates coordinates = default(Coordinates), string notes = default(string)) - { - this.AddressLine1 = addressLine1; - this.AddressLine2 = addressLine2; - this.FormattedAddress = formattedAddress; - this.PostalCode = postalCode; - this.City = city; - this.Coordinates = coordinates; - this.Notes = notes; - } - - /// - /// Line 1 of the address - /// - /// Line 1 of the address - [DataMember(Name="AddressLine1", EmitDefaultValue=false)] - public string AddressLine1 { get; set; } - - /// - /// Line 2 of the address - /// - /// Line 2 of the address - [DataMember(Name="AddressLine2", EmitDefaultValue=false)] - public string AddressLine2 { get; set; } - - /// - /// Formatted Address - /// - /// Formatted Address - [DataMember(Name="FormattedAddress", EmitDefaultValue=false)] - public string FormattedAddress { get; set; } - - /// - /// Postal / Zip Code - /// - /// Postal / Zip Code - [DataMember(Name="PostalCode", EmitDefaultValue=false)] - public string PostalCode { get; set; } - - /// - /// City to deliver to - /// - /// City to deliver to - [DataMember(Name="City", EmitDefaultValue=false)] - public string City { get; set; } - - /// - /// Coordinates to deliver to - /// - /// Coordinates to deliver to - [DataMember(Name="Coordinates", EmitDefaultValue=false)] - public Coordinates Coordinates { get; set; } - - /// - /// Notes for delivery - /// - /// Notes for delivery - [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 Location {\n"); - sb.Append(" AddressLine1: ").Append(AddressLine1).Append("\n"); - sb.Append(" AddressLine2: ").Append(AddressLine2).Append("\n"); - sb.Append(" FormattedAddress: ").Append(FormattedAddress).Append("\n"); - sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); - sb.Append(" City: ").Append(City).Append("\n"); - sb.Append(" Coordinates: ").Append(Coordinates).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 Location); - } - - /// - /// Returns true if Location instances are equal - /// - /// Instance of Location to be compared - /// Boolean - public bool Equals(Location input) - { - if (input == null) - return false; - - return - ( - this.AddressLine1 == input.AddressLine1 || - (this.AddressLine1 != null && - this.AddressLine1.Equals(input.AddressLine1)) - ) && - ( - this.AddressLine2 == input.AddressLine2 || - (this.AddressLine2 != null && - this.AddressLine2.Equals(input.AddressLine2)) - ) && - ( - this.FormattedAddress == input.FormattedAddress || - (this.FormattedAddress != null && - this.FormattedAddress.Equals(input.FormattedAddress)) - ) && - ( - this.PostalCode == input.PostalCode || - (this.PostalCode != null && - this.PostalCode.Equals(input.PostalCode)) - ) && - ( - this.City == input.City || - (this.City != null && - this.City.Equals(input.City)) - ) && - ( - this.Coordinates == input.Coordinates || - (this.Coordinates != null && - this.Coordinates.Equals(input.Coordinates)) - ) && - ( - 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.AddressLine1 != null) - hashCode = hashCode * 59 + this.AddressLine1.GetHashCode(); - if (this.AddressLine2 != null) - hashCode = hashCode * 59 + this.AddressLine2.GetHashCode(); - if (this.FormattedAddress != null) - hashCode = hashCode * 59 + this.FormattedAddress.GetHashCode(); - if (this.PostalCode != null) - hashCode = hashCode * 59 + this.PostalCode.GetHashCode(); - if (this.City != null) - hashCode = hashCode * 59 + this.City.GetHashCode(); - if (this.Coordinates != null) - hashCode = hashCode * 59 + this.Coordinates.GetHashCode(); - if (this.Notes != null) - hashCode = hashCode * 59 + this.Notes.GetHashCode(); - return hashCode; - } - } - } - -} diff --git a/src/Flipdish/Model/LocationAreaCreatedEvent.cs b/src/Flipdish/Model/LocationAreaCreatedEvent.cs index a03b490b..9683a641 100644 --- a/src/Flipdish/Model/LocationAreaCreatedEvent.cs +++ b/src/Flipdish/Model/LocationAreaCreatedEvent.cs @@ -39,8 +39,11 @@ public partial class LocationAreaCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class LocationAreaCreatedEvent : IEquatable @@ -109,6 +115,13 @@ public partial class LocationAreaCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -116,6 +129,20 @@ public partial class LocationAreaCreatedEvent : IEquatable + /// 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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(LocationAreaCreatedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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/LocationAreaUpdatedEvent.cs b/src/Flipdish/Model/LocationAreaUpdatedEvent.cs index 1663aed1..8d0f56b2 100644 --- a/src/Flipdish/Model/LocationAreaUpdatedEvent.cs +++ b/src/Flipdish/Model/LocationAreaUpdatedEvent.cs @@ -39,8 +39,11 @@ public partial class LocationAreaUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class LocationAreaUpdatedEvent : IEquatable @@ -109,6 +115,13 @@ public partial class LocationAreaUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -116,6 +129,20 @@ public partial class LocationAreaUpdatedEvent : IEquatable + /// 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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(LocationAreaUpdatedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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/LocationCreatedEvent.cs b/src/Flipdish/Model/LocationCreatedEvent.cs index 3c7bda38..84ab5050 100644 --- a/src/Flipdish/Model/LocationCreatedEvent.cs +++ b/src/Flipdish/Model/LocationCreatedEvent.cs @@ -41,8 +41,11 @@ public partial class LocationCreatedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -54,7 +57,10 @@ public partial class LocationCreatedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -127,6 +133,13 @@ public partial class LocationCreatedEvent : IEquatable [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 /// @@ -134,6 +147,20 @@ public partial class LocationCreatedEvent : IEquatable [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 /// @@ -152,7 +179,10 @@ public override string ToString() 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(); } @@ -237,10 +267,25 @@ public bool Equals(LocationCreatedEvent input) (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)) ); } @@ -273,8 +318,14 @@ public override int GetHashCode() 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 index 657c2e81..ea55fa9a 100644 --- a/src/Flipdish/Model/LocationDeletedEvent.cs +++ b/src/Flipdish/Model/LocationDeletedEvent.cs @@ -41,8 +41,11 @@ public partial class LocationDeletedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -54,7 +57,10 @@ public partial class LocationDeletedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -127,6 +133,13 @@ public partial class LocationDeletedEvent : IEquatable [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 /// @@ -134,6 +147,20 @@ public partial class LocationDeletedEvent : IEquatable [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 /// @@ -152,7 +179,10 @@ public override string ToString() 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(); } @@ -237,10 +267,25 @@ public bool Equals(LocationDeletedEvent input) (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)) ); } @@ -273,8 +318,14 @@ public override int GetHashCode() 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/LoyaltyCampaign.cs b/src/Flipdish/Model/LoyaltyCampaign.cs index 0b1d0fcc..2655a0b0 100644 --- a/src/Flipdish/Model/LoyaltyCampaign.cs +++ b/src/Flipdish/Model/LoyaltyCampaign.cs @@ -34,8 +34,10 @@ public partial class LoyaltyCampaign : IEquatable /// 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.. @@ -44,13 +46,17 @@ public partial class LoyaltyCampaign : IEquatable /// Campaign will apply to existing orders. /// Is campaign enabled. /// Ids of stores this campaign applies to. - public LoyaltyCampaign(int? campaignId = default(int?), CampaignStatistics statistics = default(CampaignStatistics), List stores = default(List), int? ordersBeforeReceivingVoucher = default(int?), int? percentDiscountAmount = default(int?), 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)) + /// 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; @@ -59,6 +65,8 @@ public partial class LoyaltyCampaign : IEquatable this.IncludeExistingOrders = includeExistingOrders; this.IsEnabled = isEnabled; this.StoreIds = storeIds; + this.AppId = appId; + this.ForceDiscount = forceDiscount; } /// @@ -82,6 +90,13 @@ public partial class LoyaltyCampaign : IEquatable [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 /// @@ -96,6 +111,13 @@ public partial class LoyaltyCampaign : IEquatable [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 /// @@ -152,6 +174,20 @@ public partial class LoyaltyCampaign : IEquatable [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 /// @@ -163,8 +199,10 @@ public override string ToString() 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"); @@ -173,6 +211,8 @@ public override string ToString() 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(); } @@ -222,6 +262,11 @@ public bool Equals(LoyaltyCampaign input) 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 && @@ -232,6 +277,11 @@ public bool Equals(LoyaltyCampaign input) (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 && @@ -271,6 +321,16 @@ public bool Equals(LoyaltyCampaign input) 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)) ); } @@ -289,10 +349,14 @@ public override int GetHashCode() 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) @@ -309,6 +373,10 @@ public override int GetHashCode() 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 index 2d2e92d0..4aadb768 100644 --- a/src/Flipdish/Model/LoyaltyCampaignBase.cs +++ b/src/Flipdish/Model/LoyaltyCampaignBase.cs @@ -33,6 +33,7 @@ public partial class LoyaltyCampaignBase : IEquatable /// /// 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.. @@ -41,10 +42,13 @@ public partial class LoyaltyCampaignBase : IEquatable /// Campaign will apply to existing orders. /// Is campaign enabled. /// Ids of stores this campaign applies to. - public LoyaltyCampaignBase(int? ordersBeforeReceivingVoucher = default(int?), int? percentDiscountAmount = default(int?), 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)) + /// 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; @@ -53,6 +57,8 @@ public partial class LoyaltyCampaignBase : IEquatable this.IncludeExistingOrders = includeExistingOrders; this.IsEnabled = isEnabled; this.StoreIds = storeIds; + this.AppId = appId; + this.ForceDiscount = forceDiscount; } /// @@ -69,6 +75,13 @@ public partial class LoyaltyCampaignBase : IEquatable [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 /// @@ -125,6 +138,20 @@ public partial class LoyaltyCampaignBase : IEquatable [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 /// @@ -135,6 +162,7 @@ public override string ToString() 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"); @@ -143,6 +171,8 @@ public override string ToString() 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(); } @@ -187,6 +217,11 @@ public bool Equals(LoyaltyCampaignBase input) (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 && @@ -226,6 +261,16 @@ public bool Equals(LoyaltyCampaignBase input) 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)) ); } @@ -242,6 +287,8 @@ public override int GetHashCode() 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) @@ -258,6 +305,10 @@ public override int GetHashCode() 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 index 00e183f6..5d856ca8 100644 --- a/src/Flipdish/Model/LoyaltyCampaignCreatedEvent.cs +++ b/src/Flipdish/Model/LoyaltyCampaignCreatedEvent.cs @@ -40,8 +40,11 @@ public partial class LoyaltyCampaignCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class LoyaltyCampaignCreatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class LoyaltyCampaignCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class LoyaltyCampaignCreatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(LoyaltyCampaignCreatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 2d358cba..8c089df1 100644 --- a/src/Flipdish/Model/LoyaltyCampaignDeletedEvent.cs +++ b/src/Flipdish/Model/LoyaltyCampaignDeletedEvent.cs @@ -40,8 +40,11 @@ public partial class LoyaltyCampaignDeletedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class LoyaltyCampaignDeletedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class LoyaltyCampaignDeletedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class LoyaltyCampaignDeletedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(LoyaltyCampaignDeletedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 1e2a8c9d..f2c029c1 100644 --- a/src/Flipdish/Model/LoyaltyCampaignUpdatedEvent.cs +++ b/src/Flipdish/Model/LoyaltyCampaignUpdatedEvent.cs @@ -40,8 +40,11 @@ public partial class LoyaltyCampaignUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class LoyaltyCampaignUpdatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class LoyaltyCampaignUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class LoyaltyCampaignUpdatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(LoyaltyCampaignUpdatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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/Menu.cs b/src/Flipdish/Model/Menu.cs index c30f93ce..a423dd40 100644 --- a/src/Flipdish/Model/Menu.cs +++ b/src/Flipdish/Model/Menu.cs @@ -94,10 +94,12 @@ public enum TaxTypeEnum /// 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. - 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), bool? displaySectionLinks = default(bool?), MenuSectionBehaviourEnum? menuSectionBehaviour = default(MenuSectionBehaviourEnum?), TaxTypeEnum? taxType = default(TaxTypeEnum?)) + /// 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; @@ -108,9 +110,11 @@ public enum TaxTypeEnum this.Locked = locked; this.MenuSections = menuSections; this.TaxRates = taxRates; + this.AppId = appId; this.DisplaySectionLinks = displaySectionLinks; this.MenuSectionBehaviour = menuSectionBehaviour; this.TaxType = taxType; + this.IsIntegrated = isIntegrated; } /// @@ -176,6 +180,13 @@ public enum TaxTypeEnum [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 /// @@ -185,6 +196,13 @@ public enum TaxTypeEnum + /// + /// 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 /// @@ -202,9 +220,11 @@ public override string ToString() 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(); } @@ -284,6 +304,11 @@ public bool Equals(Menu input) 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 && @@ -298,6 +323,11 @@ public bool Equals(Menu input) this.TaxType == input.TaxType || (this.TaxType != null && this.TaxType.Equals(input.TaxType)) + ) && + ( + this.IsIntegrated == input.IsIntegrated || + (this.IsIntegrated != null && + this.IsIntegrated.Equals(input.IsIntegrated)) ); } @@ -328,12 +358,16 @@ public override int GetHashCode() 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 index 08147132..e0b52b8d 100644 --- a/src/Flipdish/Model/MenuBase.cs +++ b/src/Flipdish/Model/MenuBase.cs @@ -88,11 +88,13 @@ public enum TaxTypeEnum /// Display menu section link on UI. /// Menu section behaviour. /// Tax type. - public MenuBase(bool? displaySectionLinks = default(bool?), MenuSectionBehaviourEnum? menuSectionBehaviour = default(MenuSectionBehaviourEnum?), TaxTypeEnum? taxType = default(TaxTypeEnum?)) + /// 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; } /// @@ -104,6 +106,13 @@ public enum TaxTypeEnum + /// + /// 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 /// @@ -115,6 +124,7 @@ public override string ToString() 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(); } @@ -163,6 +173,11 @@ public bool Equals(MenuBase input) this.TaxType == input.TaxType || (this.TaxType != null && this.TaxType.Equals(input.TaxType)) + ) && + ( + this.IsIntegrated == input.IsIntegrated || + (this.IsIntegrated != null && + this.IsIntegrated.Equals(input.IsIntegrated)) ); } @@ -181,6 +196,8 @@ public override int GetHashCode() 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 index d9f757b4..72133908 100644 --- a/src/Flipdish/Model/MenuBulkEditEvent.cs +++ b/src/Flipdish/Model/MenuBulkEditEvent.cs @@ -43,8 +43,11 @@ public partial class MenuBulkEditEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -58,7 +61,10 @@ public partial class MenuBulkEditEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -145,6 +151,13 @@ public partial class MenuBulkEditEvent : IEquatable [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 /// @@ -152,6 +165,20 @@ public partial class MenuBulkEditEvent : IEquatable [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 /// @@ -172,7 +199,10 @@ public override string ToString() 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(); } @@ -267,10 +297,25 @@ public bool Equals(MenuBulkEditEvent input) (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)) ); } @@ -307,8 +352,14 @@ public override int GetHashCode() 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/MenuCheckpointCreatedEvent.cs b/src/Flipdish/Model/MenuCheckpointCreatedEvent.cs index 841f7d96..df7d2e38 100644 --- a/src/Flipdish/Model/MenuCheckpointCreatedEvent.cs +++ b/src/Flipdish/Model/MenuCheckpointCreatedEvent.cs @@ -40,8 +40,11 @@ public partial class MenuCheckpointCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class MenuCheckpointCreatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class MenuCheckpointCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class MenuCheckpointCreatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(MenuCheckpointCreatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index b49c0a48..b5731cf3 100644 --- a/src/Flipdish/Model/MenuCreatedEvent.cs +++ b/src/Flipdish/Model/MenuCreatedEvent.cs @@ -39,8 +39,11 @@ public partial class MenuCreatedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class MenuCreatedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -109,6 +115,13 @@ public partial class MenuCreatedEvent : IEquatable [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 /// @@ -116,6 +129,20 @@ public partial class MenuCreatedEvent : IEquatable [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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(MenuCreatedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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/MenuItemOptionSetBase.cs b/src/Flipdish/Model/MenuItemOptionSetBase.cs index 9a5f4574..05850ab0 100644 --- a/src/Flipdish/Model/MenuItemOptionSetBase.cs +++ b/src/Flipdish/Model/MenuItemOptionSetBase.cs @@ -76,7 +76,8 @@ public enum CellLayoutTypeEnum /// Minimum items must be selected. /// Maximum number of items can be selected. /// Small | Medium | Large Affects the layout of the menu.. - 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?)) + /// 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; @@ -84,6 +85,7 @@ public enum CellLayoutTypeEnum this.MinSelectCount = minSelectCount; this.MaxSelectCount = maxSelectCount; this.CellLayoutType = cellLayoutType; + this.PublicId = publicId; } /// @@ -122,6 +124,13 @@ public enum CellLayoutTypeEnum 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 /// @@ -136,6 +145,7 @@ public override string ToString() 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(); } @@ -199,6 +209,11 @@ public bool Equals(MenuItemOptionSetBase input) this.CellLayoutType == input.CellLayoutType || (this.CellLayoutType != null && this.CellLayoutType.Equals(input.CellLayoutType)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) ); } @@ -223,6 +238,8 @@ public override int GetHashCode() 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 index a6cc0e6f..2a94f577 100644 --- a/src/Flipdish/Model/MenuItemOptionSetCreatedEvent.cs +++ b/src/Flipdish/Model/MenuItemOptionSetCreatedEvent.cs @@ -40,8 +40,11 @@ public partial class MenuItemOptionSetCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class MenuItemOptionSetCreatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class MenuItemOptionSetCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class MenuItemOptionSetCreatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(MenuItemOptionSetCreatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 7f2d0d09..91d78ee1 100644 --- a/src/Flipdish/Model/MenuItemOptionSetDeletedEvent.cs +++ b/src/Flipdish/Model/MenuItemOptionSetDeletedEvent.cs @@ -40,8 +40,11 @@ public partial class MenuItemOptionSetDeletedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class MenuItemOptionSetDeletedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class MenuItemOptionSetDeletedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class MenuItemOptionSetDeletedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(MenuItemOptionSetDeletedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 6604f9c7..acf15fcb 100644 --- a/src/Flipdish/Model/MenuItemOptionSetItem.cs +++ b/src/Flipdish/Model/MenuItemOptionSetItem.cs @@ -76,15 +76,16 @@ public enum CellLayoutTypeEnum /// 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. + /// 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?), bool? isAvailable = default(bool?), int? displayOrder = default(int?), CellLayoutTypeEnum? cellLayoutType = default(CellLayoutTypeEnum?), string imageUrl = default(string)) + 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; @@ -96,6 +97,7 @@ public enum CellLayoutTypeEnum this.TaxValue = taxValue; this.Name = name; this.Price = price; + this.DepositReturnFee = depositReturnFee; this.IsAvailable = isAvailable; this.DisplayOrder = displayOrder; this.CellLayoutType = cellLayoutType; @@ -145,14 +147,16 @@ public enum CellLayoutTypeEnum public string TaxRateName { get; set; } /// - /// Gets or Sets TaxRateId + /// TaxRateId. /// + /// TaxRateId. [DataMember(Name="TaxRateId", EmitDefaultValue=false)] public int? TaxRateId { get; set; } /// - /// Gets or Sets TaxValue + /// TaxValue. /// + /// TaxValue. [DataMember(Name="TaxValue", EmitDefaultValue=false)] public double? TaxValue { get; set; } @@ -170,6 +174,13 @@ public enum CellLayoutTypeEnum [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 /// @@ -210,6 +221,7 @@ public override string ToString() 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"); @@ -298,6 +310,11 @@ public bool Equals(MenuItemOptionSetItem input) (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 && @@ -349,6 +366,8 @@ public override int GetHashCode() 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) diff --git a/src/Flipdish/Model/MenuItemOptionSetItemBase.cs b/src/Flipdish/Model/MenuItemOptionSetItemBase.cs index da49dcc4..9fbc286c 100644 --- a/src/Flipdish/Model/MenuItemOptionSetItemBase.cs +++ b/src/Flipdish/Model/MenuItemOptionSetItemBase.cs @@ -72,18 +72,22 @@ public enum CellLayoutTypeEnum /// /// 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 MenuItemOptionSetItemBase(string name = default(string), double? price = default(double?), bool? isAvailable = default(bool?), int? displayOrder = default(int?), CellLayoutTypeEnum? cellLayoutType = default(CellLayoutTypeEnum?), string imageUrl = default(string)) + /// 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; } /// @@ -100,6 +104,13 @@ public enum CellLayoutTypeEnum [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 /// @@ -122,6 +133,13 @@ public enum CellLayoutTypeEnum [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 /// @@ -132,10 +150,12 @@ public override string ToString() 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(); } @@ -180,6 +200,11 @@ public bool Equals(MenuItemOptionSetItemBase input) (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 && @@ -199,6 +224,11 @@ public bool Equals(MenuItemOptionSetItemBase input) this.ImageUrl == input.ImageUrl || (this.ImageUrl != null && this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) ); } @@ -215,6 +245,8 @@ public override int GetHashCode() 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) @@ -223,6 +255,8 @@ public override int GetHashCode() 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 index 9c9c3943..1fe0ba5b 100644 --- a/src/Flipdish/Model/MenuItemOptionSetItemCreatedEvent.cs +++ b/src/Flipdish/Model/MenuItemOptionSetItemCreatedEvent.cs @@ -40,8 +40,11 @@ public partial class MenuItemOptionSetItemCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class MenuItemOptionSetItemCreatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class MenuItemOptionSetItemCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class MenuItemOptionSetItemCreatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(MenuItemOptionSetItemCreatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index af81eb56..de145524 100644 --- a/src/Flipdish/Model/MenuItemOptionSetItemDeletedEvent.cs +++ b/src/Flipdish/Model/MenuItemOptionSetItemDeletedEvent.cs @@ -40,8 +40,11 @@ public partial class MenuItemOptionSetItemDeletedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class MenuItemOptionSetItemDeletedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class MenuItemOptionSetItemDeletedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class MenuItemOptionSetItemDeletedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(MenuItemOptionSetItemDeletedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 0c2b198d..408ce3d1 100644 --- a/src/Flipdish/Model/MenuItemOptionSetItemUpdatedEvent.cs +++ b/src/Flipdish/Model/MenuItemOptionSetItemUpdatedEvent.cs @@ -40,8 +40,11 @@ public partial class MenuItemOptionSetItemUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class MenuItemOptionSetItemUpdatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class MenuItemOptionSetItemUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class MenuItemOptionSetItemUpdatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(MenuItemOptionSetItemUpdatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 18bb0d96..7c355012 100644 --- a/src/Flipdish/Model/MenuItemOptionSetUpdatedEvent.cs +++ b/src/Flipdish/Model/MenuItemOptionSetUpdatedEvent.cs @@ -40,8 +40,11 @@ public partial class MenuItemOptionSetUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class MenuItemOptionSetUpdatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class MenuItemOptionSetUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class MenuItemOptionSetUpdatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(MenuItemOptionSetUpdatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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/MenuSectionBase.cs b/src/Flipdish/Model/MenuSectionBase.cs index 77c983b7..acd2a6ee 100644 --- a/src/Flipdish/Model/MenuSectionBase.cs +++ b/src/Flipdish/Model/MenuSectionBase.cs @@ -38,7 +38,8 @@ public partial class MenuSectionBase : IEquatable /// Is hidden from customer. Perhaps when the item is out of stock.. /// Image url. /// Menu Section Id. - 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?)) + /// 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; @@ -47,6 +48,7 @@ public partial class MenuSectionBase : IEquatable this.IsHiddenFromCustomers = isHiddenFromCustomers; this.ImageUrl = imageUrl; this.MenuSectionId = menuSectionId; + this.PublicId = publicId; } /// @@ -98,6 +100,13 @@ public partial class MenuSectionBase : IEquatable [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 /// @@ -113,6 +122,7 @@ public override string ToString() 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(); } @@ -181,6 +191,11 @@ public bool Equals(MenuSectionBase input) this.MenuSectionId == input.MenuSectionId || (this.MenuSectionId != null && this.MenuSectionId.Equals(input.MenuSectionId)) + ) && + ( + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) ); } @@ -207,6 +222,8 @@ public override int GetHashCode() 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 index 5b2bc4fa..39e98482 100644 --- a/src/Flipdish/Model/MenuSectionCreatedEvent.cs +++ b/src/Flipdish/Model/MenuSectionCreatedEvent.cs @@ -40,8 +40,11 @@ public partial class MenuSectionCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class MenuSectionCreatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class MenuSectionCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class MenuSectionCreatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(MenuSectionCreatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index bca6724b..7dbb1a4b 100644 --- a/src/Flipdish/Model/MenuSectionDeletedEvent.cs +++ b/src/Flipdish/Model/MenuSectionDeletedEvent.cs @@ -40,8 +40,11 @@ public partial class MenuSectionDeletedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class MenuSectionDeletedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class MenuSectionDeletedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class MenuSectionDeletedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(MenuSectionDeletedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 12a189c0..07a4af9c 100644 --- a/src/Flipdish/Model/MenuSectionItem.cs +++ b/src/Flipdish/Model/MenuSectionItem.cs @@ -109,7 +109,6 @@ public enum CellLayoutTypeEnum /// /// Initializes a new instance of the class. /// - /// Menu item identifier. This ID may change at any time. Use `PublicId` if you need a permanent reference to the item.. /// Actual price - the minimum price possible when all required option set items prices are included.. /// Menu item option sets. /// Daily special hours. @@ -117,12 +116,14 @@ public enum CellLayoutTypeEnum /// 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. @@ -130,9 +131,9 @@ public enum CellLayoutTypeEnum /// If true, then vouchers won't be applied for this item. /// Image url. /// Image url. - public MenuSectionItem(int? menuItemId = default(int?), 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?), List metadata = default(List), string catalogItemId = default(string), string name = default(string), string description = default(string), SpicinessRatingEnum? spicinessRating = default(SpicinessRatingEnum?), double? price = 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)) + /// 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.MenuItemId = menuItemId; this.ActualPrice = actualPrice; this.MenuItemOptionSets = menuItemOptionSets; this.DailySpecialHours = dailySpecialHours; @@ -140,12 +141,14 @@ public enum CellLayoutTypeEnum 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; @@ -153,15 +156,9 @@ public enum CellLayoutTypeEnum this.DisableVouchers = disableVouchers; this.ImageName = imageName; this.ImageUrl = imageUrl; + this.MenuItemId = menuItemId; } - /// - /// Menu item identifier. This ID may change at any time. Use `PublicId` if you need a permanent reference to the item. - /// - /// Menu item identifier. This ID may change at any time. Use `PublicId` if you need a permanent reference to the item. - [DataMember(Name="MenuItemId", EmitDefaultValue=false)] - public int? MenuItemId { get; set; } - /// /// Actual price - the minimum price possible when all required option set items prices are included. /// @@ -211,6 +208,13 @@ public enum CellLayoutTypeEnum [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 /// @@ -247,6 +251,13 @@ public enum CellLayoutTypeEnum [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 /// @@ -290,6 +301,13 @@ public enum CellLayoutTypeEnum [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 /// @@ -298,7 +316,6 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class MenuSectionItem {\n"); - sb.Append(" MenuItemId: ").Append(MenuItemId).Append("\n"); sb.Append(" ActualPrice: ").Append(ActualPrice).Append("\n"); sb.Append(" MenuItemOptionSets: ").Append(MenuItemOptionSets).Append("\n"); sb.Append(" DailySpecialHours: ").Append(DailySpecialHours).Append("\n"); @@ -306,12 +323,14 @@ public override string ToString() 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"); @@ -319,6 +338,7 @@ public override string ToString() 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(); } @@ -353,11 +373,6 @@ public bool Equals(MenuSectionItem input) return false; return - ( - this.MenuItemId == input.MenuItemId || - (this.MenuItemId != null && - this.MenuItemId.Equals(input.MenuItemId)) - ) && ( this.ActualPrice == input.ActualPrice || (this.ActualPrice != null && @@ -393,6 +408,11 @@ public bool Equals(MenuSectionItem input) (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 && @@ -423,6 +443,11 @@ public bool Equals(MenuSectionItem input) (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 && @@ -457,6 +482,11 @@ public bool Equals(MenuSectionItem input) this.ImageUrl == input.ImageUrl || (this.ImageUrl != null && this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.MenuItemId == input.MenuItemId || + (this.MenuItemId != null && + this.MenuItemId.Equals(input.MenuItemId)) ); } @@ -469,8 +499,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.MenuItemId != null) - hashCode = hashCode * 59 + this.MenuItemId.GetHashCode(); if (this.ActualPrice != null) hashCode = hashCode * 59 + this.ActualPrice.GetHashCode(); if (this.MenuItemOptionSets != null) @@ -485,6 +513,8 @@ public override int GetHashCode() 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) @@ -497,6 +527,8 @@ public override int GetHashCode() 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) @@ -511,6 +543,8 @@ public override int GetHashCode() 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 index 7ceb9d90..52e6cb53 100644 --- a/src/Flipdish/Model/MenuSectionItemBase.cs +++ b/src/Flipdish/Model/MenuSectionItemBase.cs @@ -113,6 +113,7 @@ public enum CellLayoutTypeEnum /// 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. @@ -121,12 +122,15 @@ public enum CellLayoutTypeEnum /// Image url. /// Image url. /// Menu Item Id. - public MenuSectionItemBase(string name = default(string), string description = default(string), SpicinessRatingEnum? spicinessRating = default(SpicinessRatingEnum?), double? price = 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?)) + /// 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; @@ -135,6 +139,8 @@ public enum CellLayoutTypeEnum this.ImageName = imageName; this.ImageUrl = imageUrl; this.MenuItemId = menuItemId; + this.ExcludeFromVoucherDiscounting = excludeFromVoucherDiscounting; + this.PublicId = publicId; } /// @@ -159,6 +165,13 @@ public enum CellLayoutTypeEnum [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 /// @@ -209,6 +222,20 @@ public enum CellLayoutTypeEnum [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 /// @@ -221,6 +248,7 @@ public override string ToString() 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"); @@ -229,6 +257,8 @@ public override string ToString() 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(); } @@ -283,6 +313,11 @@ public bool Equals(MenuSectionItemBase input) (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 && @@ -322,6 +357,16 @@ public bool Equals(MenuSectionItemBase input) 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)) ); } @@ -342,6 +387,8 @@ public override int GetHashCode() 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) @@ -358,6 +405,10 @@ public override int GetHashCode() 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 index bb0c9d3f..09522014 100644 --- a/src/Flipdish/Model/MenuSectionItemCreatedEvent.cs +++ b/src/Flipdish/Model/MenuSectionItemCreatedEvent.cs @@ -40,8 +40,11 @@ public partial class MenuSectionItemCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class MenuSectionItemCreatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class MenuSectionItemCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class MenuSectionItemCreatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(MenuSectionItemCreatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 1444f487..d97f6214 100644 --- a/src/Flipdish/Model/MenuSectionItemDeletedEvent.cs +++ b/src/Flipdish/Model/MenuSectionItemDeletedEvent.cs @@ -40,8 +40,11 @@ public partial class MenuSectionItemDeletedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class MenuSectionItemDeletedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class MenuSectionItemDeletedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class MenuSectionItemDeletedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(MenuSectionItemDeletedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 022d7e46..6efa9df4 100644 --- a/src/Flipdish/Model/MenuSectionItemUpdatedEvent.cs +++ b/src/Flipdish/Model/MenuSectionItemUpdatedEvent.cs @@ -40,8 +40,11 @@ public partial class MenuSectionItemUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class MenuSectionItemUpdatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class MenuSectionItemUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class MenuSectionItemUpdatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(MenuSectionItemUpdatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index d04495ce..ef49d623 100644 --- a/src/Flipdish/Model/MenuSectionUpdatedEvent.cs +++ b/src/Flipdish/Model/MenuSectionUpdatedEvent.cs @@ -40,8 +40,11 @@ public partial class MenuSectionUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class MenuSectionUpdatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class MenuSectionUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class MenuSectionUpdatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(MenuSectionUpdatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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/MenuSummary.cs b/src/Flipdish/Model/MenuSummary.cs index c1b573dc..5d7100f1 100644 --- a/src/Flipdish/Model/MenuSummary.cs +++ b/src/Flipdish/Model/MenuSummary.cs @@ -34,17 +34,21 @@ public partial class MenuSummary : IEquatable /// 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. - public MenuSummary(int? menuId = default(int?), DateTime? modifiedTime = default(DateTime?), int? versionNumber = default(int?), string name = default(string), bool? locked = default(bool?), List storeNames = default(List)) + /// 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; } /// @@ -68,6 +72,13 @@ public partial class MenuSummary : IEquatable [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 /// @@ -89,6 +100,13 @@ public partial class MenuSummary : IEquatable [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 /// @@ -100,9 +118,11 @@ public override string ToString() 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(); } @@ -152,6 +172,11 @@ public bool Equals(MenuSummary input) (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 && @@ -166,6 +191,11 @@ public bool Equals(MenuSummary input) this.StoreNames == input.StoreNames || this.StoreNames != null && this.StoreNames.SequenceEqual(input.StoreNames) + ) && + ( + this.IsIntegrated == input.IsIntegrated || + (this.IsIntegrated != null && + this.IsIntegrated.Equals(input.IsIntegrated)) ); } @@ -184,12 +214,16 @@ public override int GetHashCode() 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/MenuUpdatedEvent.cs b/src/Flipdish/Model/MenuUpdatedEvent.cs index 79d5c6f2..cdaecec1 100644 --- a/src/Flipdish/Model/MenuUpdatedEvent.cs +++ b/src/Flipdish/Model/MenuUpdatedEvent.cs @@ -40,8 +40,11 @@ public partial class MenuUpdatedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class MenuUpdatedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -118,6 +124,13 @@ public partial class MenuUpdatedEvent : IEquatable [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 /// @@ -125,6 +138,20 @@ public partial class MenuUpdatedEvent : IEquatable [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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(MenuUpdatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 9b560823..557e647a 100644 --- a/src/Flipdish/Model/MenuUploadedEvent.cs +++ b/src/Flipdish/Model/MenuUploadedEvent.cs @@ -41,8 +41,11 @@ public partial class MenuUploadedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -54,7 +57,10 @@ public partial class MenuUploadedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -127,6 +133,13 @@ public partial class MenuUploadedEvent : IEquatable [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 /// @@ -134,6 +147,20 @@ public partial class MenuUploadedEvent : IEquatable [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 /// @@ -152,7 +179,10 @@ public override string ToString() 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(); } @@ -237,10 +267,25 @@ public bool Equals(MenuUploadedEvent input) (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)) ); } @@ -273,8 +318,14 @@ public override int GetHashCode() 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/MetafieldDefinition.cs b/src/Flipdish/Model/MetafieldDefinition.cs index 1de8aad5..b74fb72c 100644 --- a/src/Flipdish/Model/MetafieldDefinition.cs +++ b/src/Flipdish/Model/MetafieldDefinition.cs @@ -29,9 +29,9 @@ namespace Flipdish.Model public partial class MetafieldDefinition : IEquatable { /// - /// The Metafield will extend the specified {Flipdish.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} /// - /// The Metafield will extend the specified {Flipdish.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} [JsonConverter(typeof(StringEnumConverter))] public enum OwnerEntityEnum { @@ -56,9 +56,9 @@ public enum OwnerEntityEnum } /// - /// The Metafield will extend the specified {Flipdish.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} /// - /// The Metafield will extend the specified {Flipdish.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} [DataMember(Name="OwnerEntity", EmitDefaultValue=false)] public OwnerEntityEnum? OwnerEntity { get; set; } /// @@ -69,23 +69,29 @@ public enum OwnerEntityEnum public enum ValueTypeEnum { + /// + /// Enum Boolean for value: Boolean + /// + [EnumMember(Value = "Boolean")] + Boolean = 1, + /// /// Enum Json for value: Json /// [EnumMember(Value = "Json")] - Json = 1, + Json = 2, /// /// Enum SingleLineString for value: SingleLineString /// [EnumMember(Value = "SingleLineString")] - SingleLineString = 2, + SingleLineString = 3, /// /// Enum MultiLineString for value: MultiLineString /// [EnumMember(Value = "MultiLineString")] - MultiLineString = 3 + MultiLineString = 4 } /// @@ -130,7 +136,7 @@ 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.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity}. + /// 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). diff --git a/src/Flipdish/Model/MetafieldDefinitionRecommendation.cs b/src/Flipdish/Model/MetafieldDefinitionRecommendation.cs index d3403a8e..fb737703 100644 --- a/src/Flipdish/Model/MetafieldDefinitionRecommendation.cs +++ b/src/Flipdish/Model/MetafieldDefinitionRecommendation.cs @@ -29,9 +29,9 @@ namespace Flipdish.Model public partial class MetafieldDefinitionRecommendation : IEquatable { /// - /// The Metafield will extend the specified {Flipdish.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} /// - /// The Metafield will extend the specified {Flipdish.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} [JsonConverter(typeof(StringEnumConverter))] public enum OwnerEntityEnum { @@ -56,9 +56,9 @@ public enum OwnerEntityEnum } /// - /// The Metafield will extend the specified {Flipdish.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} /// - /// The Metafield will extend the specified {Flipdish.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity} + /// The Metafield will extend the specified {Flipdish.Metafields.PublicModels.V1.MetafieldDefinitionBase.OwnerEntity} [DataMember(Name="OwnerEntity", EmitDefaultValue=false)] public OwnerEntityEnum? OwnerEntity { get; set; } /// @@ -69,23 +69,29 @@ public enum OwnerEntityEnum public enum ValueTypeEnum { + /// + /// Enum Boolean for value: Boolean + /// + [EnumMember(Value = "Boolean")] + Boolean = 1, + /// /// Enum Json for value: Json /// [EnumMember(Value = "Json")] - Json = 1, + Json = 2, /// /// Enum SingleLineString for value: SingleLineString /// [EnumMember(Value = "SingleLineString")] - SingleLineString = 2, + SingleLineString = 3, /// /// Enum MultiLineString for value: MultiLineString /// [EnumMember(Value = "MultiLineString")] - MultiLineString = 3 + MultiLineString = 4 } /// @@ -129,7 +135,7 @@ protected MetafieldDefinitionRecommendation() { } /// /// Initializes a new instance of the class. /// - /// The Metafield will extend the specified {Flipdish.PublicModels.V1.Metafields.MetafieldDefinitionBase.OwnerEntity}. + /// 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). diff --git a/src/Flipdish/Model/MobileAppsStatistics.cs b/src/Flipdish/Model/MobileAppsStatistics.cs index 0ae66398..72534e51 100644 --- a/src/Flipdish/Model/MobileAppsStatistics.cs +++ b/src/Flipdish/Model/MobileAppsStatistics.cs @@ -36,17 +36,23 @@ public partial class MobileAppsStatistics : IEquatable public enum PlatformTypeEnum { + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + /// /// Enum Android for value: Android /// [EnumMember(Value = "Android")] - Android = 1, + Android = 2, /// /// Enum IOS for value: IOS /// [EnumMember(Value = "IOS")] - IOS = 2 + IOS = 3 } /// diff --git a/src/Flipdish/Model/MobileAppsSubmission.cs b/src/Flipdish/Model/MobileAppsSubmission.cs index 2c314740..81c4b7e8 100644 --- a/src/Flipdish/Model/MobileAppsSubmission.cs +++ b/src/Flipdish/Model/MobileAppsSubmission.cs @@ -36,12 +36,13 @@ 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(string appName = default(string), string appDescription = default(string), string appShortDescription = default(string), List keywords = default(List), bool? autoPublish = default(bool?)) + 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) @@ -70,10 +71,18 @@ protected MobileAppsSubmission() { } { 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 /// @@ -117,6 +126,7 @@ 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"); @@ -156,6 +166,11 @@ public bool Equals(MobileAppsSubmission input) return false; return + ( + this.SubmissionId == input.SubmissionId || + (this.SubmissionId != null && + this.SubmissionId.Equals(input.SubmissionId)) + ) && ( this.AppName == input.AppName || (this.AppName != null && @@ -192,6 +207,8 @@ 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) diff --git a/src/Flipdish/Model/MobileAppsSubmissionStatus.cs b/src/Flipdish/Model/MobileAppsSubmissionStatus.cs index 3b7d23f1..c6eafbfd 100644 --- a/src/Flipdish/Model/MobileAppsSubmissionStatus.cs +++ b/src/Flipdish/Model/MobileAppsSubmissionStatus.cs @@ -36,17 +36,23 @@ public partial class MobileAppsSubmissionStatus : IEquatable + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + /// /// Enum Android for value: Android /// [EnumMember(Value = "Android")] - Android = 1, + Android = 2, /// /// Enum IOS for value: IOS /// [EnumMember(Value = "IOS")] - IOS = 2 + IOS = 3 } /// 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/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/StripeTerminalPrivateKey.cs b/src/Flipdish/Model/NutritionInfoMenuItem.cs similarity index 53% rename from src/Flipdish/Model/StripeTerminalPrivateKey.cs rename to src/Flipdish/Model/NutritionInfoMenuItem.cs index 998cebdb..742c444f 100644 --- a/src/Flipdish/Model/StripeTerminalPrivateKey.cs +++ b/src/Flipdish/Model/NutritionInfoMenuItem.cs @@ -23,35 +23,35 @@ namespace Flipdish.Model { /// - /// Stripe Terminal Private Key + /// NutritionInfoMenuItem. /// [DataContract] - public partial class StripeTerminalPrivateKey : IEquatable + public partial class NutritionInfoMenuItem : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Registered location of the terminal. - /// Secret used to pass to stripe to attach terminal. - public StripeTerminalPrivateKey(string location = default(string), string secret = default(string)) + /// Menu item public id. + /// List of Nutrition Info Labels for this menu item. + public NutritionInfoMenuItem(Guid? publicId = default(Guid?), List labels = default(List)) { - this.Location = location; - this.Secret = secret; + this.PublicId = publicId; + this.Labels = labels; } /// - /// Registered location of the terminal + /// Menu item public id /// - /// Registered location of the terminal - [DataMember(Name="Location", EmitDefaultValue=false)] - public string Location { get; set; } + /// Menu item public id + [DataMember(Name="PublicId", EmitDefaultValue=false)] + public Guid? PublicId { get; set; } /// - /// Secret used to pass to stripe to attach terminal + /// List of Nutrition Info Labels for this menu item /// - /// Secret used to pass to stripe to attach terminal - [DataMember(Name="Secret", EmitDefaultValue=false)] - public string Secret { get; set; } + /// 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 @@ -60,9 +60,9 @@ public partial class StripeTerminalPrivateKey : IEquatableBoolean public override bool Equals(object input) { - return this.Equals(input as StripeTerminalPrivateKey); + return this.Equals(input as NutritionInfoMenuItem); } /// - /// Returns true if StripeTerminalPrivateKey instances are equal + /// Returns true if NutritionInfoMenuItem instances are equal /// - /// Instance of StripeTerminalPrivateKey to be compared + /// Instance of NutritionInfoMenuItem to be compared /// Boolean - public bool Equals(StripeTerminalPrivateKey input) + public bool Equals(NutritionInfoMenuItem input) { if (input == null) return false; return ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) + this.PublicId == input.PublicId || + (this.PublicId != null && + this.PublicId.Equals(input.PublicId)) ) && ( - this.Secret == input.Secret || - (this.Secret != null && - this.Secret.Equals(input.Secret)) + this.Labels == input.Labels || + this.Labels != null && + this.Labels.SequenceEqual(input.Labels) ); } @@ -118,10 +118,10 @@ 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.Secret != null) - hashCode = hashCode * 59 + this.Secret.GetHashCode(); + 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/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 index 8e67bf7d..eeca13ee 100644 --- a/src/Flipdish/Model/OnboardingConfigUpdate.cs +++ b/src/Flipdish/Model/OnboardingConfigUpdate.cs @@ -28,15 +28,44 @@ namespace Flipdish.Model [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. - /// isWelcomeScreenEnabled. - public OnboardingConfigUpdate(bool? isEnabled = default(bool?), bool? isWelcomeScreenEnabled = default(bool?)) + /// 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; } /// @@ -47,11 +76,13 @@ public partial class OnboardingConfigUpdate : IEquatable - /// Gets or Sets IsWelcomeScreenEnabled + /// 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 /// @@ -62,6 +93,7 @@ public override string ToString() 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(); } @@ -105,6 +137,11 @@ public bool Equals(OnboardingConfigUpdate input) this.IsWelcomeScreenEnabled == input.IsWelcomeScreenEnabled || (this.IsWelcomeScreenEnabled != null && this.IsWelcomeScreenEnabled.Equals(input.IsWelcomeScreenEnabled)) + ) && + ( + this.ConfigType == input.ConfigType || + (this.ConfigType != null && + this.ConfigType.Equals(input.ConfigType)) ); } @@ -121,6 +158,8 @@ public override int GetHashCode() 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/Order.cs b/src/Flipdish/Model/Order.cs index 3decd019..2781b5d8 100644 --- a/src/Flipdish/Model/Order.cs +++ b/src/Flipdish/Model/Order.cs @@ -223,7 +223,13 @@ public enum PaymentAccountTypeEnum /// Enum PayGreen for value: PayGreen /// [EnumMember(Value = "PayGreen")] - PayGreen = 9 + PayGreen = 9, + + /// + /// Enum GoogleWalletToken for value: GoogleWalletToken + /// + [EnumMember(Value = "GoogleWalletToken")] + GoogleWalletToken = 10 } /// @@ -316,7 +322,13 @@ public enum OrderStateEnum /// Enum AcceptedAndRefunded for value: AcceptedAndRefunded /// [EnumMember(Value = "AcceptedAndRefunded")] - AcceptedAndRefunded = 13 + AcceptedAndRefunded = 13, + + /// + /// Enum PendingPayment for value: PendingPayment + /// + [EnumMember(Value = "PendingPayment")] + PendingPayment = 14 } /// @@ -603,9 +615,11 @@ public enum DeliveryTrackingStatusEnum /// ChannelOrderId from external channel. /// ChannelOrderDisplayId from external channel. /// Channel where the Order comes from. - /// Generated receipt code for an order. /// 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. @@ -634,7 +648,10 @@ public enum DeliveryTrackingStatusEnum /// Assigned driver identifier. /// Total tax applied to order. /// Unique, 6 character long alpha numeric code for tracking.. - 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), string receiptCode = default(string), OrderDropOffLocation orderDropOffLocation = default(OrderDropOffLocation), OrderFulfillmentStatusBase fulfillmentStatus = default(OrderFulfillmentStatusBase), 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)) + /// 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; @@ -653,9 +670,11 @@ public enum DeliveryTrackingStatusEnum this.ChannelOrderId = channelOrderId; this.ChannelOrderDisplayId = channelOrderDisplayId; this.Channel = channel; - this.ReceiptCode = receiptCode; this.OrderDropOffLocation = orderDropOffLocation; this.FulfillmentStatus = fulfillmentStatus; + this.OrderBatchInfo = orderBatchInfo; + this.TaxItems = taxItems; + this.CreatedCampaignVoucherId = createdCampaignVoucherId; this.OrderId = orderId; this.LocalOrderId = localOrderId; this.DeliveryType = deliveryType; @@ -684,6 +703,9 @@ public enum DeliveryTrackingStatusEnum this.DriverId = driverId; this.TotalTax = totalTax; this.OrderTrackingCode = orderTrackingCode; + this.DeliveryFeeAreaId = deliveryFeeAreaId; + this.ReceiptCode = receiptCode; + this.TotalDepositReturnFeeAmount = totalDepositReturnFeeAmount; } /// @@ -805,13 +827,6 @@ public enum DeliveryTrackingStatusEnum [DataMember(Name="Channel", EmitDefaultValue=false)] public Channel Channel { get; set; } - /// - /// Generated receipt code for an order - /// - /// Generated receipt code for an order - [DataMember(Name="ReceiptCode", EmitDefaultValue=false)] - public string ReceiptCode { get; set; } - /// /// DropOffLocation selected for this order /// @@ -826,6 +841,27 @@ public enum DeliveryTrackingStatusEnum [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 /// @@ -968,6 +1004,27 @@ public enum DeliveryTrackingStatusEnum [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 /// @@ -993,9 +1050,11 @@ public override string ToString() sb.Append(" ChannelOrderId: ").Append(ChannelOrderId).Append("\n"); sb.Append(" ChannelOrderDisplayId: ").Append(ChannelOrderDisplayId).Append("\n"); sb.Append(" Channel: ").Append(Channel).Append("\n"); - sb.Append(" ReceiptCode: ").Append(ReceiptCode).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"); @@ -1024,6 +1083,9 @@ public override string ToString() 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(); } @@ -1143,11 +1205,6 @@ public bool Equals(Order input) (this.Channel != null && this.Channel.Equals(input.Channel)) ) && - ( - this.ReceiptCode == input.ReceiptCode || - (this.ReceiptCode != null && - this.ReceiptCode.Equals(input.ReceiptCode)) - ) && ( this.OrderDropOffLocation == input.OrderDropOffLocation || (this.OrderDropOffLocation != null && @@ -1158,6 +1215,21 @@ public bool Equals(Order input) (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 && @@ -1297,6 +1369,21 @@ public bool Equals(Order input) 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)) ); } @@ -1343,12 +1430,16 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.ChannelOrderDisplayId.GetHashCode(); if (this.Channel != null) hashCode = hashCode * 59 + this.Channel.GetHashCode(); - if (this.ReceiptCode != null) - hashCode = hashCode * 59 + this.ReceiptCode.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) @@ -1405,6 +1496,12 @@ public override int GetHashCode() 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 index 64e6176c..16c8cea1 100644 --- a/src/Flipdish/Model/OrderAcceptedEvent.cs +++ b/src/Flipdish/Model/OrderAcceptedEvent.cs @@ -32,25 +32,33 @@ 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. - public OrderAcceptedEvent(string eventName = default(string), string description = default(string), DateTime? orderAcceptedTime = default(DateTime?), Order order = default(Order), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string)) + /// 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; } /// @@ -60,6 +68,13 @@ public partial class OrderAcceptedEvent : IEquatable [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 /// @@ -74,6 +89,13 @@ public partial class OrderAcceptedEvent : IEquatable [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 /// @@ -116,6 +138,20 @@ public partial class OrderAcceptedEvent : IEquatable [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 /// @@ -125,14 +161,18 @@ 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(); } @@ -172,6 +212,11 @@ public bool Equals(OrderAcceptedEvent input) (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 && @@ -182,6 +227,11 @@ public bool Equals(OrderAcceptedEvent input) (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 && @@ -211,6 +261,16 @@ public bool Equals(OrderAcceptedEvent input) 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)) ); } @@ -225,10 +285,14 @@ public override int GetHashCode() 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) @@ -241,6 +305,10 @@ public override int GetHashCode() 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 index 2f234270..80bc9e8f 100644 --- a/src/Flipdish/Model/OrderBatch.cs +++ b/src/Flipdish/Model/OrderBatch.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Order batch + /// Order batch detailed information /// [DataContract] public partial class OrderBatch : IEquatable @@ -31,20 +31,27 @@ 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. - /// Orders' ids on the batch. - public OrderBatch(int? id = default(int?), string displayCode = default(string), DateTime? createTime = default(DateTime?), bool? isPublished = default(bool?), List orderIds = default(List)) + 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; - this.OrderIds = orderIds; } + /// + /// Orders' ids on the batch + /// + /// Orders' ids on the batch + [DataMember(Name="OrderIds", EmitDefaultValue=false)] + public List OrderIds { get; set; } + /// /// Order batch id /// @@ -73,13 +80,6 @@ public partial class OrderBatch : IEquatable [DataMember(Name="IsPublished", EmitDefaultValue=false)] public bool? IsPublished { get; set; } - /// - /// Orders' ids on the batch - /// - /// Orders' ids on the batch - [DataMember(Name="OrderIds", EmitDefaultValue=false)] - public List OrderIds { get; set; } - /// /// Returns the string presentation of the object /// @@ -88,11 +88,11 @@ 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(" OrderIds: ").Append(OrderIds).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -127,6 +127,11 @@ public bool Equals(OrderBatch input) return false; return + ( + this.OrderIds == input.OrderIds || + this.OrderIds != null && + this.OrderIds.SequenceEqual(input.OrderIds) + ) && ( this.Id == input.Id || (this.Id != null && @@ -146,11 +151,6 @@ public bool Equals(OrderBatch input) this.IsPublished == input.IsPublished || (this.IsPublished != null && this.IsPublished.Equals(input.IsPublished)) - ) && - ( - this.OrderIds == input.OrderIds || - this.OrderIds != null && - this.OrderIds.SequenceEqual(input.OrderIds) ); } @@ -163,6 +163,8 @@ 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) @@ -171,8 +173,6 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); if (this.IsPublished != null) hashCode = hashCode * 59 + this.IsPublished.GetHashCode(); - if (this.OrderIds != null) - hashCode = hashCode * 59 + this.OrderIds.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/OrderBatchItem.cs b/src/Flipdish/Model/OrderBatchSummary.cs similarity index 51% rename from src/Flipdish/Model/OrderBatchItem.cs rename to src/Flipdish/Model/OrderBatchSummary.cs index 502ac831..a52112b6 100644 --- a/src/Flipdish/Model/OrderBatchItem.cs +++ b/src/Flipdish/Model/OrderBatchSummary.cs @@ -23,42 +23,51 @@ namespace Flipdish.Model { /// - /// Represents order batches + /// Order batch info /// [DataContract] - public partial class OrderBatchItem : IEquatable + public partial class OrderBatchSummary : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Unique identifier. - /// Creation date. - /// Is dispatched. - public OrderBatchItem(int? batchId = default(int?), DateTime? createdAt = default(DateTime?), bool? isPublished = default(bool?)) + /// 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.BatchId = batchId; - this.CreatedAt = createdAt; + this.Id = id; + this.DisplayCode = displayCode; + this.CreateTime = createTime; this.IsPublished = isPublished; } /// - /// Unique identifier + /// Order batch id /// - /// Unique identifier - [DataMember(Name="BatchId", EmitDefaultValue=false)] - public int? BatchId { get; set; } + /// Order batch id + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } /// - /// Creation date + /// Order batch 6-sign human readable code /// - /// Creation date - [DataMember(Name="CreatedAt", EmitDefaultValue=false)] - public DateTime? CreatedAt { get; set; } + /// Order batch 6-sign human readable code + [DataMember(Name="DisplayCode", EmitDefaultValue=false)] + public string DisplayCode { get; set; } /// - /// Is dispatched + /// Batch creation date and time /// - /// Is dispatched + /// 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; } @@ -69,9 +78,10 @@ public partial class OrderBatchItem : IEquatable public override string ToString() { var sb = new StringBuilder(); - sb.Append("class OrderBatchItem {\n"); - sb.Append(" BatchId: ").Append(BatchId).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + 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(); @@ -93,29 +103,34 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as OrderBatchItem); + return this.Equals(input as OrderBatchSummary); } /// - /// Returns true if OrderBatchItem instances are equal + /// Returns true if OrderBatchSummary instances are equal /// - /// Instance of OrderBatchItem to be compared + /// Instance of OrderBatchSummary to be compared /// Boolean - public bool Equals(OrderBatchItem input) + public bool Equals(OrderBatchSummary input) { if (input == null) return false; return ( - this.BatchId == input.BatchId || - (this.BatchId != null && - this.BatchId.Equals(input.BatchId)) + 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.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) ) && ( this.IsPublished == input.IsPublished || @@ -133,10 +148,12 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.BatchId != null) - hashCode = hashCode * 59 + this.BatchId.GetHashCode(); - if (this.CreatedAt != null) - hashCode = hashCode * 59 + this.CreatedAt.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/OrderBatchingConfiguration.cs b/src/Flipdish/Model/OrderBatchingConfiguration.cs index a30885ac..f7a792c8 100644 --- a/src/Flipdish/Model/OrderBatchingConfiguration.cs +++ b/src/Flipdish/Model/OrderBatchingConfiguration.cs @@ -31,20 +31,20 @@ public partial class OrderBatchingConfiguration : IEquatable /// Initializes a new instance of the class. /// - /// Batch sending interval in minutes. + /// Batch sending interval in seconds. /// OrderBatching is enabled or not. - public OrderBatchingConfiguration(int? batchIntervalInMinutes = default(int?), bool? isEnabled = default(bool?)) + public OrderBatchingConfiguration(int? batchIntervalInSeconds = default(int?), bool? isEnabled = default(bool?)) { - this.BatchIntervalInMinutes = batchIntervalInMinutes; + this.BatchIntervalInSeconds = batchIntervalInSeconds; this.IsEnabled = isEnabled; } /// - /// Batch sending interval in minutes + /// Batch sending interval in seconds /// - /// Batch sending interval in minutes - [DataMember(Name="BatchIntervalInMinutes", EmitDefaultValue=false)] - public int? BatchIntervalInMinutes { get; set; } + /// Batch sending interval in seconds + [DataMember(Name="BatchIntervalInSeconds", EmitDefaultValue=false)] + public int? BatchIntervalInSeconds { get; set; } /// /// OrderBatching is enabled or not @@ -61,7 +61,7 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class OrderBatchingConfiguration {\n"); - sb.Append(" BatchIntervalInMinutes: ").Append(BatchIntervalInMinutes).Append("\n"); + sb.Append(" BatchIntervalInSeconds: ").Append(BatchIntervalInSeconds).Append("\n"); sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -98,9 +98,9 @@ public bool Equals(OrderBatchingConfiguration input) return ( - this.BatchIntervalInMinutes == input.BatchIntervalInMinutes || - (this.BatchIntervalInMinutes != null && - this.BatchIntervalInMinutes.Equals(input.BatchIntervalInMinutes)) + this.BatchIntervalInSeconds == input.BatchIntervalInSeconds || + (this.BatchIntervalInSeconds != null && + this.BatchIntervalInSeconds.Equals(input.BatchIntervalInSeconds)) ) && ( this.IsEnabled == input.IsEnabled || @@ -118,8 +118,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.BatchIntervalInMinutes != null) - hashCode = hashCode * 59 + this.BatchIntervalInMinutes.GetHashCode(); + 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 index eb2519a3..7168df44 100644 --- a/src/Flipdish/Model/OrderCapacityConfigUpdatedEvent.cs +++ b/src/Flipdish/Model/OrderCapacityConfigUpdatedEvent.cs @@ -40,8 +40,11 @@ public partial class OrderCapacityConfigUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class OrderCapacityConfigUpdatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class OrderCapacityConfigUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class OrderCapacityConfigUpdatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(OrderCapacityConfigUpdatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 8e675df8..c8144c32 100644 --- a/src/Flipdish/Model/OrderCreatedEvent.cs +++ b/src/Flipdish/Model/OrderCreatedEvent.cs @@ -39,8 +39,11 @@ public partial class OrderCreatedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class OrderCreatedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -109,6 +115,13 @@ public partial class OrderCreatedEvent : IEquatable [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 /// @@ -116,6 +129,20 @@ public partial class OrderCreatedEvent : IEquatable [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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(OrderCreatedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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 index 2490dd83..a361872b 100644 --- a/src/Flipdish/Model/OrderCustomerTrackingCreatedEvent.cs +++ b/src/Flipdish/Model/OrderCustomerTrackingCreatedEvent.cs @@ -38,8 +38,11 @@ public partial class OrderCustomerTrackingCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class OrderCustomerTrackingCreatedEvent : IEquatable @@ -100,6 +106,13 @@ public partial class OrderCustomerTrackingCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -107,6 +120,20 @@ public partial class OrderCustomerTrackingCreatedEvent : IEquatable + /// 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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(OrderCustomerTrackingCreatedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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/OrderDeliveryTrackingStatusUpdatedEvent.cs b/src/Flipdish/Model/OrderDeliveryTrackingStatusUpdatedEvent.cs index 73494bff..f7925968 100644 --- a/src/Flipdish/Model/OrderDeliveryTrackingStatusUpdatedEvent.cs +++ b/src/Flipdish/Model/OrderDeliveryTrackingStatusUpdatedEvent.cs @@ -34,21 +34,31 @@ public partial class OrderDeliveryTrackingStatusUpdatedEvent : IEquatableThe 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. - public OrderDeliveryTrackingStatusUpdatedEvent(string eventName = default(string), 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 ipAddress = default(string)) + /// 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; } /// @@ -72,6 +82,20 @@ public partial class OrderDeliveryTrackingStatusUpdatedEvent : IEquatable + /// 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 /// @@ -100,6 +124,13 @@ public partial class OrderDeliveryTrackingStatusUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -107,6 +138,20 @@ public partial class OrderDeliveryTrackingStatusUpdatedEvent : IEquatable + /// 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 /// @@ -118,11 +163,16 @@ public override string ToString() 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(); } @@ -172,6 +222,16 @@ public bool Equals(OrderDeliveryTrackingStatusUpdatedEvent input) (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 && @@ -192,10 +252,25 @@ public bool Equals(OrderDeliveryTrackingStatusUpdatedEvent input) (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)) ); } @@ -214,6 +289,10 @@ public override int GetHashCode() 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) @@ -222,8 +301,14 @@ public override int GetHashCode() 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 index 300edfec..6b55f715 100644 --- a/src/Flipdish/Model/OrderDispatchedEvent.cs +++ b/src/Flipdish/Model/OrderDispatchedEvent.cs @@ -39,8 +39,11 @@ public partial class OrderDispatchedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class OrderDispatchedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -109,6 +115,13 @@ public partial class OrderDispatchedEvent : IEquatable [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 /// @@ -116,6 +129,20 @@ public partial class OrderDispatchedEvent : IEquatable [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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(OrderDispatchedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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 index c2477949..4e273db6 100644 --- a/src/Flipdish/Model/OrderDropOffLocation.cs +++ b/src/Flipdish/Model/OrderDropOffLocation.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// OrderDropOffLocation + /// OrderDropOffLocation. /// [DataContract] public partial class OrderDropOffLocation : IEquatable @@ -31,12 +31,12 @@ public partial class OrderDropOffLocation : IEquatable /// /// Initializes a new instance of the class. /// - /// orderId. - /// locationName. - /// locationAreaName. - /// locationId. - /// locationAreaId. - /// externalLocationId. + /// 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; @@ -48,38 +48,44 @@ public partial class OrderDropOffLocation : IEquatable } /// - /// Gets or Sets OrderId + /// OrderId. /// + /// OrderId. [DataMember(Name="OrderId", EmitDefaultValue=false)] public int? OrderId { get; set; } /// - /// Gets or Sets LocationName + /// LocationName. /// + /// LocationName. [DataMember(Name="LocationName", EmitDefaultValue=false)] public string LocationName { get; set; } /// - /// Gets or Sets LocationAreaName + /// LocationAreaName. /// + /// LocationAreaName. [DataMember(Name="LocationAreaName", EmitDefaultValue=false)] public string LocationAreaName { get; set; } /// - /// Gets or Sets LocationId + /// LocationId. /// + /// LocationId. [DataMember(Name="LocationId", EmitDefaultValue=false)] public int? LocationId { get; set; } /// - /// Gets or Sets LocationAreaId + /// LocationAreaId. /// + /// LocationAreaId. [DataMember(Name="LocationAreaId", EmitDefaultValue=false)] public int? LocationAreaId { get; set; } /// - /// Gets or Sets ExternalLocationId + /// ExternalLocationId. /// + /// ExternalLocationId. [DataMember(Name="ExternalLocationId", EmitDefaultValue=false)] public string ExternalLocationId { get; set; } diff --git a/src/Flipdish/Model/OrderFulfillmentStatusUpdate.cs b/src/Flipdish/Model/OrderFulfillmentStatusUpdate.cs index 729233d1..9244043f 100644 --- a/src/Flipdish/Model/OrderFulfillmentStatusUpdate.cs +++ b/src/Flipdish/Model/OrderFulfillmentStatusUpdate.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// OrderFulfillmentStatusUpdate + /// OrderFulfillmentStatusUpdate. /// [DataContract] public partial class OrderFulfillmentStatusUpdate : IEquatable diff --git a/src/Flipdish/Model/OrderFulfillmentStatusUpdatedEvent.cs b/src/Flipdish/Model/OrderFulfillmentStatusUpdatedEvent.cs index 68def269..2eb81d4b 100644 --- a/src/Flipdish/Model/OrderFulfillmentStatusUpdatedEvent.cs +++ b/src/Flipdish/Model/OrderFulfillmentStatusUpdatedEvent.cs @@ -41,8 +41,11 @@ public partial class OrderFulfillmentStatusUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -54,7 +57,10 @@ public partial class OrderFulfillmentStatusUpdatedEvent : IEquatable @@ -127,6 +133,13 @@ public partial class OrderFulfillmentStatusUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -134,6 +147,20 @@ public partial class OrderFulfillmentStatusUpdatedEvent : IEquatable + /// 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 /// @@ -152,7 +179,10 @@ public override string ToString() 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(); } @@ -237,10 +267,25 @@ public bool Equals(OrderFulfillmentStatusUpdatedEvent input) (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)) ); } @@ -273,8 +318,14 @@ public override int GetHashCode() 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/OrderItem.cs b/src/Flipdish/Model/OrderItem.cs index 9fddab66..624d2820 100644 --- a/src/Flipdish/Model/OrderItem.cs +++ b/src/Flipdish/Model/OrderItem.cs @@ -39,11 +39,13 @@ public partial class OrderItem : IEquatable /// Name. /// Description. /// Price. + /// Tax currency amount. /// Price including option set items. /// Menu item identifier. /// Menu item display order. /// Is available. - 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? priceIncludingOptionSetItems = default(double?), int? menuItemId = default(int?), int? menuItemDisplayOrder = default(int?), bool? isAvailable = default(bool?)) + /// 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; @@ -53,10 +55,12 @@ public partial class OrderItem : IEquatable 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; } /// @@ -115,6 +119,13 @@ public partial class OrderItem : IEquatable [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 /// @@ -143,6 +154,13 @@ public partial class OrderItem : IEquatable [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 /// @@ -159,10 +177,12 @@ public override string ToString() 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(); } @@ -237,6 +257,11 @@ public bool Equals(OrderItem input) (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 && @@ -256,6 +281,11 @@ public bool Equals(OrderItem input) this.IsAvailable == input.IsAvailable || (this.IsAvailable != null && this.IsAvailable.Equals(input.IsAvailable)) + ) && + ( + this.DepositReturnFee == input.DepositReturnFee || + (this.DepositReturnFee != null && + this.DepositReturnFee.Equals(input.DepositReturnFee)) ); } @@ -284,6 +314,8 @@ public override int GetHashCode() 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) @@ -292,6 +324,8 @@ public override int GetHashCode() 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 index 4bafdbfa..8f163911 100644 --- a/src/Flipdish/Model/OrderItemOption.cs +++ b/src/Flipdish/Model/OrderItemOption.cs @@ -37,9 +37,11 @@ public partial class OrderItemOption : IEquatable /// Is master option set item. /// Name. /// Price. + /// Tax currency amount. /// Menu item option display order. /// Menu item option set display order. - 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?), int? menuItemOptionDisplayOrder = default(int?), int? menuItemOptionSetDisplayOrder = default(int?)) + /// 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; @@ -47,8 +49,10 @@ public partial class OrderItemOption : IEquatable this.IsMasterOptionSetItem = isMasterOptionSetItem; this.Name = name; this.Price = price; + this.TaxAmount = taxAmount; this.MenuItemOptionDisplayOrder = menuItemOptionDisplayOrder; this.MenuItemOptionSetDisplayOrder = menuItemOptionSetDisplayOrder; + this.DepositReturnFee = depositReturnFee; } /// @@ -93,6 +97,13 @@ public partial class OrderItemOption : IEquatable [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 /// @@ -107,6 +118,13 @@ public partial class OrderItemOption : IEquatable [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 /// @@ -121,8 +139,10 @@ public override string ToString() 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(); } @@ -187,6 +207,11 @@ public bool Equals(OrderItemOption input) (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 && @@ -196,6 +221,11 @@ public bool Equals(OrderItemOption input) this.MenuItemOptionSetDisplayOrder == input.MenuItemOptionSetDisplayOrder || (this.MenuItemOptionSetDisplayOrder != null && this.MenuItemOptionSetDisplayOrder.Equals(input.MenuItemOptionSetDisplayOrder)) + ) && + ( + this.DepositReturnFee == input.DepositReturnFee || + (this.DepositReturnFee != null && + this.DepositReturnFee.Equals(input.DepositReturnFee)) ); } @@ -220,10 +250,14 @@ public override int GetHashCode() 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/OrderRatingUpdatedEvent.cs b/src/Flipdish/Model/OrderRatingUpdatedEvent.cs index 094dd9cd..ca5ee8a7 100644 --- a/src/Flipdish/Model/OrderRatingUpdatedEvent.cs +++ b/src/Flipdish/Model/OrderRatingUpdatedEvent.cs @@ -39,8 +39,11 @@ public partial class OrderRatingUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class OrderRatingUpdatedEvent : IEquatable @@ -109,6 +115,13 @@ public partial class OrderRatingUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -116,6 +129,20 @@ public partial class OrderRatingUpdatedEvent : IEquatable + /// 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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(OrderRatingUpdatedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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/OrderIdAndSequenceNumber.cs b/src/Flipdish/Model/OrderReference.cs similarity index 64% rename from src/Flipdish/Model/OrderIdAndSequenceNumber.cs rename to src/Flipdish/Model/OrderReference.cs index 2184a972..a9891c8a 100644 --- a/src/Flipdish/Model/OrderIdAndSequenceNumber.cs +++ b/src/Flipdish/Model/OrderReference.cs @@ -23,36 +23,27 @@ namespace Flipdish.Model { /// - /// OrderIdAndSequenceNumber + /// A reference to an order. /// [DataContract] - public partial class OrderIdAndSequenceNumber : IEquatable + public partial class OrderReference : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Order identifier. - /// Sequence for delivery. - public OrderIdAndSequenceNumber(int? orderId = default(int?), int? sequence = default(int?)) + /// The ID of the order.. + public OrderReference(int? orderId = default(int?)) { this.OrderId = orderId; - this.Sequence = sequence; } /// - /// Order identifier + /// The ID of the order. /// - /// Order identifier + /// The ID of the order. [DataMember(Name="OrderId", EmitDefaultValue=false)] public int? OrderId { get; set; } - /// - /// Sequence for delivery - /// - /// Sequence for delivery - [DataMember(Name="Sequence", EmitDefaultValue=false)] - public int? Sequence { get; set; } - /// /// Returns the string presentation of the object /// @@ -60,9 +51,8 @@ public partial class OrderIdAndSequenceNumber : IEquatableBoolean public override bool Equals(object input) { - return this.Equals(input as OrderIdAndSequenceNumber); + return this.Equals(input as OrderReference); } /// - /// Returns true if OrderIdAndSequenceNumber instances are equal + /// Returns true if OrderReference instances are equal /// - /// Instance of OrderIdAndSequenceNumber to be compared + /// Instance of OrderReference to be compared /// Boolean - public bool Equals(OrderIdAndSequenceNumber input) + public bool Equals(OrderReference input) { if (input == null) return false; @@ -101,11 +91,6 @@ public bool Equals(OrderIdAndSequenceNumber input) this.OrderId == input.OrderId || (this.OrderId != null && this.OrderId.Equals(input.OrderId)) - ) && - ( - this.Sequence == input.Sequence || - (this.Sequence != null && - this.Sequence.Equals(input.Sequence)) ); } @@ -120,8 +105,6 @@ public override int GetHashCode() int hashCode = 41; if (this.OrderId != null) hashCode = hashCode * 59 + this.OrderId.GetHashCode(); - if (this.Sequence != null) - hashCode = hashCode * 59 + this.Sequence.GetHashCode(); return hashCode; } } diff --git a/src/Flipdish/Model/OrderRefundedEvent.cs b/src/Flipdish/Model/OrderRefundedEvent.cs index 80375955..57f67075 100644 --- a/src/Flipdish/Model/OrderRefundedEvent.cs +++ b/src/Flipdish/Model/OrderRefundedEvent.cs @@ -34,23 +34,31 @@ public partial class OrderRefundedEvent : IEquatable /// 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. - public OrderRefundedEvent(string eventName = default(string), double? refundedAmount = 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 ipAddress = default(string)) + /// 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; } /// @@ -74,6 +82,13 @@ public partial class OrderRefundedEvent : IEquatable [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 /// @@ -109,6 +124,13 @@ public partial class OrderRefundedEvent : IEquatable [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 /// @@ -116,6 +138,20 @@ public partial class OrderRefundedEvent : IEquatable [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 /// @@ -127,12 +163,16 @@ public override string ToString() 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(); } @@ -182,6 +222,11 @@ public bool Equals(OrderRefundedEvent input) (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 && @@ -207,10 +252,25 @@ public bool Equals(OrderRefundedEvent input) (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)) ); } @@ -229,6 +289,8 @@ public override int GetHashCode() 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) @@ -239,8 +301,14 @@ public override int GetHashCode() 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 index d59a9ef8..eb3018cc 100644 --- a/src/Flipdish/Model/OrderRejectedEvent.cs +++ b/src/Flipdish/Model/OrderRejectedEvent.cs @@ -35,24 +35,32 @@ public partial class OrderRejectedEvent : IEquatable /// 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. - public OrderRejectedEvent(string eventName = default(string), string description = default(string), DateTime? orderRejectedTime = default(DateTime?), string reason = default(string), Order order = default(Order), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string)) + /// 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; } /// @@ -83,6 +91,13 @@ public partial class OrderRejectedEvent : IEquatable [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 /// @@ -118,6 +133,13 @@ public partial class OrderRejectedEvent : IEquatable [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 /// @@ -125,6 +147,20 @@ public partial class OrderRejectedEvent : IEquatable [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 /// @@ -137,12 +173,16 @@ public override string ToString() 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(); } @@ -197,6 +237,11 @@ public bool Equals(OrderRejectedEvent input) (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 && @@ -222,10 +267,25 @@ public bool Equals(OrderRejectedEvent input) (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)) ); } @@ -246,6 +306,8 @@ public override int GetHashCode() 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) @@ -256,8 +318,14 @@ public override int GetHashCode() 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 index 6208b48c..fda43084 100644 --- a/src/Flipdish/Model/OrderSummary.cs +++ b/src/Flipdish/Model/OrderSummary.cs @@ -247,7 +247,13 @@ public enum OrderStateEnum /// Enum AcceptedAndRefunded for value: AcceptedAndRefunded /// [EnumMember(Value = "AcceptedAndRefunded")] - AcceptedAndRefunded = 13 + AcceptedAndRefunded = 13, + + /// + /// Enum PendingPayment for value: PendingPayment + /// + [EnumMember(Value = "PendingPayment")] + PendingPayment = 14 } /// @@ -316,7 +322,13 @@ public enum PaymentAccountTypeEnum /// Enum PayGreen for value: PayGreen /// [EnumMember(Value = "PayGreen")] - PayGreen = 9 + PayGreen = 9, + + /// + /// Enum GoogleWalletToken for value: GoogleWalletToken + /// + [EnumMember(Value = "GoogleWalletToken")] + GoogleWalletToken = 10 } /// @@ -1173,7 +1185,9 @@ public enum AppTypeEnum /// ChannelOrderId from external channel. /// ChannelOrderDisplayId from external channel. /// DropOffLocation selected for this order. - 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)) + /// 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; @@ -1201,6 +1215,8 @@ public enum AppTypeEnum this.ChannelOrderId = channelOrderId; this.ChannelOrderDisplayId = channelOrderDisplayId; this.OrderDropOffLocation = orderDropOffLocation; + this.OrderBatchInfo = orderBatchInfo; + this.DeliveryLocation = deliveryLocation; } /// @@ -1337,6 +1353,20 @@ public enum AppTypeEnum [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 /// @@ -1371,6 +1401,8 @@ public override string ToString() 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(); } @@ -1534,6 +1566,16 @@ public bool Equals(OrderSummary input) 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)) ); } @@ -1598,6 +1640,10 @@ public override int GetHashCode() 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 index 8e45fe49..e69195b1 100644 --- a/src/Flipdish/Model/OrderTipUpdatedEvent.cs +++ b/src/Flipdish/Model/OrderTipUpdatedEvent.cs @@ -39,8 +39,11 @@ public partial class OrderTipUpdatedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class OrderTipUpdatedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -109,6 +115,13 @@ public partial class OrderTipUpdatedEvent : IEquatable [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 /// @@ -116,6 +129,20 @@ public partial class OrderTipUpdatedEvent : IEquatable [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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(OrderTipUpdatedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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 index 4ebf2ce4..2f5b3c7e 100644 --- a/src/Flipdish/Model/OrderVoucherSummary.cs +++ b/src/Flipdish/Model/OrderVoucherSummary.cs @@ -58,7 +58,13 @@ public enum TypeEnum /// Enum CreditNote for value: CreditNote /// [EnumMember(Value = "CreditNote")] - CreditNote = 4 + CreditNote = 4, + + /// + /// Enum FreeDelivery for value: FreeDelivery + /// + [EnumMember(Value = "FreeDelivery")] + FreeDelivery = 5 } /// @@ -127,14 +133,16 @@ public enum SubTypeEnum /// /// Initializes a new instance of the class. /// + /// Voucher ID. /// Voucher name. /// Voucher description. /// Voucher code. /// Voucher amount. /// Voucher type. /// Voucher sub type. - public OrderVoucherSummary(string name = default(string), string description = default(string), string code = default(string), double? amount = default(double?), TypeEnum? type = default(TypeEnum?), SubTypeEnum? subType = default(SubTypeEnum?)) + 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; @@ -143,6 +151,13 @@ public enum SubTypeEnum this.SubType = subType; } + /// + /// Voucher ID + /// + /// Voucher ID + [DataMember(Name="VoucherId", EmitDefaultValue=false)] + public int? VoucherId { get; set; } + /// /// Voucher name /// @@ -181,6 +196,7 @@ 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"); @@ -221,6 +237,11 @@ public bool Equals(OrderVoucherSummary input) return false; return + ( + this.VoucherId == input.VoucherId || + (this.VoucherId != null && + this.VoucherId.Equals(input.VoucherId)) + ) && ( this.Name == input.Name || (this.Name != null && @@ -262,6 +283,8 @@ 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) diff --git a/src/Flipdish/Model/OwnerEntityConfiguration.cs b/src/Flipdish/Model/OwnerEntityConfiguration.cs index c2523d04..e2c6bfab 100644 --- a/src/Flipdish/Model/OwnerEntityConfiguration.cs +++ b/src/Flipdish/Model/OwnerEntityConfiguration.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// OwnerEntity information to configure its {Flipdish.PublicModels.V1.Metafields.MetafieldDefinition}s + /// OwnerEntity information to configure its {Flipdish.Metafields.PublicModels.V1.MetafieldDefinition}s /// [DataContract] public partial class OwnerEntityConfiguration : IEquatable diff --git a/src/Flipdish/Model/PasswordResetModel.cs b/src/Flipdish/Model/PasswordResetModel.cs index ffe2c54e..12b3983b 100644 --- a/src/Flipdish/Model/PasswordResetModel.cs +++ b/src/Flipdish/Model/PasswordResetModel.cs @@ -36,11 +36,12 @@ protected PasswordResetModel() { } /// /// Initializes a new instance of the class. /// + /// Token Id. /// Email address. /// Password (required). /// Password confirmation (required). /// Password reset token. - public PasswordResetModel(string email = default(string), string password = default(string), string passwordConfirmation = default(string), string token = default(string)) + 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) @@ -60,10 +61,18 @@ protected PasswordResetModel() { } { 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 /// @@ -100,6 +109,7 @@ 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"); @@ -138,6 +148,11 @@ public bool Equals(PasswordResetModel input) return false; return + ( + this.TokenId == input.TokenId || + (this.TokenId != null && + this.TokenId.Equals(input.TokenId)) + ) && ( this.Email == input.Email || (this.Email != null && @@ -169,6 +184,8 @@ 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) 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/Payout.cs b/src/Flipdish/Model/Payout.cs index d0e5de59..bfc735fe 100644 --- a/src/Flipdish/Model/Payout.cs +++ b/src/Flipdish/Model/Payout.cs @@ -815,7 +815,9 @@ public enum CurrencyEnum /// 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. @@ -825,12 +827,21 @@ public enum CurrencyEnum /// 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. - 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? onlineSalesRefundedAmount = 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? chargebackRefundedFees = default(double?), double? totalChargebackCost = default(double?), double? totalOtherCharges = default(double?), double? openingBalance = default(double?), double? closingBalance = default(double?)) + /// 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; @@ -851,7 +862,9 @@ public enum CurrencyEnum 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; @@ -861,11 +874,20 @@ public enum CurrencyEnum 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; } /// @@ -983,6 +1005,13 @@ public enum CurrencyEnum [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 /// @@ -990,6 +1019,13 @@ public enum CurrencyEnum [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 /// @@ -1053,6 +1089,13 @@ public enum CurrencyEnum [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 /// @@ -1088,6 +1131,62 @@ public enum CurrencyEnum [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 /// @@ -1115,7 +1214,9 @@ public override string ToString() 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"); @@ -1125,11 +1226,20 @@ public override string ToString() 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(); } @@ -1259,11 +1369,21 @@ public bool Equals(Payout input) (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 && @@ -1309,6 +1429,11 @@ public bool Equals(Payout input) (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 && @@ -1333,6 +1458,46 @@ public bool Equals(Payout input) 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)) ); } @@ -1383,8 +1548,12 @@ public override int GetHashCode() 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) @@ -1403,6 +1572,8 @@ public override int GetHashCode() 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) @@ -1413,6 +1584,22 @@ public override int GetHashCode() 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/PayoutOrder.cs b/src/Flipdish/Model/PayoutOrder.cs index d2af080a..0d2dd3a6 100644 --- a/src/Flipdish/Model/PayoutOrder.cs +++ b/src/Flipdish/Model/PayoutOrder.cs @@ -762,9 +762,10 @@ public enum OrderCurrencyEnum /// Order tips amount. /// Order voucher amount. /// Order flat fee amount excluding VAT. - /// flatFeeExcludingVAT. + /// Order flat fee amount excluding VAT. + /// Order flat fee amount including VAT. /// Order percentage fee excluding VAT. - /// percentageFeeExcludingVAT. + /// Order percentage fee excluding VAT. /// Order VAT amount. /// Total order fees amount. /// Cash fee charged to customer. @@ -772,7 +773,7 @@ public enum OrderCurrencyEnum /// 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? 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?)) + 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; @@ -786,6 +787,7 @@ public enum OrderCurrencyEnum this.Voucher = voucher; this.FlatFeeExcludingVat = flatFeeExcludingVat; this.FlatFeeExcludingVAT = flatFeeExcludingVAT; + this.FlatFeeIncludingVat = flatFeeIncludingVat; this.PercentageFeeExcludingVat = percentageFeeExcludingVat; this.PercentageFeeExcludingVAT = percentageFeeExcludingVAT; this.Vat = vat; @@ -863,11 +865,19 @@ public enum OrderCurrencyEnum public double? FlatFeeExcludingVat { get; set; } /// - /// Gets or Sets FlatFeeExcludingVAT + /// 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 /// @@ -876,8 +886,9 @@ public enum OrderCurrencyEnum public double? PercentageFeeExcludingVat { get; set; } /// - /// Gets or Sets PercentageFeeExcludingVAT + /// Order percentage fee excluding VAT /// + /// Order percentage fee excluding VAT [DataMember(Name="PercentageFeeExcludingVAT", EmitDefaultValue=false)] public double? PercentageFeeExcludingVAT { get; set; } @@ -950,6 +961,7 @@ public override string ToString() 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"); @@ -1053,6 +1065,11 @@ public bool Equals(PayoutOrder input) (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 && @@ -1133,6 +1150,8 @@ public override int GetHashCode() 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) 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/ChannelStoreMapping.cs b/src/Flipdish/Model/PayoutReport3Store.cs similarity index 68% rename from src/Flipdish/Model/ChannelStoreMapping.cs rename to src/Flipdish/Model/PayoutReport3Store.cs index c12185d5..5658fa44 100644 --- a/src/Flipdish/Model/ChannelStoreMapping.cs +++ b/src/Flipdish/Model/PayoutReport3Store.cs @@ -23,20 +23,20 @@ namespace Flipdish.Model { /// - /// Describes a channel store mapping + /// PayoutReport3Store /// [DataContract] - public partial class ChannelStoreMapping : IEquatable + public partial class PayoutReport3Store : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// storeId. - /// channelStoreId. - public ChannelStoreMapping(int? storeId = default(int?), string channelStoreId = default(string)) + /// storeName. + public PayoutReport3Store(int? storeId = default(int?), string storeName = default(string)) { this.StoreId = storeId; - this.ChannelStoreId = channelStoreId; + this.StoreName = storeName; } /// @@ -46,10 +46,10 @@ public partial class ChannelStoreMapping : IEquatable public int? StoreId { get; set; } /// - /// Gets or Sets ChannelStoreId + /// Gets or Sets StoreName /// - [DataMember(Name="ChannelStoreId", EmitDefaultValue=false)] - public string ChannelStoreId { get; set; } + [DataMember(Name="StoreName", EmitDefaultValue=false)] + public string StoreName { get; set; } /// /// Returns the string presentation of the object @@ -58,9 +58,9 @@ public partial class ChannelStoreMapping : IEquatable public override string ToString() { var sb = new StringBuilder(); - sb.Append("class ChannelStoreMapping {\n"); + sb.Append("class PayoutReport3Store {\n"); sb.Append(" StoreId: ").Append(StoreId).Append("\n"); - sb.Append(" ChannelStoreId: ").Append(ChannelStoreId).Append("\n"); + sb.Append(" StoreName: ").Append(StoreName).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -81,15 +81,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as ChannelStoreMapping); + return this.Equals(input as PayoutReport3Store); } /// - /// Returns true if ChannelStoreMapping instances are equal + /// Returns true if PayoutReport3Store instances are equal /// - /// Instance of ChannelStoreMapping to be compared + /// Instance of PayoutReport3Store to be compared /// Boolean - public bool Equals(ChannelStoreMapping input) + public bool Equals(PayoutReport3Store input) { if (input == null) return false; @@ -101,9 +101,9 @@ public bool Equals(ChannelStoreMapping input) this.StoreId.Equals(input.StoreId)) ) && ( - this.ChannelStoreId == input.ChannelStoreId || - (this.ChannelStoreId != null && - this.ChannelStoreId.Equals(input.ChannelStoreId)) + this.StoreName == input.StoreName || + (this.StoreName != null && + this.StoreName.Equals(input.StoreName)) ); } @@ -118,8 +118,8 @@ public override int GetHashCode() int hashCode = 41; if (this.StoreId != null) hashCode = hashCode * 59 + this.StoreId.GetHashCode(); - if (this.ChannelStoreId != null) - hashCode = hashCode * 59 + this.ChannelStoreId.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/PayoutStore.cs b/src/Flipdish/Model/PayoutStore.cs index 4c83df68..8052b739 100644 --- a/src/Flipdish/Model/PayoutStore.cs +++ b/src/Flipdish/Model/PayoutStore.cs @@ -40,7 +40,9 @@ public partial class PayoutStore : IEquatable /// Chargebacks breakdown. /// Breakdown of other charges. /// Period opening and closing balance. - 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)) + /// 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; @@ -51,6 +53,8 @@ public partial class PayoutStore : IEquatable this.Chargebacks = chargebacks; this.OtherCharges = otherCharges; this.Balance = balance; + this.PosRevenue = posRevenue; + this.ThirdPartyFees = thirdPartyFees; } /// @@ -123,6 +127,20 @@ public partial class PayoutStore : IEquatable [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 /// @@ -141,6 +159,8 @@ public override string ToString() 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(); } @@ -224,6 +244,16 @@ public bool Equals(PayoutStore input) 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)) ); } @@ -256,6 +286,10 @@ public override int GetHashCode() 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/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/PercentDiscountDetails.cs b/src/Flipdish/Model/PercentDiscountDetails.cs index 3be8e394..292b65af 100644 --- a/src/Flipdish/Model/PercentDiscountDetails.cs +++ b/src/Flipdish/Model/PercentDiscountDetails.cs @@ -32,9 +32,11 @@ public partial class PercentDiscountDetails : IEquatable class. /// /// Percentage discount. - public PercentDiscountDetails(int? percentageDiscount = default(int?)) + /// 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; } /// @@ -44,6 +46,13 @@ public partial class PercentDiscountDetails : IEquatable + /// 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 /// @@ -53,6 +62,7 @@ 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(); } @@ -91,6 +101,11 @@ public bool Equals(PercentDiscountDetails input) this.PercentageDiscount == input.PercentageDiscount || (this.PercentageDiscount != null && this.PercentageDiscount.Equals(input.PercentageDiscount)) + ) && + ( + this.MaxDiscountAmount == input.MaxDiscountAmount || + (this.MaxDiscountAmount != null && + this.MaxDiscountAmount.Equals(input.MaxDiscountAmount)) ); } @@ -105,6 +120,8 @@ public override int GetHashCode() 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 index cb4b7174..1589b383 100644 --- a/src/Flipdish/Model/PhoneCall.cs +++ b/src/Flipdish/Model/PhoneCall.cs @@ -101,6 +101,7 @@ public enum CallStatusEnum /// 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. @@ -110,9 +111,10 @@ public enum CallStatusEnum /// Phone number of the caller. /// The amount of time the call took. /// The status of the call. - public PhoneCall(int? phoneCallId = default(int?), 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?)) + 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; @@ -131,6 +133,13 @@ public enum CallStatusEnum [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 /// @@ -197,6 +206,7 @@ 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"); @@ -245,6 +255,11 @@ public bool Equals(PhoneCall input) (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 && @@ -303,6 +318,8 @@ public override int GetHashCode() 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) diff --git a/src/Flipdish/Model/PhoneCallEndedEvent.cs b/src/Flipdish/Model/PhoneCallEndedEvent.cs index 0e1312fe..63221e46 100644 --- a/src/Flipdish/Model/PhoneCallEndedEvent.cs +++ b/src/Flipdish/Model/PhoneCallEndedEvent.cs @@ -39,8 +39,11 @@ public partial class PhoneCallEndedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class PhoneCallEndedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -109,6 +115,13 @@ public partial class PhoneCallEndedEvent : IEquatable [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 /// @@ -116,6 +129,20 @@ public partial class PhoneCallEndedEvent : IEquatable [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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(PhoneCallEndedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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 index 50d13d59..0a6e2df0 100644 --- a/src/Flipdish/Model/PhoneCallStartedEvent.cs +++ b/src/Flipdish/Model/PhoneCallStartedEvent.cs @@ -39,8 +39,11 @@ public partial class PhoneCallStartedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class PhoneCallStartedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -109,6 +115,13 @@ public partial class PhoneCallStartedEvent : IEquatable [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 /// @@ -116,6 +129,20 @@ public partial class PhoneCallStartedEvent : IEquatable [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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(PhoneCallStartedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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/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/PrinterAssignedToStoreEvent.cs b/src/Flipdish/Model/PrinterAssignedToStoreEvent.cs index 589b7355..4e76d0e7 100644 --- a/src/Flipdish/Model/PrinterAssignedToStoreEvent.cs +++ b/src/Flipdish/Model/PrinterAssignedToStoreEvent.cs @@ -41,8 +41,11 @@ public partial class PrinterAssignedToStoreEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -54,7 +57,10 @@ public partial class PrinterAssignedToStoreEvent : IEquatable @@ -127,6 +133,13 @@ public partial class PrinterAssignedToStoreEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -134,6 +147,20 @@ public partial class PrinterAssignedToStoreEvent : IEquatable + /// 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 /// @@ -152,7 +179,10 @@ public override string ToString() 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(); } @@ -237,10 +267,25 @@ public bool Equals(PrinterAssignedToStoreEvent input) (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)) ); } @@ -273,8 +318,14 @@ public override int GetHashCode() 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 index 89a66e36..e3bccade 100644 --- a/src/Flipdish/Model/PrinterTurnedOffEvent.cs +++ b/src/Flipdish/Model/PrinterTurnedOffEvent.cs @@ -41,8 +41,11 @@ public partial class PrinterTurnedOffEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -54,7 +57,10 @@ public partial class PrinterTurnedOffEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -127,6 +133,13 @@ public partial class PrinterTurnedOffEvent : IEquatable [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 /// @@ -134,6 +147,20 @@ public partial class PrinterTurnedOffEvent : IEquatable [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 /// @@ -152,7 +179,10 @@ public override string ToString() 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(); } @@ -237,10 +267,25 @@ public bool Equals(PrinterTurnedOffEvent input) (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)) ); } @@ -273,8 +318,14 @@ public override int GetHashCode() 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 index 917c0a56..fab5c70b 100644 --- a/src/Flipdish/Model/PrinterTurnedOnEvent.cs +++ b/src/Flipdish/Model/PrinterTurnedOnEvent.cs @@ -41,8 +41,11 @@ public partial class PrinterTurnedOnEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -54,7 +57,10 @@ public partial class PrinterTurnedOnEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -127,6 +133,13 @@ public partial class PrinterTurnedOnEvent : IEquatable [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 /// @@ -134,6 +147,20 @@ public partial class PrinterTurnedOnEvent : IEquatable [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 /// @@ -152,7 +179,10 @@ public override string ToString() 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(); } @@ -237,10 +267,25 @@ public bool Equals(PrinterTurnedOnEvent input) (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)) ); } @@ -273,8 +318,14 @@ public override int GetHashCode() 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 index 80fd4241..b6273e1f 100644 --- a/src/Flipdish/Model/PrinterUnassignedFromStoreEvent.cs +++ b/src/Flipdish/Model/PrinterUnassignedFromStoreEvent.cs @@ -41,8 +41,11 @@ public partial class PrinterUnassignedFromStoreEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -54,7 +57,10 @@ public partial class PrinterUnassignedFromStoreEvent : IEquatable @@ -127,6 +133,13 @@ public partial class PrinterUnassignedFromStoreEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -134,6 +147,20 @@ public partial class PrinterUnassignedFromStoreEvent : IEquatable + /// 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 /// @@ -152,7 +179,10 @@ public override string ToString() 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(); } @@ -237,10 +267,25 @@ public bool Equals(PrinterUnassignedFromStoreEvent input) (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)) ); } @@ -273,8 +318,14 @@ public override int GetHashCode() 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/ProcessingFeeConfig.cs b/src/Flipdish/Model/ProcessingFeeConfig.cs index fe1947c6..e4978f09 100644 --- a/src/Flipdish/Model/ProcessingFeeConfig.cs +++ b/src/Flipdish/Model/ProcessingFeeConfig.cs @@ -88,7 +88,13 @@ public enum PaymentAccountTypeEnum /// Enum PayGreen for value: PayGreen /// [EnumMember(Value = "PayGreen")] - PayGreen = 9 + PayGreen = 9, + + /// + /// Enum GoogleWalletToken for value: GoogleWalletToken + /// + [EnumMember(Value = "GoogleWalletToken")] + GoogleWalletToken = 10 } /// diff --git a/src/Flipdish/Model/ProductReference.cs b/src/Flipdish/Model/ProductReference.cs index a32e54d7..fd1afcdf 100644 --- a/src/Flipdish/Model/ProductReference.cs +++ b/src/Flipdish/Model/ProductReference.cs @@ -63,8 +63,8 @@ protected ProductReference() { } /// /// Initializes a new instance of the class. /// - /// Details of the referenced {Flipdish.PublicModels.V1.Catalog.Groups.ProductReference.Product}. - /// Details of the referenced {Flipdish.PublicModels.V1.Catalog.Groups.ProductReference.Product}. + /// 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. @@ -94,16 +94,16 @@ protected ProductReference() { } } /// - /// Details of the referenced {Flipdish.PublicModels.V1.Catalog.Groups.ProductReference.Product} + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Groups.ProductReference.Product} /// - /// Details of the referenced {Flipdish.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.PublicModels.V1.Catalog.Groups.ProductReference.Product} + /// Details of the referenced {Flipdish.Menus.PublicModels.V1.Catalog.Groups.ProductReference.Product} /// - /// Details of the referenced {Flipdish.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; } diff --git a/src/Flipdish/Model/AddItemDetails.cs b/src/Flipdish/Model/PromotionAward.cs similarity index 52% rename from src/Flipdish/Model/AddItemDetails.cs rename to src/Flipdish/Model/PromotionAward.cs index 37f02d1b..c4193c0b 100644 --- a/src/Flipdish/Model/AddItemDetails.cs +++ b/src/Flipdish/Model/PromotionAward.cs @@ -23,35 +23,35 @@ namespace Flipdish.Model { /// - /// Add item details + /// Promotion /// [DataContract] - public partial class AddItemDetails : IEquatable + public partial class PromotionAward : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Promotional Item Id. - /// Promotional Item Name. - public AddItemDetails(int? promotionalItemId = default(int?), string promotionalItemName = default(string)) + /// 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.PromotionalItemId = promotionalItemId; - this.PromotionalItemName = promotionalItemName; + this.PromotionAwardId = promotionAwardId; + this.MenuItemPublicId = menuItemPublicId; } /// - /// Promotional Item Id + /// Promotion Award Id /// - /// Promotional Item Id - [DataMember(Name="PromotionalItemId", EmitDefaultValue=false)] - public int? PromotionalItemId { get; set; } + /// Promotion Award Id + [DataMember(Name="PromotionAwardId", EmitDefaultValue=false)] + public int? PromotionAwardId { get; set; } /// - /// Promotional Item Name + /// The public id of the menu item that will be awarded /// - /// Promotional Item Name - [DataMember(Name="PromotionalItemName", EmitDefaultValue=false)] - public string PromotionalItemName { get; set; } + /// 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 @@ -60,9 +60,9 @@ public partial class AddItemDetails : IEquatable public override string ToString() { var sb = new StringBuilder(); - sb.Append("class AddItemDetails {\n"); - sb.Append(" PromotionalItemId: ").Append(PromotionalItemId).Append("\n"); - sb.Append(" PromotionalItemName: ").Append(PromotionalItemName).Append("\n"); + 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(); } @@ -83,29 +83,29 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as AddItemDetails); + return this.Equals(input as PromotionAward); } /// - /// Returns true if AddItemDetails instances are equal + /// Returns true if PromotionAward instances are equal /// - /// Instance of AddItemDetails to be compared + /// Instance of PromotionAward to be compared /// Boolean - public bool Equals(AddItemDetails input) + public bool Equals(PromotionAward input) { if (input == null) return false; return ( - this.PromotionalItemId == input.PromotionalItemId || - (this.PromotionalItemId != null && - this.PromotionalItemId.Equals(input.PromotionalItemId)) + this.PromotionAwardId == input.PromotionAwardId || + (this.PromotionAwardId != null && + this.PromotionAwardId.Equals(input.PromotionAwardId)) ) && ( - this.PromotionalItemName == input.PromotionalItemName || - (this.PromotionalItemName != null && - this.PromotionalItemName.Equals(input.PromotionalItemName)) + this.MenuItemPublicId == input.MenuItemPublicId || + (this.MenuItemPublicId != null && + this.MenuItemPublicId.Equals(input.MenuItemPublicId)) ); } @@ -118,10 +118,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.PromotionalItemId != null) - hashCode = hashCode * 59 + this.PromotionalItemId.GetHashCode(); - if (this.PromotionalItemName != null) - hashCode = hashCode * 59 + this.PromotionalItemName.GetHashCode(); + 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/PushNotificationDeletedEvent.cs b/src/Flipdish/Model/PushNotificationDeletedEvent.cs index e6248646..ea38952f 100644 --- a/src/Flipdish/Model/PushNotificationDeletedEvent.cs +++ b/src/Flipdish/Model/PushNotificationDeletedEvent.cs @@ -38,8 +38,11 @@ public partial class PushNotificationDeletedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class PushNotificationDeletedEvent : IEquatable @@ -98,6 +104,13 @@ public partial class PushNotificationDeletedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -105,6 +118,20 @@ public partial class PushNotificationDeletedEvent : IEquatable + /// 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 /// @@ -120,7 +147,10 @@ public override string ToString() 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(); } @@ -190,10 +220,25 @@ public bool Equals(PushNotificationDeletedEvent input) (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)) ); } @@ -220,8 +265,14 @@ public override int GetHashCode() 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/PushNotificationScheduledEvent.cs b/src/Flipdish/Model/PushNotificationScheduledEvent.cs index 3f33cd54..6d373c30 100644 --- a/src/Flipdish/Model/PushNotificationScheduledEvent.cs +++ b/src/Flipdish/Model/PushNotificationScheduledEvent.cs @@ -39,8 +39,11 @@ public partial class PushNotificationScheduledEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class PushNotificationScheduledEvent : IEquatable @@ -106,6 +112,13 @@ public partial class PushNotificationScheduledEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -113,6 +126,20 @@ public partial class PushNotificationScheduledEvent : IEquatable + /// 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 /// @@ -129,7 +156,10 @@ public override string ToString() 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(); } @@ -204,10 +234,25 @@ public bool Equals(PushNotificationScheduledEvent input) (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)) ); } @@ -236,8 +281,14 @@ public override int GetHashCode() 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 index b671eb89..7f27b40a 100644 --- a/src/Flipdish/Model/PushNotificationSentEvent.cs +++ b/src/Flipdish/Model/PushNotificationSentEvent.cs @@ -38,8 +38,11 @@ public partial class PushNotificationSentEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class PushNotificationSentEvent : IEquatable @@ -99,6 +105,13 @@ public partial class PushNotificationSentEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -106,6 +119,20 @@ public partial class PushNotificationSentEvent : IEquatable + /// 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 /// @@ -121,7 +148,10 @@ public override string ToString() 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(); } @@ -191,10 +221,25 @@ public bool Equals(PushNotificationSentEvent input) (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)) ); } @@ -221,8 +266,14 @@ public override int GetHashCode() 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/RequestPasswordResetModel.cs b/src/Flipdish/Model/RequestPasswordResetModel.cs index f3d7ee7c..0803dc70 100644 --- a/src/Flipdish/Model/RequestPasswordResetModel.cs +++ b/src/Flipdish/Model/RequestPasswordResetModel.cs @@ -32,9 +32,11 @@ public partial class RequestPasswordResetModel : IEquatable class. /// /// Email address. - public RequestPasswordResetModel(string email = default(string)) + /// Google Recaptcha Token. + public RequestPasswordResetModel(string email = default(string), string recaptchaToken = default(string)) { this.Email = email; + this.RecaptchaToken = recaptchaToken; } /// @@ -44,6 +46,13 @@ public partial class RequestPasswordResetModel : IEquatable + /// Google Recaptcha Token + /// + /// Google Recaptcha Token + [DataMember(Name="RecaptchaToken", EmitDefaultValue=false)] + public string RecaptchaToken { get; set; } + /// /// Returns the string presentation of the object /// @@ -53,6 +62,7 @@ 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(); } @@ -91,6 +101,11 @@ public bool Equals(RequestPasswordResetModel input) this.Email == input.Email || (this.Email != null && this.Email.Equals(input.Email)) + ) && + ( + this.RecaptchaToken == input.RecaptchaToken || + (this.RecaptchaToken != null && + this.RecaptchaToken.Equals(input.RecaptchaToken)) ); } @@ -105,6 +120,8 @@ public override int GetHashCode() 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/RestApiArrayResultDriver.cs b/src/Flipdish/Model/RestApiArrayResultAllergen.cs similarity index 80% rename from src/Flipdish/Model/RestApiArrayResultDriver.cs rename to src/Flipdish/Model/RestApiArrayResultAllergen.cs index d78ede70..ea477625 100644 --- a/src/Flipdish/Model/RestApiArrayResultDriver.cs +++ b/src/Flipdish/Model/RestApiArrayResultAllergen.cs @@ -26,23 +26,23 @@ namespace Flipdish.Model /// Rest api array result /// [DataContract] - public partial class RestApiArrayResultDriver : IEquatable + public partial class RestApiArrayResultAllergen : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected RestApiArrayResultDriver() { } + protected RestApiArrayResultAllergen() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Generic data object. (required). - public RestApiArrayResultDriver(List data = default(List)) + 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 RestApiArrayResultDriver and cannot be null"); + throw new InvalidDataException("data is a required property for RestApiArrayResultAllergen and cannot be null"); } else { @@ -55,7 +55,7 @@ protected RestApiArrayResultDriver() { } /// /// Generic data object. [DataMember(Name="Data", EmitDefaultValue=false)] - public List Data { get; set; } + public List Data { get; set; } /// /// Returns the string presentation of the object @@ -64,7 +64,7 @@ protected RestApiArrayResultDriver() { } public override string ToString() { var sb = new StringBuilder(); - sb.Append("class RestApiArrayResultDriver {\n"); + sb.Append("class RestApiArrayResultAllergen {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -86,15 +86,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as RestApiArrayResultDriver); + return this.Equals(input as RestApiArrayResultAllergen); } /// - /// Returns true if RestApiArrayResultDriver instances are equal + /// Returns true if RestApiArrayResultAllergen instances are equal /// - /// Instance of RestApiArrayResultDriver to be compared + /// Instance of RestApiArrayResultAllergen to be compared /// Boolean - public bool Equals(RestApiArrayResultDriver input) + public bool Equals(RestApiArrayResultAllergen input) { if (input == null) return false; diff --git a/src/Flipdish/Model/RestApiArrayResultAppStoreAppConfigurationHeader.cs b/src/Flipdish/Model/RestApiArrayResultAppStoreAppSummary.cs similarity index 77% rename from src/Flipdish/Model/RestApiArrayResultAppStoreAppConfigurationHeader.cs rename to src/Flipdish/Model/RestApiArrayResultAppStoreAppSummary.cs index 2ccf1c23..c8f6cc7e 100644 --- a/src/Flipdish/Model/RestApiArrayResultAppStoreAppConfigurationHeader.cs +++ b/src/Flipdish/Model/RestApiArrayResultAppStoreAppSummary.cs @@ -26,23 +26,23 @@ namespace Flipdish.Model /// Rest api array result /// [DataContract] - public partial class RestApiArrayResultAppStoreAppConfigurationHeader : IEquatable + public partial class RestApiArrayResultAppStoreAppSummary : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected RestApiArrayResultAppStoreAppConfigurationHeader() { } + protected RestApiArrayResultAppStoreAppSummary() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Generic data object. (required). - public RestApiArrayResultAppStoreAppConfigurationHeader(List data = default(List)) + 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 RestApiArrayResultAppStoreAppConfigurationHeader and cannot be null"); + throw new InvalidDataException("data is a required property for RestApiArrayResultAppStoreAppSummary and cannot be null"); } else { @@ -55,7 +55,7 @@ protected RestApiArrayResultAppStoreAppConfigurationHeader() { } /// /// Generic data object. [DataMember(Name="Data", EmitDefaultValue=false)] - public List Data { get; set; } + public List Data { get; set; } /// /// Returns the string presentation of the object @@ -64,7 +64,7 @@ protected RestApiArrayResultAppStoreAppConfigurationHeader() { } public override string ToString() { var sb = new StringBuilder(); - sb.Append("class RestApiArrayResultAppStoreAppConfigurationHeader {\n"); + sb.Append("class RestApiArrayResultAppStoreAppSummary {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -86,15 +86,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as RestApiArrayResultAppStoreAppConfigurationHeader); + return this.Equals(input as RestApiArrayResultAppStoreAppSummary); } /// - /// Returns true if RestApiArrayResultAppStoreAppConfigurationHeader instances are equal + /// Returns true if RestApiArrayResultAppStoreAppSummary instances are equal /// - /// Instance of RestApiArrayResultAppStoreAppConfigurationHeader to be compared + /// Instance of RestApiArrayResultAppStoreAppSummary to be compared /// Boolean - public bool Equals(RestApiArrayResultAppStoreAppConfigurationHeader input) + public bool Equals(RestApiArrayResultAppStoreAppSummary input) { if (input == null) return false; 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/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/RestApiArrayResultDriverStore.cs b/src/Flipdish/Model/RestApiArrayResultMenuZone.cs similarity index 80% rename from src/Flipdish/Model/RestApiArrayResultDriverStore.cs rename to src/Flipdish/Model/RestApiArrayResultMenuZone.cs index 5ab13a74..033d102f 100644 --- a/src/Flipdish/Model/RestApiArrayResultDriverStore.cs +++ b/src/Flipdish/Model/RestApiArrayResultMenuZone.cs @@ -26,23 +26,23 @@ namespace Flipdish.Model /// Rest api array result /// [DataContract] - public partial class RestApiArrayResultDriverStore : IEquatable + public partial class RestApiArrayResultMenuZone : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected RestApiArrayResultDriverStore() { } + protected RestApiArrayResultMenuZone() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Generic data object. (required). - public RestApiArrayResultDriverStore(List data = default(List)) + 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 RestApiArrayResultDriverStore and cannot be null"); + throw new InvalidDataException("data is a required property for RestApiArrayResultMenuZone and cannot be null"); } else { @@ -55,7 +55,7 @@ protected RestApiArrayResultDriverStore() { } /// /// Generic data object. [DataMember(Name="Data", EmitDefaultValue=false)] - public List Data { get; set; } + public List Data { get; set; } /// /// Returns the string presentation of the object @@ -64,7 +64,7 @@ protected RestApiArrayResultDriverStore() { } public override string ToString() { var sb = new StringBuilder(); - sb.Append("class RestApiArrayResultDriverStore {\n"); + sb.Append("class RestApiArrayResultMenuZone {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -86,15 +86,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as RestApiArrayResultDriverStore); + return this.Equals(input as RestApiArrayResultMenuZone); } /// - /// Returns true if RestApiArrayResultDriverStore instances are equal + /// Returns true if RestApiArrayResultMenuZone instances are equal /// - /// Instance of RestApiArrayResultDriverStore to be compared + /// Instance of RestApiArrayResultMenuZone to be compared /// Boolean - public bool Equals(RestApiArrayResultDriverStore input) + public bool Equals(RestApiArrayResultMenuZone input) { if (input == null) return false; diff --git a/src/Flipdish/Model/RestApiArrayResultOrderBatchItem.cs b/src/Flipdish/Model/RestApiArrayResultOrderBatch.cs similarity index 82% rename from src/Flipdish/Model/RestApiArrayResultOrderBatchItem.cs rename to src/Flipdish/Model/RestApiArrayResultOrderBatch.cs index d55848a6..bc560af2 100644 --- a/src/Flipdish/Model/RestApiArrayResultOrderBatchItem.cs +++ b/src/Flipdish/Model/RestApiArrayResultOrderBatch.cs @@ -26,23 +26,23 @@ namespace Flipdish.Model /// Rest api array result /// [DataContract] - public partial class RestApiArrayResultOrderBatchItem : IEquatable + public partial class RestApiArrayResultOrderBatch : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected RestApiArrayResultOrderBatchItem() { } + protected RestApiArrayResultOrderBatch() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Generic data object. (required). - public RestApiArrayResultOrderBatchItem(List data = default(List)) + 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 RestApiArrayResultOrderBatchItem and cannot be null"); + throw new InvalidDataException("data is a required property for RestApiArrayResultOrderBatch and cannot be null"); } else { @@ -55,7 +55,7 @@ protected RestApiArrayResultOrderBatchItem() { } /// /// Generic data object. [DataMember(Name="Data", EmitDefaultValue=false)] - public List Data { get; set; } + public List Data { get; set; } /// /// Returns the string presentation of the object @@ -64,7 +64,7 @@ protected RestApiArrayResultOrderBatchItem() { } public override string ToString() { var sb = new StringBuilder(); - sb.Append("class RestApiArrayResultOrderBatchItem {\n"); + sb.Append("class RestApiArrayResultOrderBatch {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -86,15 +86,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as RestApiArrayResultOrderBatchItem); + return this.Equals(input as RestApiArrayResultOrderBatch); } /// - /// Returns true if RestApiArrayResultOrderBatchItem instances are equal + /// Returns true if RestApiArrayResultOrderBatch instances are equal /// - /// Instance of RestApiArrayResultOrderBatchItem to be compared + /// Instance of RestApiArrayResultOrderBatch to be compared /// Boolean - public bool Equals(RestApiArrayResultOrderBatchItem input) + public bool Equals(RestApiArrayResultOrderBatch input) { if (input == null) return false; 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/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/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/RestApiArrayResultStoreChannelStoreMapping.cs b/src/Flipdish/Model/RestApiArrayResultStoreDeliveryZoneFeeConfig.cs similarity index 77% rename from src/Flipdish/Model/RestApiArrayResultStoreChannelStoreMapping.cs rename to src/Flipdish/Model/RestApiArrayResultStoreDeliveryZoneFeeConfig.cs index 9a8d4677..f4c7ef44 100644 --- a/src/Flipdish/Model/RestApiArrayResultStoreChannelStoreMapping.cs +++ b/src/Flipdish/Model/RestApiArrayResultStoreDeliveryZoneFeeConfig.cs @@ -26,23 +26,23 @@ namespace Flipdish.Model /// Rest api array result /// [DataContract] - public partial class RestApiArrayResultStoreChannelStoreMapping : IEquatable + public partial class RestApiArrayResultStoreDeliveryZoneFeeConfig : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected RestApiArrayResultStoreChannelStoreMapping() { } + protected RestApiArrayResultStoreDeliveryZoneFeeConfig() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Generic data object. (required). - public RestApiArrayResultStoreChannelStoreMapping(List data = default(List)) + 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 RestApiArrayResultStoreChannelStoreMapping and cannot be null"); + throw new InvalidDataException("data is a required property for RestApiArrayResultStoreDeliveryZoneFeeConfig and cannot be null"); } else { @@ -55,7 +55,7 @@ protected RestApiArrayResultStoreChannelStoreMapping() { } /// /// Generic data object. [DataMember(Name="Data", EmitDefaultValue=false)] - public List Data { get; set; } + public List Data { get; set; } /// /// Returns the string presentation of the object @@ -64,7 +64,7 @@ protected RestApiArrayResultStoreChannelStoreMapping() { } public override string ToString() { var sb = new StringBuilder(); - sb.Append("class RestApiArrayResultStoreChannelStoreMapping {\n"); + sb.Append("class RestApiArrayResultStoreDeliveryZoneFeeConfig {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -86,15 +86,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as RestApiArrayResultStoreChannelStoreMapping); + return this.Equals(input as RestApiArrayResultStoreDeliveryZoneFeeConfig); } /// - /// Returns true if RestApiArrayResultStoreChannelStoreMapping instances are equal + /// Returns true if RestApiArrayResultStoreDeliveryZoneFeeConfig instances are equal /// - /// Instance of RestApiArrayResultStoreChannelStoreMapping to be compared + /// Instance of RestApiArrayResultStoreDeliveryZoneFeeConfig to be compared /// Boolean - public bool Equals(RestApiArrayResultStoreChannelStoreMapping input) + public bool Equals(RestApiArrayResultStoreDeliveryZoneFeeConfig input) { if (input == null) return false; 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/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/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/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/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/RestApiPaginationResultHttpRequestAndResponseLog.cs b/src/Flipdish/Model/RestApiPaginationResultRestaurant.cs similarity index 81% rename from src/Flipdish/Model/RestApiPaginationResultHttpRequestAndResponseLog.cs rename to src/Flipdish/Model/RestApiPaginationResultRestaurant.cs index e2416c20..ef59fe97 100644 --- a/src/Flipdish/Model/RestApiPaginationResultHttpRequestAndResponseLog.cs +++ b/src/Flipdish/Model/RestApiPaginationResultRestaurant.cs @@ -26,26 +26,26 @@ namespace Flipdish.Model /// Rest api pagination result /// [DataContract] - public partial class RestApiPaginationResultHttpRequestAndResponseLog : IEquatable + public partial class RestApiPaginationResultRestaurant : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected RestApiPaginationResultHttpRequestAndResponseLog() { } + protected RestApiPaginationResultRestaurant() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Current page index (required). /// Current page size (required). /// Total record count (required). /// Generic data object. (required). - public RestApiPaginationResultHttpRequestAndResponseLog(int? page = default(int?), int? limit = default(int?), int? totalRecordCount = default(int?), List data = default(List)) + 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 RestApiPaginationResultHttpRequestAndResponseLog and cannot be null"); + throw new InvalidDataException("page is a required property for RestApiPaginationResultRestaurant and cannot be null"); } else { @@ -54,7 +54,7 @@ protected RestApiPaginationResultHttpRequestAndResponseLog() { } // to ensure "limit" is required (not null) if (limit == null) { - throw new InvalidDataException("limit is a required property for RestApiPaginationResultHttpRequestAndResponseLog and cannot be null"); + throw new InvalidDataException("limit is a required property for RestApiPaginationResultRestaurant and cannot be null"); } else { @@ -63,7 +63,7 @@ protected RestApiPaginationResultHttpRequestAndResponseLog() { } // to ensure "totalRecordCount" is required (not null) if (totalRecordCount == null) { - throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultHttpRequestAndResponseLog and cannot be null"); + throw new InvalidDataException("totalRecordCount is a required property for RestApiPaginationResultRestaurant and cannot be null"); } else { @@ -72,7 +72,7 @@ protected RestApiPaginationResultHttpRequestAndResponseLog() { } // to ensure "data" is required (not null) if (data == null) { - throw new InvalidDataException("data is a required property for RestApiPaginationResultHttpRequestAndResponseLog and cannot be null"); + throw new InvalidDataException("data is a required property for RestApiPaginationResultRestaurant and cannot be null"); } else { @@ -106,7 +106,7 @@ protected RestApiPaginationResultHttpRequestAndResponseLog() { } /// /// Generic data object. [DataMember(Name="Data", EmitDefaultValue=false)] - public List Data { get; set; } + public List Data { get; set; } /// /// Returns the string presentation of the object @@ -115,7 +115,7 @@ protected RestApiPaginationResultHttpRequestAndResponseLog() { } public override string ToString() { var sb = new StringBuilder(); - sb.Append("class RestApiPaginationResultHttpRequestAndResponseLog {\n"); + 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"); @@ -140,15 +140,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as RestApiPaginationResultHttpRequestAndResponseLog); + return this.Equals(input as RestApiPaginationResultRestaurant); } /// - /// Returns true if RestApiPaginationResultHttpRequestAndResponseLog instances are equal + /// Returns true if RestApiPaginationResultRestaurant instances are equal /// - /// Instance of RestApiPaginationResultHttpRequestAndResponseLog to be compared + /// Instance of RestApiPaginationResultRestaurant to be compared /// Boolean - public bool Equals(RestApiPaginationResultHttpRequestAndResponseLog input) + public bool Equals(RestApiPaginationResultRestaurant input) { if (input == null) return false; 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/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/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/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/RestApiResultKioskCashSetting.cs b/src/Flipdish/Model/RestApiResultAssetResultModel.cs similarity index 80% rename from src/Flipdish/Model/RestApiResultKioskCashSetting.cs rename to src/Flipdish/Model/RestApiResultAssetResultModel.cs index 46175b1d..04889ab6 100644 --- a/src/Flipdish/Model/RestApiResultKioskCashSetting.cs +++ b/src/Flipdish/Model/RestApiResultAssetResultModel.cs @@ -26,23 +26,23 @@ namespace Flipdish.Model /// Rest api result /// [DataContract] - public partial class RestApiResultKioskCashSetting : IEquatable + public partial class RestApiResultAssetResultModel : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected RestApiResultKioskCashSetting() { } + protected RestApiResultAssetResultModel() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Generic data object. (required). - public RestApiResultKioskCashSetting(KioskCashSetting data = default(KioskCashSetting)) + 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 RestApiResultKioskCashSetting and cannot be null"); + throw new InvalidDataException("data is a required property for RestApiResultAssetResultModel and cannot be null"); } else { @@ -55,7 +55,7 @@ protected RestApiResultKioskCashSetting() { } /// /// Generic data object. [DataMember(Name="Data", EmitDefaultValue=false)] - public KioskCashSetting Data { get; set; } + public AssetResultModel Data { get; set; } /// /// Returns the string presentation of the object @@ -64,7 +64,7 @@ protected RestApiResultKioskCashSetting() { } public override string ToString() { var sb = new StringBuilder(); - sb.Append("class RestApiResultKioskCashSetting {\n"); + sb.Append("class RestApiResultAssetResultModel {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -86,15 +86,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as RestApiResultKioskCashSetting); + return this.Equals(input as RestApiResultAssetResultModel); } /// - /// Returns true if RestApiResultKioskCashSetting instances are equal + /// Returns true if RestApiResultAssetResultModel instances are equal /// - /// Instance of RestApiResultKioskCashSetting to be compared + /// Instance of RestApiResultAssetResultModel to be compared /// Boolean - public bool Equals(RestApiResultKioskCashSetting input) + public bool Equals(RestApiResultAssetResultModel input) { if (input == null) return false; 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/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/RestApiResultStoreKioskSettings.cs b/src/Flipdish/Model/RestApiResultCrossSellMenuItems.cs similarity index 80% rename from src/Flipdish/Model/RestApiResultStoreKioskSettings.cs rename to src/Flipdish/Model/RestApiResultCrossSellMenuItems.cs index 6539fe83..4e53c82a 100644 --- a/src/Flipdish/Model/RestApiResultStoreKioskSettings.cs +++ b/src/Flipdish/Model/RestApiResultCrossSellMenuItems.cs @@ -26,23 +26,23 @@ namespace Flipdish.Model /// Rest api result /// [DataContract] - public partial class RestApiResultStoreKioskSettings : IEquatable + public partial class RestApiResultCrossSellMenuItems : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected RestApiResultStoreKioskSettings() { } + protected RestApiResultCrossSellMenuItems() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Generic data object. (required). - public RestApiResultStoreKioskSettings(StoreKioskSettings data = default(StoreKioskSettings)) + 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 RestApiResultStoreKioskSettings and cannot be null"); + throw new InvalidDataException("data is a required property for RestApiResultCrossSellMenuItems and cannot be null"); } else { @@ -55,7 +55,7 @@ protected RestApiResultStoreKioskSettings() { } /// /// Generic data object. [DataMember(Name="Data", EmitDefaultValue=false)] - public StoreKioskSettings Data { get; set; } + public CrossSellMenuItems Data { get; set; } /// /// Returns the string presentation of the object @@ -64,7 +64,7 @@ protected RestApiResultStoreKioskSettings() { } public override string ToString() { var sb = new StringBuilder(); - sb.Append("class RestApiResultStoreKioskSettings {\n"); + sb.Append("class RestApiResultCrossSellMenuItems {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -86,15 +86,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as RestApiResultStoreKioskSettings); + return this.Equals(input as RestApiResultCrossSellMenuItems); } /// - /// Returns true if RestApiResultStoreKioskSettings instances are equal + /// Returns true if RestApiResultCrossSellMenuItems instances are equal /// - /// Instance of RestApiResultStoreKioskSettings to be compared + /// Instance of RestApiResultCrossSellMenuItems to be compared /// Boolean - public bool Equals(RestApiResultStoreKioskSettings input) + public bool Equals(RestApiResultCrossSellMenuItems input) { if (input == null) return false; 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/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/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/RestApiResultStripeTerminalPrivateKey.cs b/src/Flipdish/Model/RestApiResultHasPaymentMethodResponse.cs similarity index 78% rename from src/Flipdish/Model/RestApiResultStripeTerminalPrivateKey.cs rename to src/Flipdish/Model/RestApiResultHasPaymentMethodResponse.cs index 1dddcd58..1768adc8 100644 --- a/src/Flipdish/Model/RestApiResultStripeTerminalPrivateKey.cs +++ b/src/Flipdish/Model/RestApiResultHasPaymentMethodResponse.cs @@ -26,23 +26,23 @@ namespace Flipdish.Model /// Rest api result /// [DataContract] - public partial class RestApiResultStripeTerminalPrivateKey : IEquatable + public partial class RestApiResultHasPaymentMethodResponse : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected RestApiResultStripeTerminalPrivateKey() { } + protected RestApiResultHasPaymentMethodResponse() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Generic data object. (required). - public RestApiResultStripeTerminalPrivateKey(StripeTerminalPrivateKey data = default(StripeTerminalPrivateKey)) + 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 RestApiResultStripeTerminalPrivateKey and cannot be null"); + throw new InvalidDataException("data is a required property for RestApiResultHasPaymentMethodResponse and cannot be null"); } else { @@ -55,7 +55,7 @@ protected RestApiResultStripeTerminalPrivateKey() { } /// /// Generic data object. [DataMember(Name="Data", EmitDefaultValue=false)] - public StripeTerminalPrivateKey Data { get; set; } + public HasPaymentMethodResponse Data { get; set; } /// /// Returns the string presentation of the object @@ -64,7 +64,7 @@ protected RestApiResultStripeTerminalPrivateKey() { } public override string ToString() { var sb = new StringBuilder(); - sb.Append("class RestApiResultStripeTerminalPrivateKey {\n"); + sb.Append("class RestApiResultHasPaymentMethodResponse {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -86,15 +86,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as RestApiResultStripeTerminalPrivateKey); + return this.Equals(input as RestApiResultHasPaymentMethodResponse); } /// - /// Returns true if RestApiResultStripeTerminalPrivateKey instances are equal + /// Returns true if RestApiResultHasPaymentMethodResponse instances are equal /// - /// Instance of RestApiResultStripeTerminalPrivateKey to be compared + /// Instance of RestApiResultHasPaymentMethodResponse to be compared /// Boolean - public bool Equals(RestApiResultStripeTerminalPrivateKey input) + public bool Equals(RestApiResultHasPaymentMethodResponse input) { if (input == null) return false; 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/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/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/RestApiResultKioskStoreSettings.cs b/src/Flipdish/Model/RestApiResultKioskStripeLocation.cs similarity index 80% rename from src/Flipdish/Model/RestApiResultKioskStoreSettings.cs rename to src/Flipdish/Model/RestApiResultKioskStripeLocation.cs index d024f853..33691184 100644 --- a/src/Flipdish/Model/RestApiResultKioskStoreSettings.cs +++ b/src/Flipdish/Model/RestApiResultKioskStripeLocation.cs @@ -26,23 +26,23 @@ namespace Flipdish.Model /// Rest api result /// [DataContract] - public partial class RestApiResultKioskStoreSettings : IEquatable + public partial class RestApiResultKioskStripeLocation : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected RestApiResultKioskStoreSettings() { } + protected RestApiResultKioskStripeLocation() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Generic data object. (required). - public RestApiResultKioskStoreSettings(KioskStoreSettings data = default(KioskStoreSettings)) + 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 RestApiResultKioskStoreSettings and cannot be null"); + throw new InvalidDataException("data is a required property for RestApiResultKioskStripeLocation and cannot be null"); } else { @@ -55,7 +55,7 @@ protected RestApiResultKioskStoreSettings() { } /// /// Generic data object. [DataMember(Name="Data", EmitDefaultValue=false)] - public KioskStoreSettings Data { get; set; } + public KioskStripeLocation Data { get; set; } /// /// Returns the string presentation of the object @@ -64,7 +64,7 @@ protected RestApiResultKioskStoreSettings() { } public override string ToString() { var sb = new StringBuilder(); - sb.Append("class RestApiResultKioskStoreSettings {\n"); + sb.Append("class RestApiResultKioskStripeLocation {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -86,15 +86,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as RestApiResultKioskStoreSettings); + return this.Equals(input as RestApiResultKioskStripeLocation); } /// - /// Returns true if RestApiResultKioskStoreSettings instances are equal + /// Returns true if RestApiResultKioskStripeLocation instances are equal /// - /// Instance of RestApiResultKioskStoreSettings to be compared + /// Instance of RestApiResultKioskStripeLocation to be compared /// Boolean - public bool Equals(RestApiResultKioskStoreSettings input) + public bool Equals(RestApiResultKioskStripeLocation input) { if (input == null) return false; 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/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/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/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/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/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/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/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/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/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/RestApiResultOrderIngestSubmitOrderResponse.cs b/src/Flipdish/Model/RestApiResultUserPushNotificationSentResult.cs similarity index 76% rename from src/Flipdish/Model/RestApiResultOrderIngestSubmitOrderResponse.cs rename to src/Flipdish/Model/RestApiResultUserPushNotificationSentResult.cs index 1aef94d9..aa68adee 100644 --- a/src/Flipdish/Model/RestApiResultOrderIngestSubmitOrderResponse.cs +++ b/src/Flipdish/Model/RestApiResultUserPushNotificationSentResult.cs @@ -26,23 +26,23 @@ namespace Flipdish.Model /// Rest api result /// [DataContract] - public partial class RestApiResultOrderIngestSubmitOrderResponse : IEquatable + public partial class RestApiResultUserPushNotificationSentResult : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected RestApiResultOrderIngestSubmitOrderResponse() { } + protected RestApiResultUserPushNotificationSentResult() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Generic data object. (required). - public RestApiResultOrderIngestSubmitOrderResponse(OrderIngestSubmitOrderResponse data = default(OrderIngestSubmitOrderResponse)) + 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 RestApiResultOrderIngestSubmitOrderResponse and cannot be null"); + throw new InvalidDataException("data is a required property for RestApiResultUserPushNotificationSentResult and cannot be null"); } else { @@ -55,7 +55,7 @@ protected RestApiResultOrderIngestSubmitOrderResponse() { } /// /// Generic data object. [DataMember(Name="Data", EmitDefaultValue=false)] - public OrderIngestSubmitOrderResponse Data { get; set; } + public UserPushNotificationSentResult Data { get; set; } /// /// Returns the string presentation of the object @@ -64,7 +64,7 @@ protected RestApiResultOrderIngestSubmitOrderResponse() { } public override string ToString() { var sb = new StringBuilder(); - sb.Append("class RestApiResultOrderIngestSubmitOrderResponse {\n"); + sb.Append("class RestApiResultUserPushNotificationSentResult {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -86,15 +86,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as RestApiResultOrderIngestSubmitOrderResponse); + return this.Equals(input as RestApiResultUserPushNotificationSentResult); } /// - /// Returns true if RestApiResultOrderIngestSubmitOrderResponse instances are equal + /// Returns true if RestApiResultUserPushNotificationSentResult instances are equal /// - /// Instance of RestApiResultOrderIngestSubmitOrderResponse to be compared + /// Instance of RestApiResultUserPushNotificationSentResult to be compared /// Boolean - public bool Equals(RestApiResultOrderIngestSubmitOrderResponse input) + public bool Equals(RestApiResultUserPushNotificationSentResult input) { if (input == null) return false; 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/RestApiResultDriver.cs b/src/Flipdish/Model/RestApiResultVoucher.cs similarity index 82% rename from src/Flipdish/Model/RestApiResultDriver.cs rename to src/Flipdish/Model/RestApiResultVoucher.cs index 7d4a2350..d05f57cb 100644 --- a/src/Flipdish/Model/RestApiResultDriver.cs +++ b/src/Flipdish/Model/RestApiResultVoucher.cs @@ -26,23 +26,23 @@ namespace Flipdish.Model /// Rest api result /// [DataContract] - public partial class RestApiResultDriver : IEquatable + public partial class RestApiResultVoucher : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected RestApiResultDriver() { } + protected RestApiResultVoucher() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Generic data object. (required). - public RestApiResultDriver(Driver data = default(Driver)) + 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 RestApiResultDriver and cannot be null"); + throw new InvalidDataException("data is a required property for RestApiResultVoucher and cannot be null"); } else { @@ -55,7 +55,7 @@ protected RestApiResultDriver() { } /// /// Generic data object. [DataMember(Name="Data", EmitDefaultValue=false)] - public Driver Data { get; set; } + public Voucher Data { get; set; } /// /// Returns the string presentation of the object @@ -64,7 +64,7 @@ protected RestApiResultDriver() { } public override string ToString() { var sb = new StringBuilder(); - sb.Append("class RestApiResultDriver {\n"); + sb.Append("class RestApiResultVoucher {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -86,15 +86,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as RestApiResultDriver); + return this.Equals(input as RestApiResultVoucher); } /// - /// Returns true if RestApiResultDriver instances are equal + /// Returns true if RestApiResultVoucher instances are equal /// - /// Instance of RestApiResultDriver to be compared + /// Instance of RestApiResultVoucher to be compared /// Boolean - public bool Equals(RestApiResultDriver input) + public bool Equals(RestApiResultVoucher input) { if (input == null) return false; 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/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 index 339554d0..67facaab 100644 --- a/src/Flipdish/Model/RestaurantVoucherAssignedStore.cs +++ b/src/Flipdish/Model/RestaurantVoucherAssignedStore.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// RestaurantVoucherAssignedStore + /// RestaurantVoucherAssignedStore. /// [DataContract] public partial class RestaurantVoucherAssignedStore : IEquatable @@ -31,9 +31,9 @@ public partial class RestaurantVoucherAssignedStore : IEquatable /// Initializes a new instance of the class. /// - /// storeId. - /// name. - /// active. + /// StoreId.. + /// Name.. + /// Active.. public RestaurantVoucherAssignedStore(int? storeId = default(int?), string name = default(string), bool? active = default(bool?)) { this.StoreId = storeId; @@ -42,20 +42,23 @@ public partial class RestaurantVoucherAssignedStore : IEquatable - /// Gets or Sets StoreId + /// StoreId. /// + /// StoreId. [DataMember(Name="StoreId", EmitDefaultValue=false)] public int? StoreId { get; set; } /// - /// Gets or Sets Name + /// Name. /// + /// Name. [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Gets or Sets Active + /// Active. /// + /// Active. [DataMember(Name="Active", EmitDefaultValue=false)] public bool? Active { get; set; } diff --git a/src/Flipdish/Model/RestaurantVoucherEligibleStore.cs b/src/Flipdish/Model/RestaurantVoucherEligibleStore.cs index 39bf65ee..284e7c20 100644 --- a/src/Flipdish/Model/RestaurantVoucherEligibleStore.cs +++ b/src/Flipdish/Model/RestaurantVoucherEligibleStore.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// RestaurantVoucherEligibleStore + /// RestaurantVoucherEligibleStore. /// [DataContract] public partial class RestaurantVoucherEligibleStore : IEquatable @@ -31,8 +31,8 @@ public partial class RestaurantVoucherEligibleStore : IEquatable /// Initializes a new instance of the class. /// - /// storeId. - /// name. + /// StoreId.. + /// Name.. public RestaurantVoucherEligibleStore(int? storeId = default(int?), string name = default(string)) { this.StoreId = storeId; @@ -40,14 +40,16 @@ public partial class RestaurantVoucherEligibleStore : IEquatable - /// Gets or Sets StoreId + /// StoreId. /// + /// StoreId. [DataMember(Name="StoreId", EmitDefaultValue=false)] public int? StoreId { get; set; } /// - /// Gets or Sets Name + /// Name. /// + /// Name. [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } diff --git a/src/Flipdish/Model/RestaurantVoucherPayGreenConfiguration.cs b/src/Flipdish/Model/RestaurantVoucherPayGreenConfiguration.cs index 06ad8eed..88d46225 100644 --- a/src/Flipdish/Model/RestaurantVoucherPayGreenConfiguration.cs +++ b/src/Flipdish/Model/RestaurantVoucherPayGreenConfiguration.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// RestaurantVoucherPayGreenConfiguration + /// RestaurantVoucherPayGreenConfiguration. /// [DataContract] public partial class RestaurantVoucherPayGreenConfiguration : IEquatable @@ -31,10 +31,10 @@ public partial class RestaurantVoucherPayGreenConfiguration : IEquatable /// Initializes a new instance of the class. /// - /// name. - /// payGreenId. - /// payGreenConfigurationId. - /// assignedStores. + /// 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; @@ -44,26 +44,30 @@ public partial class RestaurantVoucherPayGreenConfiguration : IEquatable - /// Gets or Sets Name + /// Name. /// + /// Name. [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Gets or Sets PayGreenId + /// PayGreenId. /// + /// PayGreenId. [DataMember(Name="PayGreenId", EmitDefaultValue=false)] public string PayGreenId { get; set; } /// - /// Gets or Sets PayGreenConfigurationId + /// PayGreenConfigurationId. /// + /// PayGreenConfigurationId. [DataMember(Name="PayGreenConfigurationId", EmitDefaultValue=false)] public int? PayGreenConfigurationId { get; set; } /// - /// Gets or Sets AssignedStores + /// AssignedStores. /// + /// AssignedStores. [DataMember(Name="AssignedStores", EmitDefaultValue=false)] public List AssignedStores { get; set; } diff --git a/src/Flipdish/Model/RestaurantVoucherPayGreenConfigurationSummary.cs b/src/Flipdish/Model/RestaurantVoucherPayGreenConfigurationSummary.cs index 0e13cd5f..7a1bfa77 100644 --- a/src/Flipdish/Model/RestaurantVoucherPayGreenConfigurationSummary.cs +++ b/src/Flipdish/Model/RestaurantVoucherPayGreenConfigurationSummary.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// RestaurantVoucherPayGreenConfigurationSummary + /// RestaurantVoucherPayGreenConfigurationSummary. /// [DataContract] public partial class RestaurantVoucherPayGreenConfigurationSummary : IEquatable @@ -31,8 +31,8 @@ public partial class RestaurantVoucherPayGreenConfigurationSummary : IEquatable /// /// Initializes a new instance of the class. /// - /// name. - /// payGreenConfigurationId. + /// Name.. + /// PayGreenConfigurationId.. public RestaurantVoucherPayGreenConfigurationSummary(string name = default(string), int? payGreenConfigurationId = default(int?)) { this.Name = name; @@ -40,14 +40,16 @@ public partial class RestaurantVoucherPayGreenConfigurationSummary : IEquatable } /// - /// Gets or Sets Name + /// Name. /// + /// Name. [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Gets or Sets PayGreenConfigurationId + /// PayGreenConfigurationId. /// + /// PayGreenConfigurationId. [DataMember(Name="PayGreenConfigurationId", EmitDefaultValue=false)] public int? PayGreenConfigurationId { get; set; } diff --git a/src/Flipdish/Model/RestaurantVoucherPayGreenStoreConfiguration.cs b/src/Flipdish/Model/RestaurantVoucherPayGreenStoreConfiguration.cs index 2db72ad1..f70537f3 100644 --- a/src/Flipdish/Model/RestaurantVoucherPayGreenStoreConfiguration.cs +++ b/src/Flipdish/Model/RestaurantVoucherPayGreenStoreConfiguration.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// RestaurantVoucherPayGreenStoreConfiguration + /// RestaurantVoucherPayGreenStoreConfiguration. /// [DataContract] public partial class RestaurantVoucherPayGreenStoreConfiguration : IEquatable @@ -31,10 +31,10 @@ public partial class RestaurantVoucherPayGreenStoreConfiguration : IEquatable /// Initializes a new instance of the class. /// - /// name. - /// active. - /// payGreenId. - /// payGreenConfigurationId. + /// 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; @@ -44,26 +44,30 @@ public partial class RestaurantVoucherPayGreenStoreConfiguration : IEquatable - /// Gets or Sets Name + /// Name. /// + /// Name. [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Gets or Sets Active + /// Active. /// + /// Active. [DataMember(Name="Active", EmitDefaultValue=false)] public bool? Active { get; set; } /// - /// Gets or Sets PayGreenId + /// PayGreenId. /// + /// PayGreenId. [DataMember(Name="PayGreenId", EmitDefaultValue=false)] public string PayGreenId { get; set; } /// - /// Gets or Sets PayGreenConfigurationId + /// PayGreenConfigurationId. /// + /// PayGreenConfigurationId. [DataMember(Name="PayGreenConfigurationId", EmitDefaultValue=false)] public int? PayGreenConfigurationId { get; set; } diff --git a/src/Flipdish/Model/RetentionCampaign.cs b/src/Flipdish/Model/RetentionCampaign.cs index 7836f0b0..e3fe40b0 100644 --- a/src/Flipdish/Model/RetentionCampaign.cs +++ b/src/Flipdish/Model/RetentionCampaign.cs @@ -34,8 +34,10 @@ public partial class RetentionCampaign : IEquatable /// 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. @@ -43,13 +45,17 @@ public partial class RetentionCampaign : IEquatable /// Campaign will apply to existing orders. /// Is campaign enabled. /// Ids of stores this campaign applies to. - public RetentionCampaign(int? campaignId = default(int?), CampaignStatistics statistics = default(CampaignStatistics), List stores = default(List), int? notifyCustomerAfterMinutes = default(int?), int? percentDiscountAmount = default(int?), 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)) + /// 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; @@ -57,6 +63,8 @@ public partial class RetentionCampaign : IEquatable this.IncludeExistingOrders = includeExistingOrders; this.IsEnabled = isEnabled; this.StoreIds = storeIds; + this.AppId = appId; + this.ForceDiscount = forceDiscount; } /// @@ -80,6 +88,13 @@ public partial class RetentionCampaign : IEquatable [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 /// @@ -94,6 +109,13 @@ public partial class RetentionCampaign : IEquatable [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 /// @@ -143,6 +165,20 @@ public partial class RetentionCampaign : IEquatable [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 /// @@ -154,8 +190,10 @@ public override string ToString() 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"); @@ -163,6 +201,8 @@ public override string ToString() 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(); } @@ -212,6 +252,11 @@ public bool Equals(RetentionCampaign input) 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 && @@ -222,6 +267,11 @@ public bool Equals(RetentionCampaign input) (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 && @@ -256,6 +306,16 @@ public bool Equals(RetentionCampaign input) 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)) ); } @@ -274,10 +334,14 @@ public override int GetHashCode() 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) @@ -292,6 +356,10 @@ public override int GetHashCode() 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 index 21d0185f..4a0b3dfa 100644 --- a/src/Flipdish/Model/RetentionCampaignBase.cs +++ b/src/Flipdish/Model/RetentionCampaignBase.cs @@ -33,6 +33,7 @@ public partial class RetentionCampaignBase : IEquatable /// /// 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. @@ -40,10 +41,13 @@ public partial class RetentionCampaignBase : IEquatable /// Campaign will apply to existing orders. /// Is campaign enabled. /// Ids of stores this campaign applies to. - public RetentionCampaignBase(int? notifyCustomerAfterMinutes = default(int?), int? percentDiscountAmount = default(int?), 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)) + /// 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; @@ -51,6 +55,8 @@ public partial class RetentionCampaignBase : IEquatable this.IncludeExistingOrders = includeExistingOrders; this.IsEnabled = isEnabled; this.StoreIds = storeIds; + this.AppId = appId; + this.ForceDiscount = forceDiscount; } /// @@ -67,6 +73,13 @@ public partial class RetentionCampaignBase : IEquatable [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 /// @@ -116,6 +129,20 @@ public partial class RetentionCampaignBase : IEquatable [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 /// @@ -126,6 +153,7 @@ public override string ToString() 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"); @@ -133,6 +161,8 @@ public override string ToString() 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(); } @@ -177,6 +207,11 @@ public bool Equals(RetentionCampaignBase input) (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 && @@ -211,6 +246,16 @@ public bool Equals(RetentionCampaignBase input) 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)) ); } @@ -227,6 +272,8 @@ public override int GetHashCode() 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) @@ -241,6 +288,10 @@ public override int GetHashCode() 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 index f8b860a2..c3bd82f7 100644 --- a/src/Flipdish/Model/RetentionCampaignCreatedEvent.cs +++ b/src/Flipdish/Model/RetentionCampaignCreatedEvent.cs @@ -40,8 +40,11 @@ public partial class RetentionCampaignCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class RetentionCampaignCreatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class RetentionCampaignCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class RetentionCampaignCreatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(RetentionCampaignCreatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 5d51ac9d..f872e54d 100644 --- a/src/Flipdish/Model/RetentionCampaignDeletedEvent.cs +++ b/src/Flipdish/Model/RetentionCampaignDeletedEvent.cs @@ -40,8 +40,11 @@ public partial class RetentionCampaignDeletedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class RetentionCampaignDeletedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class RetentionCampaignDeletedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class RetentionCampaignDeletedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(RetentionCampaignDeletedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index bc91a937..58fcef0f 100644 --- a/src/Flipdish/Model/RetentionCampaignUpdatedEvent.cs +++ b/src/Flipdish/Model/RetentionCampaignUpdatedEvent.cs @@ -40,8 +40,11 @@ public partial class RetentionCampaignUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class RetentionCampaignUpdatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class RetentionCampaignUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class RetentionCampaignUpdatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(RetentionCampaignUpdatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 3c968d91..50117679 100644 --- a/src/Flipdish/Model/RevenueAdjustmentsDetails.cs +++ b/src/Flipdish/Model/RevenueAdjustmentsDetails.cs @@ -32,16 +32,22 @@ public partial class RevenueAdjustmentsDetails : IEquatable 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? cashSalesRefundedAmount = default(double?), double? customerCashFees = default(double?), int? refundsCount = default(int?), double? totalOnlineRevenueAdjustments = default(double?)) + 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; } @@ -52,6 +58,13 @@ public partial class RevenueAdjustmentsDetails : IEquatable + /// POS Online sales refunds + /// + /// POS Online sales refunds + [DataMember(Name="PosSalesRefundedAmount", EmitDefaultValue=false)] + public double? PosSalesRefundedAmount { get; set; } + /// /// Cash sales refunds /// @@ -73,6 +86,20 @@ public partial class RevenueAdjustmentsDetails : IEquatable + /// 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 /// @@ -89,9 +116,12 @@ 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(); @@ -132,6 +162,11 @@ public bool Equals(RevenueAdjustmentsDetails input) (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 && @@ -147,6 +182,16 @@ public bool Equals(RevenueAdjustmentsDetails input) (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 && @@ -165,12 +210,18 @@ public override int GetHashCode() 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/RequestLoginPinModel.cs b/src/Flipdish/Model/SafeWaitHandle.cs similarity index 59% rename from src/Flipdish/Model/RequestLoginPinModel.cs rename to src/Flipdish/Model/SafeWaitHandle.cs index 02afb559..012e7e33 100644 --- a/src/Flipdish/Model/RequestLoginPinModel.cs +++ b/src/Flipdish/Model/SafeWaitHandle.cs @@ -23,39 +23,30 @@ namespace Flipdish.Model { /// - /// Request login PIN response + /// SafeWaitHandle /// [DataContract] - public partial class RequestLoginPinModel : IEquatable + public partial class SafeWaitHandle : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected RequestLoginPinModel() { } - /// - /// Initializes a new instance of the class. - /// - /// Email address (required). - public RequestLoginPinModel(string email = default(string)) + public SafeWaitHandle() { - // to ensure "email" is required (not null) - if (email == null) - { - throw new InvalidDataException("email is a required property for RequestLoginPinModel and cannot be null"); - } - else - { - this.Email = email; - } } /// - /// Email address + /// Gets or Sets IsInvalid /// - /// Email address - [DataMember(Name="Email", EmitDefaultValue=false)] - public string Email { get; set; } + [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 @@ -64,8 +55,9 @@ protected RequestLoginPinModel() { } public override string ToString() { var sb = new StringBuilder(); - sb.Append("class RequestLoginPinModel {\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); + 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(); } @@ -86,24 +78,29 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as RequestLoginPinModel); + return this.Equals(input as SafeWaitHandle); } /// - /// Returns true if RequestLoginPinModel instances are equal + /// Returns true if SafeWaitHandle instances are equal /// - /// Instance of RequestLoginPinModel to be compared + /// Instance of SafeWaitHandle to be compared /// Boolean - public bool Equals(RequestLoginPinModel input) + public bool Equals(SafeWaitHandle input) { if (input == null) return false; return ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) + this.IsInvalid == input.IsInvalid || + (this.IsInvalid != null && + this.IsInvalid.Equals(input.IsInvalid)) + ) && + ( + this.IsClosed == input.IsClosed || + (this.IsClosed != null && + this.IsClosed.Equals(input.IsClosed)) ); } @@ -116,8 +113,10 @@ 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.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 index 834e0601..c73e8cef 100644 --- a/src/Flipdish/Model/SearchCriteria.cs +++ b/src/Flipdish/Model/SearchCriteria.cs @@ -37,14 +37,17 @@ public partial class SearchCriteria : IEquatable /// 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?), int? storeGroupId = default(int?), int? userId = default(int?), string userEmail = default(string), string userName = default(string), string voucherCode = default(string), List eventType = default(List), string flipdishEventId = default(string)) + 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; @@ -52,8 +55,11 @@ public partial class SearchCriteria : IEquatable 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; @@ -103,6 +109,13 @@ public partial class SearchCriteria : IEquatable [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 /// @@ -117,6 +130,20 @@ public partial class SearchCriteria : IEquatable [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 /// @@ -166,8 +193,11 @@ public override string ToString() 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"); @@ -237,6 +267,11 @@ public bool Equals(SearchCriteria input) (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 && @@ -247,6 +282,16 @@ public bool Equals(SearchCriteria input) (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 && @@ -295,10 +340,16 @@ public override int GetHashCode() 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) 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/SetOrderBatchingConfiguration.cs b/src/Flipdish/Model/SetOrderBatchingConfiguration.cs index a943f5c7..c876f7f8 100644 --- a/src/Flipdish/Model/SetOrderBatchingConfiguration.cs +++ b/src/Flipdish/Model/SetOrderBatchingConfiguration.cs @@ -31,20 +31,20 @@ public partial class SetOrderBatchingConfiguration : IEquatable /// Initializes a new instance of the class. /// - /// Batch sending interval in minutes. + /// Batch sending interval in seconds. /// OrderBatching is enabled or not. - public SetOrderBatchingConfiguration(int? batchIntervalInMinutes = default(int?), bool? enabled = default(bool?)) + public SetOrderBatchingConfiguration(int? batchIntervalInSeconds = default(int?), bool? enabled = default(bool?)) { - this.BatchIntervalInMinutes = batchIntervalInMinutes; + this.BatchIntervalInSeconds = batchIntervalInSeconds; this.Enabled = enabled; } /// - /// Batch sending interval in minutes + /// Batch sending interval in seconds /// - /// Batch sending interval in minutes - [DataMember(Name="BatchIntervalInMinutes", EmitDefaultValue=false)] - public int? BatchIntervalInMinutes { get; set; } + /// Batch sending interval in seconds + [DataMember(Name="BatchIntervalInSeconds", EmitDefaultValue=false)] + public int? BatchIntervalInSeconds { get; set; } /// /// OrderBatching is enabled or not @@ -61,7 +61,7 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class SetOrderBatchingConfiguration {\n"); - sb.Append(" BatchIntervalInMinutes: ").Append(BatchIntervalInMinutes).Append("\n"); + sb.Append(" BatchIntervalInSeconds: ").Append(BatchIntervalInSeconds).Append("\n"); sb.Append(" Enabled: ").Append(Enabled).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -98,9 +98,9 @@ public bool Equals(SetOrderBatchingConfiguration input) return ( - this.BatchIntervalInMinutes == input.BatchIntervalInMinutes || - (this.BatchIntervalInMinutes != null && - this.BatchIntervalInMinutes.Equals(input.BatchIntervalInMinutes)) + this.BatchIntervalInSeconds == input.BatchIntervalInSeconds || + (this.BatchIntervalInSeconds != null && + this.BatchIntervalInSeconds.Equals(input.BatchIntervalInSeconds)) ) && ( this.Enabled == input.Enabled || @@ -118,8 +118,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.BatchIntervalInMinutes != null) - hashCode = hashCode * 59 + this.BatchIntervalInMinutes.GetHashCode(); + 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/SetPasswordWithPinModel.cs b/src/Flipdish/Model/SetPasswordWithPinModel.cs deleted file mode 100644 index d390ecfa..00000000 --- a/src/Flipdish/Model/SetPasswordWithPinModel.cs +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Flipdish Open API v1.0 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Collections; -using System.Collections.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 password with PIN model - /// - [DataContract] - public partial class SetPasswordWithPinModel : IEquatable - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SetPasswordWithPinModel() { } - /// - /// Initializes a new instance of the class. - /// - /// PIN code (received via email) (required). - /// New Password (required). - public SetPasswordWithPinModel(int? pin = default(int?), string newPassword = default(string)) - { - // to ensure "pin" is required (not null) - if (pin == null) - { - throw new InvalidDataException("pin is a required property for SetPasswordWithPinModel and cannot be null"); - } - else - { - this.Pin = pin; - } - // to ensure "newPassword" is required (not null) - if (newPassword == null) - { - throw new InvalidDataException("newPassword is a required property for SetPasswordWithPinModel and cannot be null"); - } - else - { - this.NewPassword = newPassword; - } - } - - /// - /// PIN code (received via email) - /// - /// PIN code (received via email) - [DataMember(Name="Pin", EmitDefaultValue=false)] - public int? Pin { 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 SetPasswordWithPinModel {\n"); - sb.Append(" Pin: ").Append(Pin).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 SetPasswordWithPinModel); - } - - /// - /// Returns true if SetPasswordWithPinModel instances are equal - /// - /// Instance of SetPasswordWithPinModel to be compared - /// Boolean - public bool Equals(SetPasswordWithPinModel input) - { - if (input == null) - return false; - - return - ( - this.Pin == input.Pin || - (this.Pin != null && - this.Pin.Equals(input.Pin)) - ) && - ( - 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.Pin != null) - hashCode = hashCode * 59 + this.Pin.GetHashCode(); - if (this.NewPassword != null) - hashCode = hashCode * 59 + this.NewPassword.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 index 77a8f772..6bf5d03c 100644 --- a/src/Flipdish/Model/Setting.cs +++ b/src/Flipdish/Model/Setting.cs @@ -31,8 +31,8 @@ public partial class Setting : IEquatable /// /// Initializes a new instance of the class. /// - /// Key. - /// Value. + /// key. + /// value. public Setting(string key = default(string), string value = default(string)) { this.Key = key; @@ -40,16 +40,14 @@ public partial class Setting : IEquatable } /// - /// Key + /// Gets or Sets Key /// - /// Key [DataMember(Name="Key", EmitDefaultValue=false)] public string Key { get; set; } /// - /// Value + /// Gets or Sets Value /// - /// Value [DataMember(Name="Value", EmitDefaultValue=false)] public string Value { get; set; } diff --git a/src/Flipdish/Model/SignupStep.cs b/src/Flipdish/Model/SignupStep.cs index 1132f987..a8f80048 100644 --- a/src/Flipdish/Model/SignupStep.cs +++ b/src/Flipdish/Model/SignupStep.cs @@ -52,7 +52,13 @@ public enum ActionEnum /// Enum PaymentSubscription for value: PaymentSubscription /// [EnumMember(Value = "PaymentSubscription")] - PaymentSubscription = 3 + PaymentSubscription = 3, + + /// + /// Enum StoreName for value: StoreName + /// + [EnumMember(Value = "StoreName")] + StoreName = 4 } /// 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 index f6e5bd96..9a9a4a6c 100644 --- a/src/Flipdish/Model/SmsReceivedEvent.cs +++ b/src/Flipdish/Model/SmsReceivedEvent.cs @@ -38,8 +38,11 @@ public partial class SmsReceivedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class SmsReceivedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -100,6 +106,13 @@ public partial class SmsReceivedEvent : IEquatable [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 /// @@ -107,6 +120,20 @@ public partial class SmsReceivedEvent : IEquatable [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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(SmsReceivedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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/Store.cs b/src/Flipdish/Model/Store.cs index a9ab4a9f..21116460 100644 --- a/src/Flipdish/Model/Store.cs +++ b/src/Flipdish/Model/Store.cs @@ -761,6 +761,78 @@ public enum CurrencyEnum [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. @@ -782,6 +854,8 @@ public enum CurrencyEnum /// 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. @@ -811,7 +885,9 @@ public enum CurrencyEnum /// Name. /// Email address (visible to customers). /// Staff Language (used for communication with the staff) Emails, Printouts etc. - 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), 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)) + /// 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; @@ -832,6 +908,8 @@ public enum CurrencyEnum this.PreOrderPickupEnabled = preOrderPickupEnabled; this.LogoUrl = logoUrl; this.FraudPreventionStrategy = fraudPreventionStrategy; + this.AppIds = appIds; + this.PropertyId = propertyId; this.PhoneNumber = phoneNumber; this.AlwaysAppearOpen = alwaysAppearOpen; this.PreOrderEnabled = preOrderEnabled; @@ -861,6 +939,8 @@ public enum CurrencyEnum this.Name = name; this.EmailAddress = emailAddress; this.StaffLanguage = staffLanguage; + this.SalesChannelTypes = salesChannelTypes; + this.InheritanceConfigTypes = inheritanceConfigTypes; } /// @@ -984,6 +1064,20 @@ public enum CurrencyEnum [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 /// @@ -1187,6 +1281,8 @@ public enum CurrencyEnum [DataMember(Name="StaffLanguage", EmitDefaultValue=false)] public string StaffLanguage { get; set; } + + /// /// Returns the string presentation of the object /// @@ -1214,6 +1310,8 @@ public override string ToString() 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"); @@ -1243,6 +1341,8 @@ public override string ToString() 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(); } @@ -1372,6 +1472,16 @@ public bool Equals(Store input) (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 && @@ -1516,6 +1626,16 @@ public bool Equals(Store input) 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) ); } @@ -1566,6 +1686,10 @@ public override int GetHashCode() 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) @@ -1624,6 +1748,10 @@ public override int GetHashCode() 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/StoreAddressUpdatedEvent.cs b/src/Flipdish/Model/StoreAddressUpdatedEvent.cs index b46217af..aacddc35 100644 --- a/src/Flipdish/Model/StoreAddressUpdatedEvent.cs +++ b/src/Flipdish/Model/StoreAddressUpdatedEvent.cs @@ -32,6 +32,7 @@ public partial class StoreAddressUpdatedEvent : IEquatable class. /// /// The event name. + /// Organisation Id. /// Store Id. /// Store group Id. /// User which updated this store address. @@ -42,9 +43,12 @@ public partial class StoreAddressUpdatedEvent : IEquatablePosition. /// App id. /// Ip Address. - public StoreAddressUpdatedEvent(string eventName = 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)) + /// 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; @@ -55,6 +59,8 @@ public partial class StoreAddressUpdatedEvent : IEquatable @@ -64,6 +70,13 @@ public partial class StoreAddressUpdatedEvent : IEquatable + /// Organisation Id + /// + /// Organisation Id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Store Id /// @@ -134,6 +147,20 @@ public partial class StoreAddressUpdatedEvent : IEquatable + /// 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 /// @@ -143,6 +170,7 @@ 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"); @@ -153,6 +181,8 @@ public override string ToString() 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(); } @@ -192,6 +222,11 @@ public bool Equals(StoreAddressUpdatedEvent input) (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 && @@ -241,6 +276,16 @@ public bool Equals(StoreAddressUpdatedEvent input) 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)) ); } @@ -255,6 +300,8 @@ public override int GetHashCode() 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) @@ -275,6 +322,10 @@ public override int GetHashCode() 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 index 179023df..3962f3ac 100644 --- a/src/Flipdish/Model/StoreArchivedEvent.cs +++ b/src/Flipdish/Model/StoreArchivedEvent.cs @@ -40,8 +40,11 @@ public partial class StoreArchivedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class StoreArchivedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -125,6 +131,13 @@ public partial class StoreArchivedEvent : IEquatable [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 /// @@ -132,6 +145,20 @@ public partial class StoreArchivedEvent : IEquatable [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 /// @@ -150,7 +177,10 @@ public override string ToString() 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(); } @@ -235,10 +265,25 @@ public bool Equals(StoreArchivedEvent input) (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)) ); } @@ -271,8 +316,14 @@ public override int GetHashCode() 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 index d03ead7f..b88923dd 100644 --- a/src/Flipdish/Model/StoreBase.cs +++ b/src/Flipdish/Model/StoreBase.cs @@ -28,6 +28,78 @@ namespace Flipdish.Model [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. /// @@ -60,7 +132,9 @@ public partial class StoreBase : IEquatable /// Name. /// Email address (visible to customers). /// Staff Language (used for communication with the staff) Emails, Printouts etc. - 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)) + /// 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; @@ -91,6 +165,8 @@ public partial class StoreBase : IEquatable this.Name = name; this.EmailAddress = emailAddress; this.StaffLanguage = staffLanguage; + this.SalesChannelTypes = salesChannelTypes; + this.InheritanceConfigTypes = inheritanceConfigTypes; } /// @@ -296,6 +372,8 @@ public partial class StoreBase : IEquatable [DataMember(Name="StaffLanguage", EmitDefaultValue=false)] public string StaffLanguage { get; set; } + + /// /// Returns the string presentation of the object /// @@ -333,6 +411,8 @@ public override string ToString() 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(); } @@ -511,6 +591,16 @@ public bool Equals(StoreBase input) 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) ); } @@ -581,6 +671,10 @@ public override int GetHashCode() 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 index 81de3b4d..7a70634d 100644 --- a/src/Flipdish/Model/StoreBusinessHoursOverrideCreatedEvent.cs +++ b/src/Flipdish/Model/StoreBusinessHoursOverrideCreatedEvent.cs @@ -41,8 +41,11 @@ public partial class StoreBusinessHoursOverrideCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -54,7 +57,10 @@ public partial class StoreBusinessHoursOverrideCreatedEvent : IEquatable @@ -127,6 +133,13 @@ public partial class StoreBusinessHoursOverrideCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -134,6 +147,20 @@ public partial class StoreBusinessHoursOverrideCreatedEvent : IEquatable + /// 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 /// @@ -152,7 +179,10 @@ public override string ToString() 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(); } @@ -237,10 +267,25 @@ public bool Equals(StoreBusinessHoursOverrideCreatedEvent input) (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)) ); } @@ -273,8 +318,14 @@ public override int GetHashCode() 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 index 3c2eb0c0..cc4fd572 100644 --- a/src/Flipdish/Model/StoreBusinessHoursOverrideDeletedEvent.cs +++ b/src/Flipdish/Model/StoreBusinessHoursOverrideDeletedEvent.cs @@ -41,8 +41,11 @@ public partial class StoreBusinessHoursOverrideDeletedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -54,7 +57,10 @@ public partial class StoreBusinessHoursOverrideDeletedEvent : IEquatable @@ -127,6 +133,13 @@ public partial class StoreBusinessHoursOverrideDeletedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -134,6 +147,20 @@ public partial class StoreBusinessHoursOverrideDeletedEvent : IEquatable + /// 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 /// @@ -152,7 +179,10 @@ public override string ToString() 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(); } @@ -237,10 +267,25 @@ public bool Equals(StoreBusinessHoursOverrideDeletedEvent input) (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)) ); } @@ -273,8 +318,14 @@ public override int GetHashCode() 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/StoreChannelStoreMapping.cs b/src/Flipdish/Model/StoreChannelStoreMapping.cs deleted file mode 100644 index ffa8d2bd..00000000 --- a/src/Flipdish/Model/StoreChannelStoreMapping.cs +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Flipdish Open API v1.0 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Collections; -using System.Collections.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 an ID mapping between Flipdish Store and Channel Store - /// - [DataContract] - public partial class StoreChannelStoreMapping : IEquatable - { - /// - /// Initializes a new instance of the class. - /// - /// Channel Id. - /// Store Id. - /// Channel Store Id. - public StoreChannelStoreMapping(int? channelId = default(int?), int? storeId = default(int?), string channelStoreId = default(string)) - { - this.ChannelId = channelId; - this.StoreId = storeId; - this.ChannelStoreId = channelStoreId; - } - - /// - /// 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; } - - /// - /// Channel Store Id - /// - /// Channel Store Id - [DataMember(Name="ChannelStoreId", EmitDefaultValue=false)] - public string ChannelStoreId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class StoreChannelStoreMapping {\n"); - sb.Append(" ChannelId: ").Append(ChannelId).Append("\n"); - sb.Append(" StoreId: ").Append(StoreId).Append("\n"); - sb.Append(" ChannelStoreId: ").Append(ChannelStoreId).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as StoreChannelStoreMapping); - } - - /// - /// Returns true if StoreChannelStoreMapping instances are equal - /// - /// Instance of StoreChannelStoreMapping to be compared - /// Boolean - public bool Equals(StoreChannelStoreMapping 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.ChannelStoreId == input.ChannelStoreId || - (this.ChannelStoreId != null && - this.ChannelStoreId.Equals(input.ChannelStoreId)) - ); - } - - /// - /// 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.ChannelStoreId != null) - hashCode = hashCode * 59 + this.ChannelStoreId.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 index 1ffabe51..9c785c6a 100644 --- a/src/Flipdish/Model/StoreConfig.cs +++ b/src/Flipdish/Model/StoreConfig.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// StoreConfig + /// StoreConfig. /// [DataContract] public partial class StoreConfig : IEquatable diff --git a/src/Flipdish/Model/StoreCreateBase.cs b/src/Flipdish/Model/StoreCreateBase.cs index e8c269dd..3add7a9f 100644 --- a/src/Flipdish/Model/StoreCreateBase.cs +++ b/src/Flipdish/Model/StoreCreateBase.cs @@ -28,17 +28,72 @@ namespace Flipdish.Model [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. - public StoreCreateBase(string name = default(string), string emailAddress = default(string), string staffLanguage = default(string)) + /// 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; } /// @@ -62,6 +117,14 @@ public partial class StoreCreateBase : IEquatable [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 /// @@ -73,6 +136,8 @@ public override string ToString() 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(); } @@ -121,6 +186,16 @@ public bool Equals(StoreCreateBase input) 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)) ); } @@ -139,6 +214,10 @@ public override int GetHashCode() 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 index aca3081f..60d7ddd7 100644 --- a/src/Flipdish/Model/StoreCreatedEvent.cs +++ b/src/Flipdish/Model/StoreCreatedEvent.cs @@ -32,6 +32,7 @@ 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. @@ -41,9 +42,12 @@ public partial class StoreCreatedEvent : IEquatable /// Position. /// App id. /// Ip Address. - public StoreCreatedEvent(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 ipAddress = default(string)) + /// 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; @@ -53,6 +57,8 @@ public partial class StoreCreatedEvent : IEquatable this.Position = position; this.AppId = appId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -62,6 +68,13 @@ public partial class StoreCreatedEvent : IEquatable [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 /// @@ -125,6 +138,20 @@ public partial class StoreCreatedEvent : IEquatable [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 /// @@ -134,6 +161,7 @@ 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"); @@ -143,6 +171,8 @@ public override string ToString() 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(); } @@ -182,6 +212,11 @@ public bool Equals(StoreCreatedEvent input) (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 && @@ -226,6 +261,16 @@ public bool Equals(StoreCreatedEvent input) 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)) ); } @@ -240,6 +285,8 @@ public override int GetHashCode() 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) @@ -258,6 +305,10 @@ public override int GetHashCode() 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/StoreDeletedEvent.cs b/src/Flipdish/Model/StoreDeletedEvent.cs index c68c8c78..b17693c7 100644 --- a/src/Flipdish/Model/StoreDeletedEvent.cs +++ b/src/Flipdish/Model/StoreDeletedEvent.cs @@ -40,8 +40,11 @@ public partial class StoreDeletedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class StoreDeletedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -125,6 +131,13 @@ public partial class StoreDeletedEvent : IEquatable [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 /// @@ -132,6 +145,20 @@ public partial class StoreDeletedEvent : IEquatable [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 /// @@ -150,7 +177,10 @@ public override string ToString() 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(); } @@ -235,10 +265,25 @@ public bool Equals(StoreDeletedEvent input) (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)) ); } @@ -271,8 +316,14 @@ public override int GetHashCode() 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/StoreFeeConfig.cs b/src/Flipdish/Model/StoreFeeConfig.cs index 65e4b414..7e2c1662 100644 --- a/src/Flipdish/Model/StoreFeeConfig.cs +++ b/src/Flipdish/Model/StoreFeeConfig.cs @@ -53,6 +53,8 @@ public partial class StoreFeeConfig : IEquatable /// 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.. @@ -66,7 +68,23 @@ public partial class StoreFeeConfig : IEquatable /// 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.. - 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? 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?)) + /// 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; @@ -90,6 +108,8 @@ public partial class StoreFeeConfig : IEquatable this.PercentFeeCashOrdersChargedToCustomerIncludingVat = percentFeeCashOrdersChargedToCustomerIncludingVat; this.FixedFeeCashOrdersChargedToCustomerIncludingVat = fixedFeeCashOrdersChargedToCustomerIncludingVat; this.PercentFeeTips = percentFeeTips; + this.PercentFeeTipsCollection = percentFeeTipsCollection; + this.PercentFeeTipsDelivery = percentFeeTipsDelivery; this.TaxRatePercent = taxRatePercent; this.PercentFeeCardOrdersLocationService = percentFeeCardOrdersLocationService; this.PercentFeeCashOrdersLocationService = percentFeeCashOrdersLocationService; @@ -103,6 +123,22 @@ public partial class StoreFeeConfig : IEquatable 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; } /// @@ -238,6 +274,20 @@ public partial class StoreFeeConfig : IEquatable [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. /// @@ -329,6 +379,118 @@ public partial class StoreFeeConfig : IEquatable [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 /// @@ -359,6 +521,8 @@ public override string ToString() 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"); @@ -372,6 +536,22 @@ public override string ToString() 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(); } @@ -516,6 +696,16 @@ public bool Equals(StoreFeeConfig input) (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 && @@ -580,6 +770,86 @@ public bool Equals(StoreFeeConfig input) 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)) ); } @@ -636,6 +906,10 @@ public override int GetHashCode() 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) @@ -662,6 +936,38 @@ public override int GetHashCode() 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 index b7477bbd..9511c1ce 100644 --- a/src/Flipdish/Model/StoreGroup.cs +++ b/src/Flipdish/Model/StoreGroup.cs @@ -727,13 +727,19 @@ public enum CurrencyEnum /// 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 name = default(string), CurrencyEnum? currency = default(CurrencyEnum?)) + 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; } @@ -759,6 +765,27 @@ public enum CurrencyEnum [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 /// @@ -778,6 +805,9 @@ public override string ToString() 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"); @@ -829,6 +859,21 @@ public bool Equals(StoreGroup input) (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 && @@ -856,6 +901,12 @@ public override int GetHashCode() 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) diff --git a/src/Flipdish/Model/StoreGroupCreatedEvent.cs b/src/Flipdish/Model/StoreGroupCreatedEvent.cs index a33f9a31..8b566750 100644 --- a/src/Flipdish/Model/StoreGroupCreatedEvent.cs +++ b/src/Flipdish/Model/StoreGroupCreatedEvent.cs @@ -40,8 +40,11 @@ public partial class StoreGroupCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class StoreGroupCreatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class StoreGroupCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class StoreGroupCreatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(StoreGroupCreatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 7b764335..83c5ac51 100644 --- a/src/Flipdish/Model/StoreGroupDeletedEvent.cs +++ b/src/Flipdish/Model/StoreGroupDeletedEvent.cs @@ -40,8 +40,11 @@ public partial class StoreGroupDeletedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class StoreGroupDeletedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class StoreGroupDeletedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class StoreGroupDeletedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(StoreGroupDeletedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index b32162ca..a04c5b82 100644 --- a/src/Flipdish/Model/StoreGroupExtended.cs +++ b/src/Flipdish/Model/StoreGroupExtended.cs @@ -730,9 +730,12 @@ public enum CurrencyEnum /// 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 name = default(string), CurrencyEnum? currency = default(CurrencyEnum?)) + 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; @@ -740,6 +743,9 @@ public enum 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; } @@ -786,6 +792,27 @@ public enum CurrencyEnum [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 /// @@ -808,6 +835,9 @@ public override string ToString() 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"); @@ -874,6 +904,21 @@ public bool Equals(StoreGroupExtended input) (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 && @@ -907,6 +952,12 @@ public override int GetHashCode() 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) diff --git a/src/Flipdish/Model/StoreGroupUpdatedEvent.cs b/src/Flipdish/Model/StoreGroupUpdatedEvent.cs index 16410695..00390f9f 100644 --- a/src/Flipdish/Model/StoreGroupUpdatedEvent.cs +++ b/src/Flipdish/Model/StoreGroupUpdatedEvent.cs @@ -40,8 +40,11 @@ public partial class StoreGroupUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class StoreGroupUpdatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class StoreGroupUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class StoreGroupUpdatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(StoreGroupUpdatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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/StoreKioskSettingModel.cs b/src/Flipdish/Model/StoreKioskSettingModel.cs deleted file mode 100644 index faa02542..00000000 --- a/src/Flipdish/Model/StoreKioskSettingModel.cs +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Flipdish Open API v1.0 - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -using System; -using System.Linq; -using System.IO; -using System.Text; -using System.Collections; -using System.Collections.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 StoreKioskSettingModel : IEquatable - { - /// - /// Initializes a new instance of the class. - /// - /// Name of the Kiosk. - /// Require customer name flag. - /// Require customer phone number flag. - /// Request table number flag. - /// Offer Dine-In/Takeaway option flag. - /// Order in which the Kiosks should be listed. - /// Kiosk (Hydra) config id. - /// Id of the store (Physical Restaurant). - public StoreKioskSettingModel(string kioskName = default(string), bool? requireCustomerName = default(bool?), bool? requireCustomerPhoneNumber = default(bool?), bool? requestTableNumber = default(bool?), bool? offerDineInOrTakeawayOptions = default(bool?), int? sortOrder = default(int?), int? configId = default(int?), int? storeId = default(int?)) - { - this.KioskName = kioskName; - this.RequireCustomerName = requireCustomerName; - this.RequireCustomerPhoneNumber = requireCustomerPhoneNumber; - this.RequestTableNumber = requestTableNumber; - this.OfferDineInOrTakeawayOptions = offerDineInOrTakeawayOptions; - this.SortOrder = sortOrder; - this.ConfigId = configId; - this.StoreId = storeId; - } - - /// - /// Name of the Kiosk - /// - /// Name of the Kiosk - [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 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="OfferDineInOrTakeawayOptions", EmitDefaultValue=false)] - public bool? OfferDineInOrTakeawayOptions { get; set; } - - /// - /// Order in which the Kiosks should be listed - /// - /// Order in which the Kiosks should be listed - [DataMember(Name="SortOrder", EmitDefaultValue=false)] - public int? SortOrder { get; set; } - - /// - /// Kiosk (Hydra) config id - /// - /// Kiosk (Hydra) config id - [DataMember(Name="ConfigId", EmitDefaultValue=false)] - public int? ConfigId { get; set; } - - /// - /// Id of the store (Physical Restaurant) - /// - /// Id of the store (Physical Restaurant) - [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 StoreKioskSettingModel {\n"); - sb.Append(" KioskName: ").Append(KioskName).Append("\n"); - sb.Append(" RequireCustomerName: ").Append(RequireCustomerName).Append("\n"); - sb.Append(" RequireCustomerPhoneNumber: ").Append(RequireCustomerPhoneNumber).Append("\n"); - sb.Append(" RequestTableNumber: ").Append(RequestTableNumber).Append("\n"); - sb.Append(" OfferDineInOrTakeawayOptions: ").Append(OfferDineInOrTakeawayOptions).Append("\n"); - sb.Append(" SortOrder: ").Append(SortOrder).Append("\n"); - sb.Append(" ConfigId: ").Append(ConfigId).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 StoreKioskSettingModel); - } - - /// - /// Returns true if StoreKioskSettingModel instances are equal - /// - /// Instance of StoreKioskSettingModel to be compared - /// Boolean - public bool Equals(StoreKioskSettingModel input) - { - if (input == null) - return false; - - return - ( - 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.RequestTableNumber == input.RequestTableNumber || - (this.RequestTableNumber != null && - this.RequestTableNumber.Equals(input.RequestTableNumber)) - ) && - ( - this.OfferDineInOrTakeawayOptions == input.OfferDineInOrTakeawayOptions || - (this.OfferDineInOrTakeawayOptions != null && - this.OfferDineInOrTakeawayOptions.Equals(input.OfferDineInOrTakeawayOptions)) - ) && - ( - this.SortOrder == input.SortOrder || - (this.SortOrder != null && - this.SortOrder.Equals(input.SortOrder)) - ) && - ( - this.ConfigId == input.ConfigId || - (this.ConfigId != null && - this.ConfigId.Equals(input.ConfigId)) - ) && - ( - 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.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.RequestTableNumber != null) - hashCode = hashCode * 59 + this.RequestTableNumber.GetHashCode(); - if (this.OfferDineInOrTakeawayOptions != null) - hashCode = hashCode * 59 + this.OfferDineInOrTakeawayOptions.GetHashCode(); - if (this.SortOrder != null) - hashCode = hashCode * 59 + this.SortOrder.GetHashCode(); - if (this.ConfigId != null) - hashCode = hashCode * 59 + this.ConfigId.GetHashCode(); - if (this.StoreId != null) - hashCode = hashCode * 59 + this.StoreId.GetHashCode(); - return hashCode; - } - } - } - -} diff --git a/src/Flipdish/Model/StoreKioskSettingUpdatedEvent.cs b/src/Flipdish/Model/StoreKioskSettingUpdatedEvent.cs index 7524a65c..ed631aea 100644 --- a/src/Flipdish/Model/StoreKioskSettingUpdatedEvent.cs +++ b/src/Flipdish/Model/StoreKioskSettingUpdatedEvent.cs @@ -40,8 +40,11 @@ public partial class StoreKioskSettingUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class StoreKioskSettingUpdatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class StoreKioskSettingUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class StoreKioskSettingUpdatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(StoreKioskSettingUpdatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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/StoreLogoCreatedEvent.cs b/src/Flipdish/Model/StoreLogoCreatedEvent.cs index 5c56baa2..367cb464 100644 --- a/src/Flipdish/Model/StoreLogoCreatedEvent.cs +++ b/src/Flipdish/Model/StoreLogoCreatedEvent.cs @@ -32,7 +32,9 @@ 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. @@ -40,10 +42,14 @@ public partial class StoreLogoCreatedEvent : IEquatable /// Position. /// App id. /// Ip Address. - public StoreLogoCreatedEvent(string eventName = 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)) + /// 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; @@ -51,6 +57,8 @@ public partial class StoreLogoCreatedEvent : IEquatable this.Position = position; this.AppId = appId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -60,6 +68,13 @@ public partial class StoreLogoCreatedEvent : IEquatable [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 /// @@ -67,6 +82,13 @@ public partial class StoreLogoCreatedEvent : IEquatable [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 /// @@ -116,6 +138,20 @@ public partial class StoreLogoCreatedEvent : IEquatable [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 /// @@ -125,7 +161,9 @@ 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"); @@ -133,6 +171,8 @@ public override string ToString() 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(); } @@ -172,11 +212,21 @@ public bool Equals(StoreLogoCreatedEvent input) (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 && @@ -211,6 +261,16 @@ public bool Equals(StoreLogoCreatedEvent input) 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)) ); } @@ -225,8 +285,12 @@ public override int GetHashCode() 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) @@ -241,6 +305,10 @@ public override int GetHashCode() 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 index 1fd81b7c..0a117b78 100644 --- a/src/Flipdish/Model/StoreLogoDeletedEvent.cs +++ b/src/Flipdish/Model/StoreLogoDeletedEvent.cs @@ -32,6 +32,7 @@ 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. @@ -40,9 +41,12 @@ public partial class StoreLogoDeletedEvent : IEquatable /// Position. /// App id. /// Ip Address. - public StoreLogoDeletedEvent(string eventName = 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)) + /// 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; @@ -51,6 +55,8 @@ public partial class StoreLogoDeletedEvent : IEquatable this.Position = position; this.AppId = appId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -60,6 +66,13 @@ public partial class StoreLogoDeletedEvent : IEquatable [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 /// @@ -116,6 +129,20 @@ public partial class StoreLogoDeletedEvent : IEquatable [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 /// @@ -125,6 +152,7 @@ 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"); @@ -133,6 +161,8 @@ public override string ToString() 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(); } @@ -172,6 +202,11 @@ public bool Equals(StoreLogoDeletedEvent input) (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 && @@ -211,6 +246,16 @@ public bool Equals(StoreLogoDeletedEvent input) 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)) ); } @@ -225,6 +270,8 @@ public override int GetHashCode() 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) @@ -241,6 +288,10 @@ public override int GetHashCode() 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 index 69fe3471..b0edf441 100644 --- a/src/Flipdish/Model/StoreLogoUpdatedEvent.cs +++ b/src/Flipdish/Model/StoreLogoUpdatedEvent.cs @@ -32,7 +32,9 @@ 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. @@ -40,10 +42,14 @@ public partial class StoreLogoUpdatedEvent : IEquatable /// Position. /// App id. /// Ip Address. - public StoreLogoUpdatedEvent(string eventName = 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)) + /// 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; @@ -51,6 +57,8 @@ public partial class StoreLogoUpdatedEvent : IEquatable this.Position = position; this.AppId = appId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -60,6 +68,13 @@ public partial class StoreLogoUpdatedEvent : IEquatable [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 /// @@ -67,6 +82,13 @@ public partial class StoreLogoUpdatedEvent : IEquatable [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 /// @@ -116,6 +138,20 @@ public partial class StoreLogoUpdatedEvent : IEquatable [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 /// @@ -125,7 +161,9 @@ 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"); @@ -133,6 +171,8 @@ public override string ToString() 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(); } @@ -172,11 +212,21 @@ public bool Equals(StoreLogoUpdatedEvent input) (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 && @@ -211,6 +261,16 @@ public bool Equals(StoreLogoUpdatedEvent input) 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)) ); } @@ -225,8 +285,12 @@ public override int GetHashCode() 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) @@ -241,6 +305,10 @@ public override int GetHashCode() 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 index 8da6313d..7e5f340e 100644 --- a/src/Flipdish/Model/StoreMenuAssignedEvent.cs +++ b/src/Flipdish/Model/StoreMenuAssignedEvent.cs @@ -40,8 +40,11 @@ public partial class StoreMenuAssignedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class StoreMenuAssignedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class StoreMenuAssignedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class StoreMenuAssignedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(StoreMenuAssignedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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/StoreOpeningHoursUpdatedEvent.cs b/src/Flipdish/Model/StoreOpeningHoursUpdatedEvent.cs index 57b5f535..b520613f 100644 --- a/src/Flipdish/Model/StoreOpeningHoursUpdatedEvent.cs +++ b/src/Flipdish/Model/StoreOpeningHoursUpdatedEvent.cs @@ -56,13 +56,42 @@ public enum DeliveryTypeEnum [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. @@ -71,13 +100,17 @@ public enum DeliveryTypeEnum /// Position. /// App id. /// Ip Address. - public StoreOpeningHoursUpdatedEvent(string eventName = default(string), int? storeId = default(int?), int? storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), DeliveryTypeEnum? deliveryType = default(DeliveryTypeEnum?), 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)) + /// 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; @@ -86,6 +119,8 @@ public enum DeliveryTypeEnum this.Position = position; this.AppId = appId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -95,6 +130,13 @@ public enum DeliveryTypeEnum [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 /// @@ -117,6 +159,7 @@ public enum DeliveryTypeEnum public UserEventInfo User { get; set; } + /// /// The period that was updated /// @@ -173,6 +216,20 @@ public enum DeliveryTypeEnum [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 /// @@ -182,10 +239,12 @@ 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"); @@ -194,6 +253,8 @@ public override string ToString() 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(); } @@ -233,6 +294,11 @@ public bool Equals(StoreOpeningHoursUpdatedEvent input) (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 && @@ -253,6 +319,11 @@ public bool Equals(StoreOpeningHoursUpdatedEvent input) (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 && @@ -292,6 +363,16 @@ public bool Equals(StoreOpeningHoursUpdatedEvent input) 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)) ); } @@ -306,6 +387,8 @@ public override int GetHashCode() 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) @@ -314,6 +397,8 @@ public override int GetHashCode() 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) @@ -330,6 +415,10 @@ public override int GetHashCode() 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/StorePreOrderConfigUpdatedEvent.cs b/src/Flipdish/Model/StorePreOrderConfigUpdatedEvent.cs index 159de626..40558feb 100644 --- a/src/Flipdish/Model/StorePreOrderConfigUpdatedEvent.cs +++ b/src/Flipdish/Model/StorePreOrderConfigUpdatedEvent.cs @@ -41,8 +41,11 @@ public partial class StorePreOrderConfigUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -54,7 +57,10 @@ public partial class StorePreOrderConfigUpdatedEvent : IEquatable @@ -127,6 +133,13 @@ public partial class StorePreOrderConfigUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -134,6 +147,20 @@ public partial class StorePreOrderConfigUpdatedEvent : IEquatable + /// 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 /// @@ -152,7 +179,10 @@ public override string ToString() 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(); } @@ -237,10 +267,25 @@ public bool Equals(StorePreOrderConfigUpdatedEvent input) (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)) ); } @@ -273,8 +318,14 @@ public override int GetHashCode() 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 index 557e3ef8..b19913a1 100644 --- a/src/Flipdish/Model/StorePublishedEvent.cs +++ b/src/Flipdish/Model/StorePublishedEvent.cs @@ -40,8 +40,11 @@ public partial class StorePublishedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class StorePublishedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -125,6 +131,13 @@ public partial class StorePublishedEvent : IEquatable [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 /// @@ -132,6 +145,20 @@ public partial class StorePublishedEvent : IEquatable [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 /// @@ -150,7 +177,10 @@ public override string ToString() 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(); } @@ -235,10 +265,25 @@ public bool Equals(StorePublishedEvent input) (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)) ); } @@ -271,8 +316,14 @@ public override int GetHashCode() 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 index b5710766..bf193cb4 100644 --- a/src/Flipdish/Model/StoreServiceChargeUpdatedEvent.cs +++ b/src/Flipdish/Model/StoreServiceChargeUpdatedEvent.cs @@ -40,8 +40,11 @@ public partial class StoreServiceChargeUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class StoreServiceChargeUpdatedEvent : IEquatable @@ -118,6 +124,13 @@ public partial class StoreServiceChargeUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -125,6 +138,20 @@ public partial class StoreServiceChargeUpdatedEvent : IEquatable + /// 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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(StoreServiceChargeUpdatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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/StoreSummary.cs b/src/Flipdish/Model/StoreSummary.cs index 2e049455..4c15282a 100644 --- a/src/Flipdish/Model/StoreSummary.cs +++ b/src/Flipdish/Model/StoreSummary.cs @@ -727,21 +727,33 @@ public enum CurrencyEnum /// 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. - public StoreSummary(int? id = default(int?), string name = default(string), int? menuId = default(int?), Dictionary metadata = default(Dictionary), CurrencyEnum? currency = default(CurrencyEnum?), Coordinates coordinates = default(Coordinates), string storeTimezone = default(string), int? storeGroupId = default(int?)) + /// 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; } /// @@ -765,6 +777,13 @@ public enum CurrencyEnum [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 /// @@ -787,6 +806,13 @@ public enum CurrencyEnum [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 /// @@ -794,6 +820,34 @@ public enum CurrencyEnum [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 /// @@ -805,11 +859,17 @@ public override string ToString() 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(); } @@ -859,6 +919,11 @@ public bool Equals(StoreSummary input) (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 && @@ -879,10 +944,35 @@ public bool Equals(StoreSummary input) (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)) ); } @@ -901,6 +991,8 @@ public override int GetHashCode() 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) @@ -909,8 +1001,18 @@ public override int GetHashCode() 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 index bc3245fd..33952777 100644 --- a/src/Flipdish/Model/StoreTipUpdatedEvent.cs +++ b/src/Flipdish/Model/StoreTipUpdatedEvent.cs @@ -40,8 +40,11 @@ public partial class StoreTipUpdatedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class StoreTipUpdatedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -118,6 +124,13 @@ public partial class StoreTipUpdatedEvent : IEquatable [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 /// @@ -125,6 +138,20 @@ public partial class StoreTipUpdatedEvent : IEquatable [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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(StoreTipUpdatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 6af3b7e8..ecff88f5 100644 --- a/src/Flipdish/Model/StoreUnarchivedEvent.cs +++ b/src/Flipdish/Model/StoreUnarchivedEvent.cs @@ -40,8 +40,11 @@ public partial class StoreUnarchivedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class StoreUnarchivedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -125,6 +131,13 @@ public partial class StoreUnarchivedEvent : IEquatable [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 /// @@ -132,6 +145,20 @@ public partial class StoreUnarchivedEvent : IEquatable [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 /// @@ -150,7 +177,10 @@ public override string ToString() 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(); } @@ -235,10 +265,25 @@ public bool Equals(StoreUnarchivedEvent input) (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)) ); } @@ -271,8 +316,14 @@ public override int GetHashCode() 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 index 975e1f11..89bed4cf 100644 --- a/src/Flipdish/Model/StoreUnpublishedEvent.cs +++ b/src/Flipdish/Model/StoreUnpublishedEvent.cs @@ -40,8 +40,11 @@ public partial class StoreUnpublishedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class StoreUnpublishedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -125,6 +131,13 @@ public partial class StoreUnpublishedEvent : IEquatable [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 /// @@ -132,6 +145,20 @@ public partial class StoreUnpublishedEvent : IEquatable [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 /// @@ -150,7 +177,10 @@ public override string ToString() 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(); } @@ -235,10 +265,25 @@ public bool Equals(StoreUnpublishedEvent input) (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)) ); } @@ -271,8 +316,14 @@ public override int GetHashCode() 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 index f79de5f2..7198f2ac 100644 --- a/src/Flipdish/Model/StoreUpdatedEvent.cs +++ b/src/Flipdish/Model/StoreUpdatedEvent.cs @@ -32,6 +32,7 @@ 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. @@ -41,9 +42,12 @@ public partial class StoreUpdatedEvent : IEquatable /// Position. /// App id. /// Ip Address. - public StoreUpdatedEvent(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 ipAddress = default(string)) + /// 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; @@ -53,6 +57,8 @@ public partial class StoreUpdatedEvent : IEquatable this.Position = position; this.AppId = appId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -62,6 +68,13 @@ public partial class StoreUpdatedEvent : IEquatable [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 /// @@ -132,6 +145,20 @@ public partial class StoreUpdatedEvent : IEquatable [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 /// @@ -141,6 +168,7 @@ 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"); @@ -151,6 +179,8 @@ public override string ToString() 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(); } @@ -190,6 +220,11 @@ public bool Equals(StoreUpdatedEvent input) (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 && @@ -239,6 +274,16 @@ public bool Equals(StoreUpdatedEvent input) 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)) ); } @@ -253,6 +298,8 @@ public override int GetHashCode() 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) @@ -273,6 +320,10 @@ public override int GetHashCode() 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 index 622fa789..e0fcda04 100644 --- a/src/Flipdish/Model/StoreValidationConfig.cs +++ b/src/Flipdish/Model/StoreValidationConfig.cs @@ -32,10 +32,10 @@ public partial class StoreValidationConfig : IEquatable /// Initializes a new instance of the class. /// /// Store identifier. - /// name. + /// Name. /// Is Store Valid for Kiosk. /// Store group Id. - /// configValidation. + /// 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; @@ -53,8 +53,9 @@ public partial class StoreValidationConfig : IEquatable public int? StoreId { get; set; } /// - /// Gets or Sets Name + /// Name /// + /// Name [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } @@ -73,8 +74,9 @@ public partial class StoreValidationConfig : IEquatable public int? StoreGroupId { get; set; } /// - /// Gets or Sets ConfigValidation + /// Store list of validations /// + /// Store list of validations [DataMember(Name="ConfigValidation", EmitDefaultValue=false)] public StoreConfig ConfigValidation { get; set; } 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/StripeConnectedAccount.cs b/src/Flipdish/Model/StripeConnectedAccount.cs index 8d15a4fe..58ef7298 100644 --- a/src/Flipdish/Model/StripeConnectedAccount.cs +++ b/src/Flipdish/Model/StripeConnectedAccount.cs @@ -154,7 +154,13 @@ public enum AccountStatusEnum /// Enum UpdateExternalAccount for value: UpdateExternalAccount /// [EnumMember(Value = "UpdateExternalAccount")] - UpdateExternalAccount = 7 + UpdateExternalAccount = 7, + + /// + /// Enum PlatformPaused for value: PlatformPaused + /// + [EnumMember(Value = "PlatformPaused")] + PlatformPaused = 8 } /// @@ -172,7 +178,9 @@ public enum AccountStatusEnum /// Card payments capability status (Inactive, Pending, Active, Unrequested). /// Transfers capability status (Inactive, Pending, Active, Unrequested). /// Current status of the account. - 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?)) + /// 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; @@ -180,6 +188,8 @@ public enum AccountStatusEnum this.CardPaymentsStatus = cardPaymentsStatus; this.TransfersStatus = transfersStatus; this.AccountStatus = accountStatus; + this.PayoutsEnabled = payoutsEnabled; + this.PaymentsEnabled = paymentsEnabled; } /// @@ -206,6 +216,20 @@ public enum AccountStatusEnum + /// + /// 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 /// @@ -220,6 +244,8 @@ public override string ToString() 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(); } @@ -283,6 +309,16 @@ public bool Equals(StripeConnectedAccount input) 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)) ); } @@ -307,6 +343,10 @@ public override int GetHashCode() 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 index bd67e921..e4f458a6 100644 --- a/src/Flipdish/Model/StripeConnectedAccountInfo.cs +++ b/src/Flipdish/Model/StripeConnectedAccountInfo.cs @@ -76,7 +76,13 @@ public enum AccountStatusEnum /// Enum UpdateExternalAccount for value: UpdateExternalAccount /// [EnumMember(Value = "UpdateExternalAccount")] - UpdateExternalAccount = 7 + UpdateExternalAccount = 7, + + /// + /// Enum PlatformPaused for value: PlatformPaused + /// + [EnumMember(Value = "PlatformPaused")] + PlatformPaused = 8 } /// @@ -170,12 +176,20 @@ public enum PayoutScheduleIntervalEnum /// Stripe connected account id. /// Current status of the Card Payment capability of the account. /// Payouts Schedule Interval. - public StripeConnectedAccountInfo(AccountStatusEnum? accountStatus = default(AccountStatusEnum?), string stripeId = default(string), CardPaymentStatusEnum? cardPaymentStatus = default(CardPaymentStatusEnum?), PayoutScheduleIntervalEnum? payoutScheduleInterval = default(PayoutScheduleIntervalEnum?)) + /// 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; } @@ -188,6 +202,34 @@ public enum PayoutScheduleIntervalEnum + /// + /// 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 /// @@ -200,6 +242,10 @@ public override string ToString() 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(); } @@ -253,6 +299,26 @@ public bool Equals(StripeConnectedAccountInfo input) 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)) ); } @@ -273,6 +339,14 @@ public override int GetHashCode() 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/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/LoginWithPinModel.cs b/src/Flipdish/Model/SubscriptionStore.cs similarity index 52% rename from src/Flipdish/Model/LoginWithPinModel.cs rename to src/Flipdish/Model/SubscriptionStore.cs index 0fc9d474..8b53009a 100644 --- a/src/Flipdish/Model/LoginWithPinModel.cs +++ b/src/Flipdish/Model/SubscriptionStore.cs @@ -23,56 +23,56 @@ namespace Flipdish.Model { /// - /// Login with PIN model + /// Subscription Store /// [DataContract] - public partial class LoginWithPinModel : IEquatable + public partial class SubscriptionStore : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected LoginWithPinModel() { } + protected SubscriptionStore() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Email addres (required). - /// PIN code (received via email) (required). - public LoginWithPinModel(string email = default(string), int? pin = default(int?)) + /// Store Id (required). + /// Name (required). + public SubscriptionStore(int? id = default(int?), string name = default(string)) { - // to ensure "email" is required (not null) - if (email == null) + // to ensure "id" is required (not null) + if (id == null) { - throw new InvalidDataException("email is a required property for LoginWithPinModel and cannot be null"); + throw new InvalidDataException("id is a required property for SubscriptionStore and cannot be null"); } else { - this.Email = email; + this.Id = id; } - // to ensure "pin" is required (not null) - if (pin == null) + // to ensure "name" is required (not null) + if (name == null) { - throw new InvalidDataException("pin is a required property for LoginWithPinModel and cannot be null"); + throw new InvalidDataException("name is a required property for SubscriptionStore and cannot be null"); } else { - this.Pin = pin; + this.Name = name; } } /// - /// Email addres + /// Store Id /// - /// Email addres - [DataMember(Name="Email", EmitDefaultValue=false)] - public string Email { get; set; } + /// Store Id + [DataMember(Name="Id", EmitDefaultValue=false)] + public int? Id { get; set; } /// - /// PIN code (received via email) + /// Name /// - /// PIN code (received via email) - [DataMember(Name="Pin", EmitDefaultValue=false)] - public int? Pin { get; set; } + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } /// /// Returns the string presentation of the object @@ -81,9 +81,9 @@ protected LoginWithPinModel() { } public override string ToString() { var sb = new StringBuilder(); - sb.Append("class LoginWithPinModel {\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Pin: ").Append(Pin).Append("\n"); + 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(); } @@ -104,29 +104,29 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as LoginWithPinModel); + return this.Equals(input as SubscriptionStore); } /// - /// Returns true if LoginWithPinModel instances are equal + /// Returns true if SubscriptionStore instances are equal /// - /// Instance of LoginWithPinModel to be compared + /// Instance of SubscriptionStore to be compared /// Boolean - public bool Equals(LoginWithPinModel input) + public bool Equals(SubscriptionStore input) { if (input == null) return false; return ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Pin == input.Pin || - (this.Pin != null && - this.Pin.Equals(input.Pin)) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ); } @@ -139,10 +139,10 @@ 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.Pin != null) - hashCode = hashCode * 59 + this.Pin.GetHashCode(); + 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/OrderIngestSubmitOrderRequest.cs b/src/Flipdish/Model/SubscriptionSummary.cs similarity index 66% rename from src/Flipdish/Model/OrderIngestSubmitOrderRequest.cs rename to src/Flipdish/Model/SubscriptionSummary.cs index 9c2f46a9..70df2d18 100644 --- a/src/Flipdish/Model/OrderIngestSubmitOrderRequest.cs +++ b/src/Flipdish/Model/SubscriptionSummary.cs @@ -23,98 +23,74 @@ namespace Flipdish.Model { /// - /// Generic model for ingesting external orders from 3rd parties into the system + /// Subscription Summary /// [DataContract] - public partial class OrderIngestSubmitOrderRequest : IEquatable + public partial class SubscriptionSummary : IEquatable { /// - /// [Required] Indicated the name from where the request is coming from + /// Status /// - /// [Required] Indicated the name from where the request is coming from + /// Status [JsonConverter(typeof(StringEnumConverter))] - public enum AppTypeEnum + public enum StatusEnum { /// - /// Enum Unknown for value: Unknown + /// Enum Incomplete for value: Incomplete /// - [EnumMember(Value = "Unknown")] - Unknown = 1, + [EnumMember(Value = "Incomplete")] + Incomplete = 1, /// - /// Enum Ios for value: Ios + /// Enum IncompleteExpired for value: IncompleteExpired /// - [EnumMember(Value = "Ios")] - Ios = 2, + [EnumMember(Value = "IncompleteExpired")] + IncompleteExpired = 2, /// - /// Enum Android for value: Android + /// Enum Trialing for value: Trialing /// - [EnumMember(Value = "Android")] - Android = 3, + [EnumMember(Value = "Trialing")] + Trialing = 3, /// - /// Enum Web for value: Web + /// Enum Active for value: Active /// - [EnumMember(Value = "Web")] - Web = 4, + [EnumMember(Value = "Active")] + Active = 4, /// - /// Enum Kiosk for value: Kiosk + /// Enum PastDue for value: PastDue /// - [EnumMember(Value = "Kiosk")] - Kiosk = 5, + [EnumMember(Value = "PastDue")] + PastDue = 5, /// - /// Enum Pos for value: Pos + /// Enum Canceled for value: Canceled /// - [EnumMember(Value = "Pos")] - Pos = 6, + [EnumMember(Value = "Canceled")] + Canceled = 6, /// - /// Enum TelephoneCall for value: TelephoneCall + /// Enum Unpaid for value: Unpaid /// - [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 + [EnumMember(Value = "Unpaid")] + Unpaid = 7 } /// - /// [Required] Indicated the name from where the request is coming from + /// Status /// - /// [Required] Indicated the name from where the request is coming from - [DataMember(Name="AppType", EmitDefaultValue=false)] - public AppTypeEnum? AppType { get; set; } + /// Status + [DataMember(Name="Status", EmitDefaultValue=false)] + public StatusEnum Status { get; set; } /// - /// [Required] Currency Code These must match three letter codes ISO 4127 http://en.wikipedia.org/wiki/ISO_4217 + /// Currency /// - /// [Required] Currency Code These must match three letter codes ISO 4127 http://en.wikipedia.org/wiki/ISO_4217 + /// Currency [JsonConverter(typeof(StringEnumConverter))] - public enum CurrencyCodeEnum + public enum CurrencyEnum { /// @@ -797,104 +773,140 @@ public enum CurrencyCodeEnum } /// - /// [Required] Currency Code These must match three letter codes ISO 4127 http://en.wikipedia.org/wiki/ISO_4217 + /// Currency + /// + /// Currency + [DataMember(Name="Currency", EmitDefaultValue=false)] + public CurrencyEnum Currency { get; set; } + /// + /// Initializes a new instance of the class. /// - /// [Required] Currency Code These must match three letter codes ISO 4127 http://en.wikipedia.org/wiki/ISO_4217 - [DataMember(Name="CurrencyCode", EmitDefaultValue=false)] - public CurrencyCodeEnum? CurrencyCode { get; set; } + [JsonConstructorAttribute] + protected SubscriptionSummary() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// [Required] Indicated the name from where the request is coming from. - /// [Required] Store Id. - /// [Required] Currency Code These must match three letter codes ISO 4127 http://en.wikipedia.org/wiki/ISO_4217. - /// [Required] Cart of the user. - /// [Required] Relevant fulfillment Information. - /// [Required] Order ID in the external System. - /// [Optional] Public Order ID in the external System. - /// Date the order was placed at in UTC [Required]. - /// Payment Information [Required]. - /// Contact Information [Required]. - /// Tip amount. - public OrderIngestSubmitOrderRequest(AppTypeEnum? appType = default(AppTypeEnum?), int? storeId = default(int?), CurrencyCodeEnum? currencyCode = default(CurrencyCodeEnum?), Cart cart = default(Cart), FulfillmentInfo fulfillmentInfo = default(FulfillmentInfo), string channelOrderId = default(string), string channelPublicOrderId = default(string), DateTime? orderDateUtc = default(DateTime?), PaymentInfo paymentInfo = default(PaymentInfo), Contact contact = default(Contact), double? tipAmount = default(double?)) + /// 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?)) { - this.AppType = appType; - this.StoreId = storeId; - this.CurrencyCode = currencyCode; - this.Cart = cart; - this.FulfillmentInfo = fulfillmentInfo; - this.ChannelOrderId = channelOrderId; - this.ChannelPublicOrderId = channelPublicOrderId; - this.OrderDateUtc = orderDateUtc; - this.PaymentInfo = paymentInfo; - this.Contact = contact; - this.TipAmount = tipAmount; + // 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; } - /// - /// [Required] Store Id + /// Next invoice amount /// - /// [Required] Store Id - [DataMember(Name="StoreId", EmitDefaultValue=false)] - public int? StoreId { get; set; } - + /// Next invoice amount + [DataMember(Name="NextInvoiceAmount", EmitDefaultValue=false)] + public double? NextInvoiceAmount { get; set; } /// - /// [Required] Cart of the user + /// Next invoice billing date /// - /// [Required] Cart of the user - [DataMember(Name="Cart", EmitDefaultValue=false)] - public Cart Cart { get; set; } + /// Next invoice billing date + [DataMember(Name="NextInvoiceBillingDate", EmitDefaultValue=false)] + public DateTime? NextInvoiceBillingDate { get; set; } /// - /// [Required] Relevant fulfillment Information + /// The subscription identifier /// - /// [Required] Relevant fulfillment Information - [DataMember(Name="FulfillmentInfo", EmitDefaultValue=false)] - public FulfillmentInfo FulfillmentInfo { get; set; } + /// The subscription identifier + [DataMember(Name="SubscriptionId", EmitDefaultValue=false)] + public string SubscriptionId { get; set; } /// - /// [Required] Order ID in the external System + /// Name /// - /// [Required] Order ID in the external System - [DataMember(Name="ChannelOrderId", EmitDefaultValue=false)] - public string ChannelOrderId { get; set; } + /// Name + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } + - /// - /// [Optional] Public Order ID in the external System - /// - /// [Optional] Public Order ID in the external System - [DataMember(Name="ChannelPublicOrderId", EmitDefaultValue=false)] - public string ChannelPublicOrderId { get; set; } /// - /// Date the order was placed at in UTC [Required] + /// User /// - /// Date the order was placed at in UTC [Required] - [DataMember(Name="OrderDateUtc", EmitDefaultValue=false)] - public DateTime? OrderDateUtc { get; set; } + /// User + [DataMember(Name="User", EmitDefaultValue=false)] + public string User { get; set; } /// - /// Payment Information [Required] + /// Default payment description /// - /// Payment Information [Required] - [DataMember(Name="PaymentInfo", EmitDefaultValue=false)] - public PaymentInfo PaymentInfo { get; set; } + /// Default payment description + [DataMember(Name="DefaultPaymentDescription", EmitDefaultValue=false)] + public string DefaultPaymentDescription { get; set; } /// - /// Contact Information [Required] + /// Cancellation Date /// - /// Contact Information [Required] - [DataMember(Name="Contact", EmitDefaultValue=false)] - public Contact Contact { get; set; } + /// Cancellation Date + [DataMember(Name="CancellationRequestDate", EmitDefaultValue=false)] + public DateTime? CancellationRequestDate { get; set; } /// - /// Tip amount + /// Cancel Date /// - /// Tip amount - [DataMember(Name="TipAmount", EmitDefaultValue=false)] - public double? TipAmount { get; set; } + /// Cancel Date + [DataMember(Name="CancellationDate", EmitDefaultValue=false)] + public DateTime? CancellationDate { get; set; } /// /// Returns the string presentation of the object @@ -903,18 +915,17 @@ public enum CurrencyCodeEnum public override string ToString() { var sb = new StringBuilder(); - sb.Append("class OrderIngestSubmitOrderRequest {\n"); - sb.Append(" AppType: ").Append(AppType).Append("\n"); - sb.Append(" StoreId: ").Append(StoreId).Append("\n"); - sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n"); - sb.Append(" Cart: ").Append(Cart).Append("\n"); - sb.Append(" FulfillmentInfo: ").Append(FulfillmentInfo).Append("\n"); - sb.Append(" ChannelOrderId: ").Append(ChannelOrderId).Append("\n"); - sb.Append(" ChannelPublicOrderId: ").Append(ChannelPublicOrderId).Append("\n"); - sb.Append(" OrderDateUtc: ").Append(OrderDateUtc).Append("\n"); - sb.Append(" PaymentInfo: ").Append(PaymentInfo).Append("\n"); - sb.Append(" Contact: ").Append(Contact).Append("\n"); - sb.Append(" TipAmount: ").Append(TipAmount).Append("\n"); + 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(); } @@ -935,74 +946,69 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as OrderIngestSubmitOrderRequest); + return this.Equals(input as SubscriptionSummary); } /// - /// Returns true if OrderIngestSubmitOrderRequest instances are equal + /// Returns true if SubscriptionSummary instances are equal /// - /// Instance of OrderIngestSubmitOrderRequest to be compared + /// Instance of SubscriptionSummary to be compared /// Boolean - public bool Equals(OrderIngestSubmitOrderRequest input) + public bool Equals(SubscriptionSummary input) { if (input == null) return false; return ( - this.AppType == input.AppType || - (this.AppType != null && - this.AppType.Equals(input.AppType)) - ) && - ( - this.StoreId == input.StoreId || - (this.StoreId != null && - this.StoreId.Equals(input.StoreId)) + this.NextInvoiceAmount == input.NextInvoiceAmount || + (this.NextInvoiceAmount != null && + this.NextInvoiceAmount.Equals(input.NextInvoiceAmount)) ) && ( - this.CurrencyCode == input.CurrencyCode || - (this.CurrencyCode != null && - this.CurrencyCode.Equals(input.CurrencyCode)) + this.NextInvoiceBillingDate == input.NextInvoiceBillingDate || + (this.NextInvoiceBillingDate != null && + this.NextInvoiceBillingDate.Equals(input.NextInvoiceBillingDate)) ) && ( - this.Cart == input.Cart || - (this.Cart != null && - this.Cart.Equals(input.Cart)) + this.SubscriptionId == input.SubscriptionId || + (this.SubscriptionId != null && + this.SubscriptionId.Equals(input.SubscriptionId)) ) && ( - this.FulfillmentInfo == input.FulfillmentInfo || - (this.FulfillmentInfo != null && - this.FulfillmentInfo.Equals(input.FulfillmentInfo)) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( - this.ChannelOrderId == input.ChannelOrderId || - (this.ChannelOrderId != null && - this.ChannelOrderId.Equals(input.ChannelOrderId)) + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) ) && ( - this.ChannelPublicOrderId == input.ChannelPublicOrderId || - (this.ChannelPublicOrderId != null && - this.ChannelPublicOrderId.Equals(input.ChannelPublicOrderId)) + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) ) && ( - this.OrderDateUtc == input.OrderDateUtc || - (this.OrderDateUtc != null && - this.OrderDateUtc.Equals(input.OrderDateUtc)) + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) ) && ( - this.PaymentInfo == input.PaymentInfo || - (this.PaymentInfo != null && - this.PaymentInfo.Equals(input.PaymentInfo)) + this.DefaultPaymentDescription == input.DefaultPaymentDescription || + (this.DefaultPaymentDescription != null && + this.DefaultPaymentDescription.Equals(input.DefaultPaymentDescription)) ) && ( - this.Contact == input.Contact || - (this.Contact != null && - this.Contact.Equals(input.Contact)) + this.CancellationRequestDate == input.CancellationRequestDate || + (this.CancellationRequestDate != null && + this.CancellationRequestDate.Equals(input.CancellationRequestDate)) ) && ( - this.TipAmount == input.TipAmount || - (this.TipAmount != null && - this.TipAmount.Equals(input.TipAmount)) + this.CancellationDate == input.CancellationDate || + (this.CancellationDate != null && + this.CancellationDate.Equals(input.CancellationDate)) ); } @@ -1015,28 +1021,26 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.AppType != null) - hashCode = hashCode * 59 + this.AppType.GetHashCode(); - if (this.StoreId != null) - hashCode = hashCode * 59 + this.StoreId.GetHashCode(); - if (this.CurrencyCode != null) - hashCode = hashCode * 59 + this.CurrencyCode.GetHashCode(); - if (this.Cart != null) - hashCode = hashCode * 59 + this.Cart.GetHashCode(); - if (this.FulfillmentInfo != null) - hashCode = hashCode * 59 + this.FulfillmentInfo.GetHashCode(); - if (this.ChannelOrderId != null) - hashCode = hashCode * 59 + this.ChannelOrderId.GetHashCode(); - if (this.ChannelPublicOrderId != null) - hashCode = hashCode * 59 + this.ChannelPublicOrderId.GetHashCode(); - if (this.OrderDateUtc != null) - hashCode = hashCode * 59 + this.OrderDateUtc.GetHashCode(); - if (this.PaymentInfo != null) - hashCode = hashCode * 59 + this.PaymentInfo.GetHashCode(); - if (this.Contact != null) - hashCode = hashCode * 59 + this.Contact.GetHashCode(); - if (this.TipAmount != null) - hashCode = hashCode * 59 + this.TipAmount.GetHashCode(); + 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/DriverInvitation.cs b/src/Flipdish/Model/TaxItem.cs similarity index 58% rename from src/Flipdish/Model/DriverInvitation.cs rename to src/Flipdish/Model/TaxItem.cs index 38705262..72e9869b 100644 --- a/src/Flipdish/Model/DriverInvitation.cs +++ b/src/Flipdish/Model/TaxItem.cs @@ -23,44 +23,44 @@ namespace Flipdish.Model { /// - /// DriverInvitation + /// A collection of tax items on the order. /// [DataContract] - public partial class DriverInvitation : IEquatable + public partial class TaxItem : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Phone number. - /// Driver's name. - /// Assigned store IDs. - public DriverInvitation(string phoneNumber = default(string), string name = default(string), List storeIds = default(List)) + /// 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.PhoneNumber = phoneNumber; this.Name = name; - this.StoreIds = storeIds; + this.Rate = rate; + this.Amount = amount; } /// - /// Phone number + /// The name of the tax item. /// - /// Phone number - [DataMember(Name="PhoneNumber", EmitDefaultValue=false)] - public string PhoneNumber { get; set; } + /// The name of the tax item. + [DataMember(Name="Name", EmitDefaultValue=false)] + public string Name { get; set; } /// - /// Driver's name + /// The tax rate applied to the item. /// - /// Driver's name - [DataMember(Name="Name", EmitDefaultValue=false)] - public string Name { get; set; } + /// The tax rate applied to the item. + [DataMember(Name="Rate", EmitDefaultValue=false)] + public double? Rate { get; set; } /// - /// Assigned store IDs + /// The amount of tax applied to the item. /// - /// Assigned store IDs - [DataMember(Name="StoreIds", EmitDefaultValue=false)] - public List StoreIds { get; set; } + /// 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 @@ -69,10 +69,10 @@ public partial class DriverInvitation : IEquatable public override string ToString() { var sb = new StringBuilder(); - sb.Append("class DriverInvitation {\n"); - sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append("class TaxItem {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); + sb.Append(" Rate: ").Append(Rate).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -93,34 +93,34 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as DriverInvitation); + return this.Equals(input as TaxItem); } /// - /// Returns true if DriverInvitation instances are equal + /// Returns true if TaxItem instances are equal /// - /// Instance of DriverInvitation to be compared + /// Instance of TaxItem to be compared /// Boolean - public bool Equals(DriverInvitation input) + public bool Equals(TaxItem input) { if (input == null) return false; return - ( - this.PhoneNumber == input.PhoneNumber || - (this.PhoneNumber != null && - this.PhoneNumber.Equals(input.PhoneNumber)) - ) && ( this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) ) && ( - this.StoreIds == input.StoreIds || - this.StoreIds != null && - this.StoreIds.SequenceEqual(input.StoreIds) + this.Rate == input.Rate || + (this.Rate != null && + this.Rate.Equals(input.Rate)) + ) && + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) ); } @@ -133,12 +133,12 @@ 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.Name != null) hashCode = hashCode * 59 + this.Name.GetHashCode(); - if (this.StoreIds != null) - hashCode = hashCode * 59 + this.StoreIds.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 index a4e0a441..72f79b7b 100644 --- a/src/Flipdish/Model/Teammate.cs +++ b/src/Flipdish/Model/Teammate.cs @@ -87,47 +87,71 @@ public enum AppAccessLevelEnum [EnumMember(Value = "StoreOwner")] StoreOwner = 3, + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 4, + /// /// Enum ManagedOwner for value: ManagedOwner /// [EnumMember(Value = "ManagedOwner")] - ManagedOwner = 4, + ManagedOwner = 5, /// /// Enum Integrator for value: Integrator /// [EnumMember(Value = "Integrator")] - Integrator = 5, + Integrator = 6, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 7, /// /// Enum StoreManager for value: StoreManager /// [EnumMember(Value = "StoreManager")] - StoreManager = 6, + StoreManager = 8, /// /// Enum StoreStaff for value: StoreStaff /// [EnumMember(Value = "StoreStaff")] - StoreStaff = 7, + StoreStaff = 9, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 10, /// /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess /// [EnumMember(Value = "StoreReadOnlyAccess")] - StoreReadOnlyAccess = 8, + StoreReadOnlyAccess = 11, /// /// Enum FinanceManger for value: FinanceManger /// [EnumMember(Value = "FinanceManger")] - FinanceManger = 9, + FinanceManger = 12, + + /// + /// Enum Onboarding for value: Onboarding + /// + [EnumMember(Value = "Onboarding")] + Onboarding = 13, /// /// Enum Support for value: Support /// [EnumMember(Value = "Support")] - Support = 10 + Support = 14 } /// @@ -140,6 +164,7 @@ public enum AppAccessLevelEnum /// Initializes a new instance of the class. /// /// Unique indentifier. + /// User ID of the teammate. /// Name. /// Last activity. /// Access level is for this App. @@ -148,9 +173,11 @@ public enum AppAccessLevelEnum /// 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). - public Teammate(string teammateId = default(string), 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)) + /// 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; @@ -159,6 +186,7 @@ public enum AppAccessLevelEnum this.AppAccessLevel = appAccessLevel; this.HasAccessToAllStores = hasAccessToAllStores; this.StoreIds = storeIds; + this.PropertyIds = propertyIds; } /// @@ -168,6 +196,13 @@ public enum AppAccessLevelEnum [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 /// @@ -212,6 +247,13 @@ public enum AppAccessLevelEnum [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 /// @@ -221,6 +263,7 @@ 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"); @@ -229,6 +272,7 @@ public override string ToString() 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(); } @@ -268,6 +312,11 @@ public bool Equals(Teammate input) (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 && @@ -307,6 +356,11 @@ public bool Equals(Teammate input) this.StoreIds == input.StoreIds || this.StoreIds != null && this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.PropertyIds == input.PropertyIds || + this.PropertyIds != null && + this.PropertyIds.SequenceEqual(input.PropertyIds) ); } @@ -321,6 +375,8 @@ public override int GetHashCode() 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) @@ -337,6 +393,8 @@ public override int GetHashCode() 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 index be196e94..62ea8d05 100644 --- a/src/Flipdish/Model/TeammateBase.cs +++ b/src/Flipdish/Model/TeammateBase.cs @@ -54,47 +54,71 @@ public enum AppAccessLevelEnum [EnumMember(Value = "StoreOwner")] StoreOwner = 3, + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 4, + /// /// Enum ManagedOwner for value: ManagedOwner /// [EnumMember(Value = "ManagedOwner")] - ManagedOwner = 4, + ManagedOwner = 5, /// /// Enum Integrator for value: Integrator /// [EnumMember(Value = "Integrator")] - Integrator = 5, + Integrator = 6, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 7, /// /// Enum StoreManager for value: StoreManager /// [EnumMember(Value = "StoreManager")] - StoreManager = 6, + StoreManager = 8, /// /// Enum StoreStaff for value: StoreStaff /// [EnumMember(Value = "StoreStaff")] - StoreStaff = 7, + StoreStaff = 9, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 10, /// /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess /// [EnumMember(Value = "StoreReadOnlyAccess")] - StoreReadOnlyAccess = 8, + StoreReadOnlyAccess = 11, /// /// Enum FinanceManger for value: FinanceManger /// [EnumMember(Value = "FinanceManger")] - FinanceManger = 9, + FinanceManger = 12, + + /// + /// Enum Onboarding for value: Onboarding + /// + [EnumMember(Value = "Onboarding")] + Onboarding = 13, /// /// Enum Support for value: Support /// [EnumMember(Value = "Support")] - Support = 10 + Support = 14 } /// @@ -109,11 +133,13 @@ public enum AppAccessLevelEnum /// 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). - public TeammateBase(AppAccessLevelEnum? appAccessLevel = default(AppAccessLevelEnum?), bool? hasAccessToAllStores = default(bool?), List storeIds = default(List)) + /// 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; } @@ -131,6 +157,13 @@ public enum AppAccessLevelEnum [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 /// @@ -142,6 +175,7 @@ public override string ToString() 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(); } @@ -190,6 +224,11 @@ public bool Equals(TeammateBase input) this.StoreIds == input.StoreIds || this.StoreIds != null && this.StoreIds.SequenceEqual(input.StoreIds) + ) && + ( + this.PropertyIds == input.PropertyIds || + this.PropertyIds != null && + this.PropertyIds.SequenceEqual(input.PropertyIds) ); } @@ -208,6 +247,8 @@ public override int GetHashCode() 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 index ee1dea35..de367afb 100644 --- a/src/Flipdish/Model/TeammateDeletedEvent.cs +++ b/src/Flipdish/Model/TeammateDeletedEvent.cs @@ -38,8 +38,11 @@ public partial class TeammateDeletedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class TeammateDeletedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -100,6 +106,13 @@ public partial class TeammateDeletedEvent : IEquatable [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 /// @@ -107,6 +120,20 @@ public partial class TeammateDeletedEvent : IEquatable [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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(TeammateDeletedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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 index c72323cc..184b57ae 100644 --- a/src/Flipdish/Model/TeammateInviteAcceptedEvent.cs +++ b/src/Flipdish/Model/TeammateInviteAcceptedEvent.cs @@ -38,8 +38,11 @@ public partial class TeammateInviteAcceptedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class TeammateInviteAcceptedEvent : IEquatable @@ -100,6 +106,13 @@ public partial class TeammateInviteAcceptedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -107,6 +120,20 @@ public partial class TeammateInviteAcceptedEvent : IEquatable + /// 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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(TeammateInviteAcceptedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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 index 4ae8a8bc..10c1b5b6 100644 --- a/src/Flipdish/Model/TeammateInviteSentEvent.cs +++ b/src/Flipdish/Model/TeammateInviteSentEvent.cs @@ -38,8 +38,11 @@ public partial class TeammateInviteSentEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class TeammateInviteSentEvent : IEquatable @@ -100,6 +106,13 @@ public partial class TeammateInviteSentEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -107,6 +120,20 @@ public partial class TeammateInviteSentEvent : IEquatable + /// 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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(TeammateInviteSentEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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 index 4b0b44e0..cd4f3841 100644 --- a/src/Flipdish/Model/TeammateUpdatedEvent.cs +++ b/src/Flipdish/Model/TeammateUpdatedEvent.cs @@ -38,8 +38,11 @@ public partial class TeammateUpdatedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class TeammateUpdatedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -100,6 +106,13 @@ public partial class TeammateUpdatedEvent : IEquatable [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 /// @@ -107,6 +120,20 @@ public partial class TeammateUpdatedEvent : IEquatable [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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(TeammateUpdatedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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 index f967378d..fdbb6253 100644 --- a/src/Flipdish/Model/TelemetrySeriesProperty.cs +++ b/src/Flipdish/Model/TelemetrySeriesProperty.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// TelemetrySeriesProperty + /// TelemetrySeriesProperty. /// [DataContract] public partial class TelemetrySeriesProperty : IEquatable @@ -31,11 +31,11 @@ public partial class TelemetrySeriesProperty : IEquatable /// Initializes a new instance of the class. /// - /// name. - /// type. - /// intValues. - /// stringValues. - /// doubleValues. + /// 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; @@ -46,32 +46,37 @@ public partial class TelemetrySeriesProperty : IEquatable - /// Gets or Sets Name + /// Name. /// + /// Name. [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Gets or Sets Type + /// Type. /// + /// Type. [DataMember(Name="Type", EmitDefaultValue=false)] public string Type { get; set; } /// - /// Gets or Sets IntValues + /// IntValues. /// + /// IntValues. [DataMember(Name="IntValues", EmitDefaultValue=false)] public List IntValues { get; set; } /// - /// Gets or Sets StringValues + /// StringValues. /// + /// StringValues. [DataMember(Name="StringValues", EmitDefaultValue=false)] public List StringValues { get; set; } /// - /// Gets or Sets DoubleValues + /// DoubleValues. /// + /// DoubleValues. [DataMember(Name="DoubleValues", EmitDefaultValue=false)] public List DoubleValues { get; set; } diff --git a/src/Flipdish/Model/TelemetrySeriesQueryParameters.cs b/src/Flipdish/Model/TelemetrySeriesQueryParameters.cs index e610e071..8a67fdf6 100644 --- a/src/Flipdish/Model/TelemetrySeriesQueryParameters.cs +++ b/src/Flipdish/Model/TelemetrySeriesQueryParameters.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// TelemetrySeriesQueryParameters + /// TelemetrySeriesQueryParameters. /// [DataContract] public partial class TelemetrySeriesQueryParameters : IEquatable @@ -31,10 +31,10 @@ public partial class TelemetrySeriesQueryParameters : IEquatable /// Initializes a new instance of the class. /// - /// kioskId. - /// variables. - /// startDate. - /// endDate. + /// 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; @@ -44,26 +44,30 @@ public partial class TelemetrySeriesQueryParameters : IEquatable - /// Gets or Sets KioskId + /// KioskId. /// + /// KioskId. [DataMember(Name="KioskId", EmitDefaultValue=false)] public string KioskId { get; set; } /// - /// Gets or Sets Variables + /// Variables. /// + /// Variables. [DataMember(Name="Variables", EmitDefaultValue=false)] public List Variables { get; set; } /// - /// Gets or Sets StartDate + /// StartDate. /// + /// StartDate. [DataMember(Name="StartDate", EmitDefaultValue=false)] public DateTime? StartDate { get; set; } /// - /// Gets or Sets EndDate + /// EndDate. /// + /// EndDate. [DataMember(Name="EndDate", EmitDefaultValue=false)] public DateTime? EndDate { get; set; } diff --git a/src/Flipdish/Model/TelemetrySeriesResult.cs b/src/Flipdish/Model/TelemetrySeriesResult.cs index 7340a777..60ba1b67 100644 --- a/src/Flipdish/Model/TelemetrySeriesResult.cs +++ b/src/Flipdish/Model/TelemetrySeriesResult.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// TelemetrySeriesResult + /// TelemetrySeriesResult. /// [DataContract] public partial class TelemetrySeriesResult : IEquatable @@ -31,8 +31,8 @@ public partial class TelemetrySeriesResult : IEquatable /// /// Initializes a new instance of the class. /// - /// timestamps. - /// properties. + /// Timestamps.. + /// Properties.. public TelemetrySeriesResult(List timestamps = default(List), List properties = default(List)) { this.Timestamps = timestamps; @@ -40,14 +40,16 @@ public partial class TelemetrySeriesResult : IEquatable } /// - /// Gets or Sets Timestamps + /// Timestamps. /// + /// Timestamps. [DataMember(Name="Timestamps", EmitDefaultValue=false)] public List Timestamps { get; set; } /// - /// Gets or Sets Properties + /// Properties. /// + /// Properties. [DataMember(Name="Properties", EmitDefaultValue=false)] public List Properties { get; set; } 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/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 index cd445cfe..a26e76f5 100644 --- a/src/Flipdish/Model/UpdateAppStoreApp.cs +++ b/src/Flipdish/Model/UpdateAppStoreApp.cs @@ -23,15 +23,14 @@ namespace Flipdish.Model { /// - /// Update App store app + /// UpdateAppStoreApp /// [DataContract] public partial class UpdateAppStoreApp : IEquatable { /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> + /// Defines ConfigurationType /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> [JsonConverter(typeof(StringEnumConverter))] public enum ConfigurationTypeEnum { @@ -50,15 +49,13 @@ public enum ConfigurationTypeEnum } /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> + /// Gets or Sets ConfigurationType /// - /// Configuration type <example>External link</example><example>Flipdish hosted</example> [DataMember(Name="ConfigurationType", EmitDefaultValue=false)] public ConfigurationTypeEnum ConfigurationType { get; set; } /// - /// Store selector type + /// Defines StoreSelectorType /// - /// Store selector type [JsonConverter(typeof(StringEnumConverter))] public enum StoreSelectorTypeEnum { @@ -83,15 +80,13 @@ public enum StoreSelectorTypeEnum } /// - /// Store selector type + /// Gets or Sets StoreSelectorType /// - /// Store selector type [DataMember(Name="StoreSelectorType", EmitDefaultValue=false)] public StoreSelectorTypeEnum StoreSelectorType { get; set; } /// - /// Teammate app access level + /// Defines TeammateAppAccessLevel /// - /// Teammate app access level [JsonConverter(typeof(StringEnumConverter))] public enum TeammateAppAccessLevelEnum { @@ -108,53 +103,69 @@ public enum TeammateAppAccessLevelEnum [EnumMember(Value = "StoreOwner")] StoreOwner = 2, + /// + /// Enum PropertyOwner for value: PropertyOwner + /// + [EnumMember(Value = "PropertyOwner")] + PropertyOwner = 3, + /// /// Enum ManagedOwner for value: ManagedOwner /// [EnumMember(Value = "ManagedOwner")] - ManagedOwner = 3, + ManagedOwner = 4, /// /// Enum Integrator for value: Integrator /// [EnumMember(Value = "Integrator")] - Integrator = 4, + Integrator = 5, + + /// + /// Enum PropertyManager for value: PropertyManager + /// + [EnumMember(Value = "PropertyManager")] + PropertyManager = 6, /// /// Enum StoreManager for value: StoreManager /// [EnumMember(Value = "StoreManager")] - StoreManager = 5, + StoreManager = 7, /// /// Enum StoreStaff for value: StoreStaff /// [EnumMember(Value = "StoreStaff")] - StoreStaff = 6, + StoreStaff = 8, + + /// + /// Enum StaffMember for value: StaffMember + /// + [EnumMember(Value = "StaffMember")] + StaffMember = 9, /// /// Enum StoreReadOnlyAccess for value: StoreReadOnlyAccess /// [EnumMember(Value = "StoreReadOnlyAccess")] - StoreReadOnlyAccess = 7, + StoreReadOnlyAccess = 10, /// /// Enum FinanceManger for value: FinanceManger /// [EnumMember(Value = "FinanceManger")] - FinanceManger = 8 + FinanceManger = 11 } /// - /// Teammate app access level + /// Gets or Sets TeammateAppAccessLevel /// - /// Teammate app access level [DataMember(Name="TeammateAppAccessLevel", EmitDefaultValue=false)] public TeammateAppAccessLevelEnum? TeammateAppAccessLevel { get; set; } /// - /// Permissions type + /// Defines PermissionsType /// - /// Permissions type [JsonConverter(typeof(StringEnumConverter))] public enum PermissionsTypeEnum { @@ -167,9 +178,8 @@ public enum PermissionsTypeEnum } /// - /// Permissions type + /// Gets or Sets PermissionsType /// - /// Permissions type [DataMember(Name="PermissionsType", EmitDefaultValue=false)] public PermissionsTypeEnum PermissionsType { get; set; } /// @@ -224,9 +234,8 @@ public enum CategoriesEnum /// - /// Categories + /// Gets or Sets Categories /// - /// Categories [DataMember(Name="Categories", EmitDefaultValue=false)] public List Categories { get; set; } /// @@ -341,9 +350,8 @@ public enum CountriesEnum /// - /// Countries + /// Gets or Sets Countries /// - /// Countries [DataMember(Name="Countries", EmitDefaultValue=false)] public List Countries { get; set; } /// @@ -354,22 +362,25 @@ protected UpdateAppStoreApp() { } /// /// Initializes a new instance of the class. /// - /// Details (required). - /// Configuration type <example>External link</example><example>Flipdish hosted</example> (required). - /// Store selector type (required). - /// Field groups. - /// Setup instructions. - /// External setup link. - /// Teammate app access level. - /// Permissions type (required). - /// Support information. - /// Name (required). - /// Description (required). - /// Is application enabled. - /// Categories (required). - /// Countries (required). - /// Developer Name. - 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 name = default(string), string description = default(string), bool? isEnabled = default(bool?), List categories = default(List), List countries = default(List), string developerName = default(string)) + /// 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) @@ -448,76 +459,88 @@ protected UpdateAppStoreApp() { } this.ExternalSetupLink = externalSetupLink; this.TeammateAppAccessLevel = teammateAppAccessLevel; this.Support = support; + this.ExternalFunctionActionUrl = externalFunctionActionUrl; + this.ExternalFunctionSignatureKey = externalFunctionSignatureKey; + this.IsPaid = isPaid; this.IsEnabled = isEnabled; this.DeveloperName = developerName; } /// - /// Details + /// Gets or Sets Details /// - /// Details [DataMember(Name="Details", EmitDefaultValue=false)] public string Details { get; set; } /// - /// Field groups + /// Gets or Sets FieldGroups /// - /// Field groups [DataMember(Name="FieldGroups", EmitDefaultValue=false)] public List FieldGroups { get; set; } /// - /// Setup instructions + /// Gets or Sets SetupInstructions /// - /// Setup instructions [DataMember(Name="SetupInstructions", EmitDefaultValue=false)] public string SetupInstructions { get; set; } /// - /// External setup link + /// Gets or Sets ExternalSetupLink /// - /// External setup link [DataMember(Name="ExternalSetupLink", EmitDefaultValue=false)] public string ExternalSetupLink { get; set; } /// - /// Support information + /// Gets or Sets Support /// - /// Support information [DataMember(Name="Support", EmitDefaultValue=false)] public AppStoreAppSupportInfo Support { get; set; } /// - /// Name + /// 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 /// - /// Name [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Description + /// Gets or Sets Description /// - /// Description [DataMember(Name="Description", EmitDefaultValue=false)] public string Description { get; set; } /// - /// Is application enabled + /// Gets or Sets IsEnabled /// - /// Is application enabled [DataMember(Name="IsEnabled", EmitDefaultValue=false)] public bool? IsEnabled { get; set; } /// - /// Developer Name + /// Gets or Sets DeveloperName /// - /// Developer Name [DataMember(Name="DeveloperName", EmitDefaultValue=false)] public string DeveloperName { get; set; } @@ -538,6 +561,9 @@ public override string ToString() 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"); @@ -623,6 +649,21 @@ public bool Equals(UpdateAppStoreApp input) (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 && @@ -682,6 +723,12 @@ public override int GetHashCode() 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) diff --git a/src/Flipdish/Model/UpdateAppStoreAppConfiguration.cs b/src/Flipdish/Model/UpdateAppStoreAppConfiguration.cs index 72942c57..109b5cb7 100644 --- a/src/Flipdish/Model/UpdateAppStoreAppConfiguration.cs +++ b/src/Flipdish/Model/UpdateAppStoreAppConfiguration.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Update App store app configuration + /// UpdateAppStoreAppConfiguration /// [DataContract] public partial class UpdateAppStoreAppConfiguration : IEquatable @@ -36,9 +36,9 @@ protected UpdateAppStoreAppConfiguration() { } /// /// Initializes a new instance of the class. /// - /// Is enabled (required). - /// Stores id's. - /// Settings. + /// 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) @@ -55,23 +55,20 @@ protected UpdateAppStoreAppConfiguration() { } } /// - /// Is enabled + /// Gets or Sets IsEnabled /// - /// Is enabled [DataMember(Name="IsEnabled", EmitDefaultValue=false)] public bool? IsEnabled { get; set; } /// - /// Stores id's + /// Gets or Sets StoreIds /// - /// Stores id's [DataMember(Name="StoreIds", EmitDefaultValue=false)] public List StoreIds { get; set; } /// - /// Settings + /// Gets or Sets Settings /// - /// Settings [DataMember(Name="Settings", EmitDefaultValue=false)] public List Settings { get; set; } 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 index 86c9e667..c3556ba9 100644 --- a/src/Flipdish/Model/UpdateAppStoreAppConfigurationWebhookDTO.cs +++ b/src/Flipdish/Model/UpdateAppStoreAppConfigurationWebhookDTO.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// App store app configuration webhook event + /// UpdateAppStoreAppConfigurationWebhookDTO /// [DataContract] public partial class UpdateAppStoreAppConfigurationWebhookDTO : IEquatable @@ -36,10 +36,10 @@ protected UpdateAppStoreAppConfigurationWebhookDTO() { } /// /// Initializes a new instance of the class. /// - /// Unique App store app configuration id (required). - /// Is enabled (required). - /// Store id's. - /// Settings. + /// 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) @@ -65,30 +65,26 @@ protected UpdateAppStoreAppConfigurationWebhookDTO() { } } /// - /// Unique App store app configuration id + /// Gets or Sets Id /// - /// Unique App store app configuration id [DataMember(Name="Id", EmitDefaultValue=false)] public string Id { get; set; } /// - /// Is enabled + /// Gets or Sets IsEnabled /// - /// Is enabled [DataMember(Name="IsEnabled", EmitDefaultValue=false)] public bool? IsEnabled { get; set; } /// - /// Store id's + /// Gets or Sets StoreIds /// - /// Store id's [DataMember(Name="StoreIds", EmitDefaultValue=false)] public List StoreIds { get; set; } /// - /// Settings + /// Gets or Sets Settings /// - /// Settings [DataMember(Name="Settings", EmitDefaultValue=false)] public List Settings { get; set; } 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 index ef51aecb..ea618456 100644 --- a/src/Flipdish/Model/UpdateCatalogGroupReference.cs +++ b/src/Flipdish/Model/UpdateCatalogGroupReference.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Data to update a {Flipdish.PublicModels.V1.Catalog.Items.CatalogGroupReference} + /// Data to update a {Flipdish.Menus.PublicModels.V1.Catalog.Items.CatalogGroupReference} /// [DataContract] public partial class UpdateCatalogGroupReference : IEquatable diff --git a/src/Flipdish/Model/UpdateFulfillmentStatesConfiguration.cs b/src/Flipdish/Model/UpdateFulfillmentStatesConfiguration.cs index b2c4d854..cec3901f 100644 --- a/src/Flipdish/Model/UpdateFulfillmentStatesConfiguration.cs +++ b/src/Flipdish/Model/UpdateFulfillmentStatesConfiguration.cs @@ -64,18 +64,29 @@ public enum StoreSelectorTypeEnum /// /// 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(List storeIds = default(List), StoreSelectorTypeEnum? storeSelectorType = default(StoreSelectorTypeEnum?), List states = default(List), string name = default(string)) + 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 /// @@ -91,6 +102,13 @@ public enum StoreSelectorTypeEnum [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 /// @@ -106,9 +124,11 @@ 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(); @@ -144,6 +164,11 @@ public bool Equals(UpdateFulfillmentStatesConfiguration input) return false; return + ( + this.OverwriteSystemTemplate == input.OverwriteSystemTemplate || + (this.OverwriteSystemTemplate != null && + this.OverwriteSystemTemplate.Equals(input.OverwriteSystemTemplate)) + ) && ( this.StoreIds == input.StoreIds || this.StoreIds != null && @@ -159,6 +184,11 @@ public bool Equals(UpdateFulfillmentStatesConfiguration input) 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 && @@ -175,12 +205,16 @@ 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/UpdateGroupReference.cs b/src/Flipdish/Model/UpdateGroupReference.cs index aee82746..07bcca8b 100644 --- a/src/Flipdish/Model/UpdateGroupReference.cs +++ b/src/Flipdish/Model/UpdateGroupReference.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Data to update a {Flipdish.PublicModels.V1.Catalog.Products.GroupReference} + /// Data to update a {Flipdish.Menus.PublicModels.V1.Catalog.Products.GroupReference} /// [DataContract] public partial class UpdateGroupReference : IEquatable diff --git a/src/Flipdish/Model/UpdateMetafieldDefinition.cs b/src/Flipdish/Model/UpdateMetafieldDefinition.cs index b899d76c..ce90b248 100644 --- a/src/Flipdish/Model/UpdateMetafieldDefinition.cs +++ b/src/Flipdish/Model/UpdateMetafieldDefinition.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Information to update a {Flipdish.PublicModels.V1.Metafields.MetafieldDefinition} + /// Information to update a {Flipdish.Metafields.PublicModels.V1.MetafieldDefinition} /// [DataContract] public partial class UpdateMetafieldDefinition : IEquatable diff --git a/src/Flipdish/Model/UpdateMobileAppsSubmissionStatus.cs b/src/Flipdish/Model/UpdateMobileAppsSubmissionStatus.cs index 8bb020d7..f45ea922 100644 --- a/src/Flipdish/Model/UpdateMobileAppsSubmissionStatus.cs +++ b/src/Flipdish/Model/UpdateMobileAppsSubmissionStatus.cs @@ -36,17 +36,23 @@ public partial class UpdateMobileAppsSubmissionStatus : IEquatable + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + /// /// Enum Android for value: Android /// [EnumMember(Value = "Android")] - Android = 1, + Android = 2, /// /// Enum IOS for value: IOS /// [EnumMember(Value = "IOS")] - IOS = 2 + IOS = 3 } /// diff --git a/src/Flipdish/Model/UpdatePayGreenConfigurationRequest.cs b/src/Flipdish/Model/UpdatePayGreenConfigurationRequest.cs index 588f1b2f..4d4dfff7 100644 --- a/src/Flipdish/Model/UpdatePayGreenConfigurationRequest.cs +++ b/src/Flipdish/Model/UpdatePayGreenConfigurationRequest.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// UpdatePayGreenConfigurationRequest + /// UpdatePayGreenConfigurationRequest. /// [DataContract] public partial class UpdatePayGreenConfigurationRequest : IEquatable @@ -31,8 +31,8 @@ public partial class UpdatePayGreenConfigurationRequest : IEquatable /// Initializes a new instance of the class. /// - /// name. - /// assignedStores. + /// Name.. + /// AssignedStores.. public UpdatePayGreenConfigurationRequest(string name = default(string), List assignedStores = default(List)) { this.Name = name; @@ -40,14 +40,16 @@ public partial class UpdatePayGreenConfigurationRequest : IEquatable - /// Gets or Sets Name + /// Name. /// + /// Name. [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } /// - /// Gets or Sets AssignedStores + /// AssignedStores. /// + /// AssignedStores. [DataMember(Name="AssignedStores", EmitDefaultValue=false)] public List AssignedStores { get; set; } diff --git a/src/Flipdish/Model/UpdateProductReference.cs b/src/Flipdish/Model/UpdateProductReference.cs index 2abfce32..a510fb9b 100644 --- a/src/Flipdish/Model/UpdateProductReference.cs +++ b/src/Flipdish/Model/UpdateProductReference.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Data to update a {Flipdish.PublicModels.V1.Catalog.Groups.UpdateProductReference} + /// Data to update a {Flipdish.Menus.PublicModels.V1.Catalog.Groups.UpdateProductReference} /// [DataContract] public partial class UpdateProductReference : IEquatable diff --git a/src/Flipdish/Model/UpdateStorePayGreenConfigurationRequest.cs b/src/Flipdish/Model/UpdateStorePayGreenConfigurationRequest.cs index 6063db57..bf5f3844 100644 --- a/src/Flipdish/Model/UpdateStorePayGreenConfigurationRequest.cs +++ b/src/Flipdish/Model/UpdateStorePayGreenConfigurationRequest.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// UpdateStorePayGreenConfigurationRequest + /// UpdateStorePayGreenConfigurationRequest. /// [DataContract] public partial class UpdateStorePayGreenConfigurationRequest : IEquatable @@ -31,8 +31,8 @@ public partial class UpdateStorePayGreenConfigurationRequest : IEquatable /// Initializes a new instance of the class. /// - /// active. - /// payGreenConfigurationId. + /// Active.. + /// PayGreenConfigurationId.. public UpdateStorePayGreenConfigurationRequest(bool? active = default(bool?), int? payGreenConfigurationId = default(int?)) { this.Active = active; @@ -40,14 +40,16 @@ public partial class UpdateStorePayGreenConfigurationRequest : IEquatable - /// Gets or Sets Active + /// Active. /// + /// Active. [DataMember(Name="Active", EmitDefaultValue=false)] public bool? Active { get; set; } /// - /// Gets or Sets PayGreenConfigurationId + /// PayGreenConfigurationId. /// + /// PayGreenConfigurationId. [DataMember(Name="PayGreenConfigurationId", EmitDefaultValue=false)] public int? PayGreenConfigurationId { get; set; } diff --git a/src/Flipdish/Model/VoucherBase.cs b/src/Flipdish/Model/UpdateVoucher.cs similarity index 51% rename from src/Flipdish/Model/VoucherBase.cs rename to src/Flipdish/Model/UpdateVoucher.cs index 0d57cedf..1fb5373f 100644 --- a/src/Flipdish/Model/VoucherBase.cs +++ b/src/Flipdish/Model/UpdateVoucher.cs @@ -23,16 +23,128 @@ namespace Flipdish.Model { /// - /// Voucher Base + /// Update Voucher /// [DataContract] - public partial class VoucherBase : IEquatable + public partial class UpdateVoucher : IEquatable { /// - /// Initializes a new instance of the class. + /// 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. @@ -45,12 +157,24 @@ public partial class VoucherBase : IEquatable /// 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). - public VoucherBase(string code = default(string), string description = default(string), 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?), DateTime? startDate = default(DateTime?), DateTime? expiryDate = default(DateTime?)) + /// 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; @@ -63,10 +187,39 @@ public partial class VoucherBase : IEquatable 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 /// @@ -81,6 +234,13 @@ public partial class VoucherBase : IEquatable [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 /// @@ -165,6 +325,27 @@ public partial class VoucherBase : IEquatable [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) /// @@ -179,6 +360,29 @@ public partial class VoucherBase : IEquatable [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 /// @@ -186,9 +390,13 @@ public partial class VoucherBase : IEquatable public override string ToString() { var sb = new StringBuilder(); - sb.Append("class VoucherBase {\n"); + 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"); @@ -201,8 +409,16 @@ public override string ToString() 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(); } @@ -223,20 +439,35 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as VoucherBase); + return this.Equals(input as UpdateVoucher); } /// - /// Returns true if VoucherBase instances are equal + /// Returns true if UpdateVoucher instances are equal /// - /// Instance of VoucherBase to be compared + /// Instance of UpdateVoucher to be compared /// Boolean - public bool Equals(VoucherBase input) + 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 && @@ -247,6 +478,11 @@ public bool Equals(VoucherBase input) (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 && @@ -307,6 +543,21 @@ public bool Equals(VoucherBase input) (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 && @@ -316,6 +567,31 @@ public bool Equals(VoucherBase input) 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)) ); } @@ -328,10 +604,18 @@ 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) @@ -356,10 +640,26 @@ public override int GetHashCode() 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 index 1946626d..0422539b 100644 --- a/src/Flipdish/Model/UserAnsweredSignupQuestionsEvent.cs +++ b/src/Flipdish/Model/UserAnsweredSignupQuestionsEvent.cs @@ -38,8 +38,11 @@ public partial class UserAnsweredSignupQuestionsEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class UserAnsweredSignupQuestionsEvent : IEquatable @@ -100,6 +106,13 @@ public partial class UserAnsweredSignupQuestionsEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -107,6 +120,20 @@ public partial class UserAnsweredSignupQuestionsEvent : IEquatable + /// 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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(UserAnsweredSignupQuestionsEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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 index 775ddeca..ec8819f2 100644 --- a/src/Flipdish/Model/UserCreatedEvent.cs +++ b/src/Flipdish/Model/UserCreatedEvent.cs @@ -38,8 +38,11 @@ public partial class UserCreatedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class UserCreatedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -100,6 +106,13 @@ public partial class UserCreatedEvent : IEquatable [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 /// @@ -107,6 +120,20 @@ public partial class UserCreatedEvent : IEquatable [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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(UserCreatedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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 index 685560f8..b473b0a2 100644 --- a/src/Flipdish/Model/UserDeletedEvent.cs +++ b/src/Flipdish/Model/UserDeletedEvent.cs @@ -38,8 +38,11 @@ public partial class UserDeletedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class UserDeletedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -100,6 +106,13 @@ public partial class UserDeletedEvent : IEquatable [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 /// @@ -107,6 +120,20 @@ public partial class UserDeletedEvent : IEquatable [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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(UserDeletedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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/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 index 1d6e713e..52f0b564 100644 --- a/src/Flipdish/Model/UserLoginEvent.cs +++ b/src/Flipdish/Model/UserLoginEvent.cs @@ -38,8 +38,11 @@ public partial class UserLoginEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class UserLoginEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -100,6 +106,13 @@ public partial class UserLoginEvent : IEquatable [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 /// @@ -107,6 +120,20 @@ public partial class UserLoginEvent : IEquatable [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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(UserLoginEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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/OrderIngestSubmitOrderResponse.cs b/src/Flipdish/Model/UserMonthlyCommission.cs similarity index 79% rename from src/Flipdish/Model/OrderIngestSubmitOrderResponse.cs rename to src/Flipdish/Model/UserMonthlyCommission.cs index 26f880aa..6d7c0228 100644 --- a/src/Flipdish/Model/OrderIngestSubmitOrderResponse.cs +++ b/src/Flipdish/Model/UserMonthlyCommission.cs @@ -23,16 +23,17 @@ namespace Flipdish.Model { /// - /// OrderIngestSubmitOrderResponse + /// User Monthly Commission /// [DataContract] - public partial class OrderIngestSubmitOrderResponse : IEquatable + public partial class UserMonthlyCommission : IEquatable { /// - /// Defines CurrencyCode + /// The currency in which the commission is paid. /// + /// The currency in which the commission is paid. [JsonConverter(typeof(StringEnumConverter))] - public enum CurrencyCodeEnum + public enum CurrencyEnum { /// @@ -715,67 +716,56 @@ public enum CurrencyCodeEnum } /// - /// Gets or Sets CurrencyCode + /// The currency in which the commission is paid. /// - [DataMember(Name="CurrencyCode", EmitDefaultValue=false)] - public CurrencyCodeEnum? CurrencyCode { get; set; } + /// 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. + /// Initializes a new instance of the class. /// - /// orderId. - /// receiptUrl. - /// currencyCode. - /// totalPrice. - /// deliveryFee. - /// estimatedDeliveryTime. - /// channelOrderId. - public OrderIngestSubmitOrderResponse(int? orderId = default(int?), string receiptUrl = default(string), CurrencyCodeEnum? currencyCode = default(CurrencyCodeEnum?), Price totalPrice = default(Price), Price deliveryFee = default(Price), DateTime? estimatedDeliveryTime = default(DateTime?), string channelOrderId = default(string)) + /// 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.OrderId = orderId; - this.ReceiptUrl = receiptUrl; - this.CurrencyCode = currencyCode; - this.TotalPrice = totalPrice; - this.DeliveryFee = deliveryFee; - this.EstimatedDeliveryTime = estimatedDeliveryTime; - this.ChannelOrderId = channelOrderId; + this.UserId = userId; + this.MonthStart = monthStart; + this.CommissionAmount = commissionAmount; + this.Currency = currency; + this.IsoCurrency = isoCurrency; } /// - /// Gets or Sets OrderId + /// The unique identifier of the user. /// - [DataMember(Name="OrderId", EmitDefaultValue=false)] - public int? OrderId { get; set; } + /// The unique identifier of the user. + [DataMember(Name="UserId", EmitDefaultValue=false)] + public int? UserId { get; set; } /// - /// Gets or Sets ReceiptUrl + /// The start date of the month for which the commission is calculated. /// - [DataMember(Name="ReceiptUrl", EmitDefaultValue=false)] - public string ReceiptUrl { get; set; } - + /// The start date of the month for which the commission is calculated. + [DataMember(Name="MonthStart", EmitDefaultValue=false)] + public DateTime? MonthStart { get; set; } /// - /// Gets or Sets TotalPrice + /// The total commission amount for the user in the specified month. /// - [DataMember(Name="TotalPrice", EmitDefaultValue=false)] - public Price TotalPrice { get; set; } + /// The total commission amount for the user in the specified month. + [DataMember(Name="CommissionAmount", EmitDefaultValue=false)] + public double? CommissionAmount { get; set; } - /// - /// Gets or Sets DeliveryFee - /// - [DataMember(Name="DeliveryFee", EmitDefaultValue=false)] - public Price DeliveryFee { get; set; } - - /// - /// Gets or Sets EstimatedDeliveryTime - /// - [DataMember(Name="EstimatedDeliveryTime", EmitDefaultValue=false)] - public DateTime? EstimatedDeliveryTime { get; set; } /// - /// Gets or Sets ChannelOrderId + /// The ISO currency code for the commission currency. /// - [DataMember(Name="ChannelOrderId", EmitDefaultValue=false)] - public string ChannelOrderId { get; set; } + /// 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 @@ -784,14 +774,12 @@ public enum CurrencyCodeEnum public override string ToString() { var sb = new StringBuilder(); - sb.Append("class OrderIngestSubmitOrderResponse {\n"); - sb.Append(" OrderId: ").Append(OrderId).Append("\n"); - sb.Append(" ReceiptUrl: ").Append(ReceiptUrl).Append("\n"); - sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n"); - sb.Append(" TotalPrice: ").Append(TotalPrice).Append("\n"); - sb.Append(" DeliveryFee: ").Append(DeliveryFee).Append("\n"); - sb.Append(" EstimatedDeliveryTime: ").Append(EstimatedDeliveryTime).Append("\n"); - sb.Append(" ChannelOrderId: ").Append(ChannelOrderId).Append("\n"); + 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(); } @@ -812,54 +800,44 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as OrderIngestSubmitOrderResponse); + return this.Equals(input as UserMonthlyCommission); } /// - /// Returns true if OrderIngestSubmitOrderResponse instances are equal + /// Returns true if UserMonthlyCommission instances are equal /// - /// Instance of OrderIngestSubmitOrderResponse to be compared + /// Instance of UserMonthlyCommission to be compared /// Boolean - public bool Equals(OrderIngestSubmitOrderResponse input) + public bool Equals(UserMonthlyCommission input) { if (input == null) return false; return ( - this.OrderId == input.OrderId || - (this.OrderId != null && - this.OrderId.Equals(input.OrderId)) - ) && - ( - this.ReceiptUrl == input.ReceiptUrl || - (this.ReceiptUrl != null && - this.ReceiptUrl.Equals(input.ReceiptUrl)) - ) && - ( - this.CurrencyCode == input.CurrencyCode || - (this.CurrencyCode != null && - this.CurrencyCode.Equals(input.CurrencyCode)) + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) ) && ( - this.TotalPrice == input.TotalPrice || - (this.TotalPrice != null && - this.TotalPrice.Equals(input.TotalPrice)) + this.MonthStart == input.MonthStart || + (this.MonthStart != null && + this.MonthStart.Equals(input.MonthStart)) ) && ( - this.DeliveryFee == input.DeliveryFee || - (this.DeliveryFee != null && - this.DeliveryFee.Equals(input.DeliveryFee)) + this.CommissionAmount == input.CommissionAmount || + (this.CommissionAmount != null && + this.CommissionAmount.Equals(input.CommissionAmount)) ) && ( - this.EstimatedDeliveryTime == input.EstimatedDeliveryTime || - (this.EstimatedDeliveryTime != null && - this.EstimatedDeliveryTime.Equals(input.EstimatedDeliveryTime)) + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) ) && ( - this.ChannelOrderId == input.ChannelOrderId || - (this.ChannelOrderId != null && - this.ChannelOrderId.Equals(input.ChannelOrderId)) + this.IsoCurrency == input.IsoCurrency || + (this.IsoCurrency != null && + this.IsoCurrency.Equals(input.IsoCurrency)) ); } @@ -872,20 +850,16 @@ 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.ReceiptUrl != null) - hashCode = hashCode * 59 + this.ReceiptUrl.GetHashCode(); - if (this.CurrencyCode != null) - hashCode = hashCode * 59 + this.CurrencyCode.GetHashCode(); - if (this.TotalPrice != null) - hashCode = hashCode * 59 + this.TotalPrice.GetHashCode(); - if (this.DeliveryFee != null) - hashCode = hashCode * 59 + this.DeliveryFee.GetHashCode(); - if (this.EstimatedDeliveryTime != null) - hashCode = hashCode * 59 + this.EstimatedDeliveryTime.GetHashCode(); - if (this.ChannelOrderId != null) - hashCode = hashCode * 59 + this.ChannelOrderId.GetHashCode(); + 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 index 6125aef4..d1be959b 100644 --- a/src/Flipdish/Model/UserPasswordCreatedEvent.cs +++ b/src/Flipdish/Model/UserPasswordCreatedEvent.cs @@ -38,8 +38,11 @@ public partial class UserPasswordCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class UserPasswordCreatedEvent : IEquatable @@ -100,6 +106,13 @@ public partial class UserPasswordCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -107,6 +120,20 @@ public partial class UserPasswordCreatedEvent : IEquatable + /// 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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(UserPasswordCreatedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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/DriverStore.cs b/src/Flipdish/Model/UserStoreInfo.cs similarity index 62% rename from src/Flipdish/Model/DriverStore.cs rename to src/Flipdish/Model/UserStoreInfo.cs index 47953407..fa30e87c 100644 --- a/src/Flipdish/Model/DriverStore.cs +++ b/src/Flipdish/Model/UserStoreInfo.cs @@ -23,66 +23,45 @@ namespace Flipdish.Model { /// - /// DriverStore + /// Stores that the user is associated with /// [DataContract] - public partial class DriverStore : IEquatable + public partial class UserStoreInfo : IEquatable { /// - /// Presence + /// Initializes a new instance of the class. /// - /// Presence - [JsonConverter(typeof(StringEnumConverter))] - public enum PresenceEnum - { - - /// - /// Enum Offline for value: Offline - /// - [EnumMember(Value = "Offline")] - Offline = 1, - - /// - /// Enum Online for value: Online - /// - [EnumMember(Value = "Online")] - Online = 2 - } - - /// - /// Presence - /// - /// Presence - [DataMember(Name="Presence", EmitDefaultValue=false)] - public PresenceEnum? Presence { get; set; } - /// - /// Initializes a new instance of the class. - /// - /// Store identifier. - /// Store name. - /// Presence. - public DriverStore(int? storeId = default(int?), string storeName = default(string), PresenceEnum? presence = default(PresenceEnum?)) + /// 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; - this.Presence = presence; } /// - /// Store identifier + /// Property Id /// - /// Store identifier + /// 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 /// - /// Store name + /// Store Name [DataMember(Name="StoreName", EmitDefaultValue=false)] public string StoreName { get; set; } - /// /// Returns the string presentation of the object /// @@ -90,10 +69,10 @@ public enum PresenceEnum public override string ToString() { var sb = new StringBuilder(); - sb.Append("class DriverStore {\n"); + 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(" Presence: ").Append(Presence).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -114,20 +93,25 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as DriverStore); + return this.Equals(input as UserStoreInfo); } /// - /// Returns true if DriverStore instances are equal + /// Returns true if UserStoreInfo instances are equal /// - /// Instance of DriverStore to be compared + /// Instance of UserStoreInfo to be compared /// Boolean - public bool Equals(DriverStore input) + 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 && @@ -137,11 +121,6 @@ public bool Equals(DriverStore input) this.StoreName == input.StoreName || (this.StoreName != null && this.StoreName.Equals(input.StoreName)) - ) && - ( - this.Presence == input.Presence || - (this.Presence != null && - this.Presence.Equals(input.Presence)) ); } @@ -154,12 +133,12 @@ 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(); - if (this.Presence != null) - hashCode = hashCode * 59 + this.Presence.GetHashCode(); return hashCode; } } diff --git a/src/Flipdish/Model/UserUpdatedEvent.cs b/src/Flipdish/Model/UserUpdatedEvent.cs index 8884163d..eb5eda86 100644 --- a/src/Flipdish/Model/UserUpdatedEvent.cs +++ b/src/Flipdish/Model/UserUpdatedEvent.cs @@ -38,8 +38,11 @@ public partial class UserUpdatedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -48,7 +51,10 @@ public partial class UserUpdatedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -100,6 +106,13 @@ public partial class UserUpdatedEvent : IEquatable [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 /// @@ -107,6 +120,20 @@ public partial class UserUpdatedEvent : IEquatable [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 /// @@ -122,7 +149,10 @@ public override string ToString() 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(); } @@ -192,10 +222,25 @@ public bool Equals(UserUpdatedEvent input) (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)) ); } @@ -222,8 +267,14 @@ public override int GetHashCode() 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 index 2d5bab13..92f9f05b 100644 --- a/src/Flipdish/Model/ValidValue.cs +++ b/src/Flipdish/Model/ValidValue.cs @@ -23,7 +23,7 @@ namespace Flipdish.Model { /// - /// Valid Value + /// ValidValue /// [DataContract] public partial class ValidValue : IEquatable @@ -36,8 +36,8 @@ protected ValidValue() { } /// /// Initializes a new instance of the class. /// - /// Code (required). - /// Name (required). + /// code (required). + /// name (required). public ValidValue(string code = default(string), string name = default(string)) { // to ensure "code" is required (not null) @@ -61,16 +61,14 @@ protected ValidValue() { } } /// - /// Code + /// Gets or Sets Code /// - /// Code [DataMember(Name="Code", EmitDefaultValue=false)] public string Code { get; set; } /// - /// Name + /// Gets or Sets Name /// - /// Name [DataMember(Name="Name", EmitDefaultValue=false)] public string Name { get; set; } 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 index 9ad72ee0..13564d93 100644 --- a/src/Flipdish/Model/Voucher.cs +++ b/src/Flipdish/Model/Voucher.cs @@ -103,7 +103,13 @@ public enum VoucherTypeEnum /// Enum CreditNote for value: CreditNote /// [EnumMember(Value = "CreditNote")] - CreditNote = 4 + CreditNote = 4, + + /// + /// Enum FreeDelivery for value: FreeDelivery + /// + [EnumMember(Value = "FreeDelivery")] + FreeDelivery = 5 } /// @@ -113,63 +119,6 @@ public enum VoucherTypeEnum [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; } - /// /// Currency of the voucher /// /// Currency of the voucher @@ -863,21 +812,128 @@ public enum CurrencyEnum [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. - /// Voucher Sub Type. /// Currency of the voucher. - /// Stores that this voucher applies to. /// Stores that this voucher applies to. - /// Add item details. + /// 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. @@ -890,23 +946,30 @@ public enum CurrencyEnum /// 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). - public Voucher(int? voucherId = default(int?), StatusEnum? status = default(StatusEnum?), VoucherTypeEnum? voucherType = default(VoucherTypeEnum?), VoucherSubTypeEnum? voucherSubType = default(VoucherSubTypeEnum?), CurrencyEnum? currency = default(CurrencyEnum?), List stores = default(List), List storeNames = default(List), AddItemDetails addItemDetails = default(AddItemDetails), CreditNoteDetails creditNoteDetails = default(CreditNoteDetails), LumpDiscountDetails lumpDiscountDetails = default(LumpDiscountDetails), PercentDiscountDetails percentDiscountDetails = default(PercentDiscountDetails), string code = default(string), string description = default(string), 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?), DateTime? startDate = default(DateTime?), DateTime? expiryDate = default(DateTime?)) + /// 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.VoucherSubType = voucherSubType; this.Currency = currency; - this.Stores = stores; this.StoreNames = storeNames; - this.AddItemDetails = addItemDetails; + 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; @@ -919,8 +982,16 @@ public enum CurrencyEnum 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; } /// @@ -933,14 +1004,6 @@ public enum CurrencyEnum - - /// - /// Stores that this voucher applies to - /// - /// Stores that this voucher applies to - [DataMember(Name="Stores", EmitDefaultValue=false)] - public List Stores { get; set; } - /// /// Stores that this voucher applies to /// @@ -949,11 +1012,11 @@ public enum CurrencyEnum public List StoreNames { get; set; } /// - /// Add item details + /// Promotion details /// - /// Add item details - [DataMember(Name="AddItemDetails", EmitDefaultValue=false)] - public AddItemDetails AddItemDetails { get; set; } + /// Promotion details + [DataMember(Name="PromotionDetails", EmitDefaultValue=false)] + public PromotionDetails PromotionDetails { get; set; } /// /// Credit note details @@ -990,6 +1053,13 @@ public enum CurrencyEnum [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 /// @@ -1074,6 +1144,27 @@ public enum CurrencyEnum [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) /// @@ -1088,6 +1179,29 @@ public enum CurrencyEnum [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 /// @@ -1099,16 +1213,15 @@ public override string ToString() sb.Append(" VoucherId: ").Append(VoucherId).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(" Currency: ").Append(Currency).Append("\n"); - sb.Append(" Stores: ").Append(Stores).Append("\n"); sb.Append(" StoreNames: ").Append(StoreNames).Append("\n"); - sb.Append(" AddItemDetails: ").Append(AddItemDetails).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"); @@ -1121,8 +1234,16 @@ public override string ToString() 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(); } @@ -1172,30 +1293,20 @@ public bool Equals(Voucher input) (this.VoucherType != null && this.VoucherType.Equals(input.VoucherType)) ) && - ( - this.VoucherSubType == input.VoucherSubType || - (this.VoucherSubType != null && - this.VoucherSubType.Equals(input.VoucherSubType)) - ) && ( this.Currency == input.Currency || (this.Currency != null && this.Currency.Equals(input.Currency)) ) && - ( - this.Stores == input.Stores || - this.Stores != null && - this.Stores.SequenceEqual(input.Stores) - ) && ( this.StoreNames == input.StoreNames || this.StoreNames != null && this.StoreNames.SequenceEqual(input.StoreNames) ) && ( - this.AddItemDetails == input.AddItemDetails || - (this.AddItemDetails != null && - this.AddItemDetails.Equals(input.AddItemDetails)) + this.PromotionDetails == input.PromotionDetails || + (this.PromotionDetails != null && + this.PromotionDetails.Equals(input.PromotionDetails)) ) && ( this.CreditNoteDetails == input.CreditNoteDetails || @@ -1222,6 +1333,11 @@ public bool Equals(Voucher input) (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 && @@ -1282,6 +1398,21 @@ public bool Equals(Voucher input) (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 && @@ -1291,6 +1422,31 @@ public bool Equals(Voucher input) 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)) ); } @@ -1309,16 +1465,12 @@ public override int GetHashCode() 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.Currency != null) hashCode = hashCode * 59 + this.Currency.GetHashCode(); - if (this.Stores != null) - hashCode = hashCode * 59 + this.Stores.GetHashCode(); if (this.StoreNames != null) hashCode = hashCode * 59 + this.StoreNames.GetHashCode(); - if (this.AddItemDetails != null) - hashCode = hashCode * 59 + this.AddItemDetails.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) @@ -1329,6 +1481,8 @@ public override int GetHashCode() 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) @@ -1353,10 +1507,26 @@ public override int GetHashCode() 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 index cc9082a1..24060b24 100644 --- a/src/Flipdish/Model/VoucherCreatedEvent.cs +++ b/src/Flipdish/Model/VoucherCreatedEvent.cs @@ -40,8 +40,11 @@ public partial class VoucherCreatedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class VoucherCreatedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -118,6 +124,13 @@ public partial class VoucherCreatedEvent : IEquatable [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 /// @@ -125,6 +138,20 @@ public partial class VoucherCreatedEvent : IEquatable [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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(VoucherCreatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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/VoucherDeletedEvent.cs b/src/Flipdish/Model/VoucherDeletedEvent.cs index 12db75cd..5ab212bf 100644 --- a/src/Flipdish/Model/VoucherDeletedEvent.cs +++ b/src/Flipdish/Model/VoucherDeletedEvent.cs @@ -40,8 +40,11 @@ public partial class VoucherDeletedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class VoucherDeletedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -118,6 +124,13 @@ public partial class VoucherDeletedEvent : IEquatable [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 /// @@ -125,6 +138,20 @@ public partial class VoucherDeletedEvent : IEquatable [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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(VoucherDeletedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index ed3d70c1..816f19d1 100644 --- a/src/Flipdish/Model/VoucherSummary.cs +++ b/src/Flipdish/Model/VoucherSummary.cs @@ -103,7 +103,13 @@ public enum VoucherTypeEnum /// Enum CreditNote for value: CreditNote /// [EnumMember(Value = "CreditNote")] - CreditNote = 4 + CreditNote = 4, + + /// + /// Enum FreeDelivery for value: FreeDelivery + /// + [EnumMember(Value = "FreeDelivery")] + FreeDelivery = 5 } /// @@ -170,6 +176,57 @@ public enum VoucherSubTypeEnum [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. @@ -179,7 +236,11 @@ public enum VoucherSubTypeEnum /// Voucher Sub Type. /// Voucher Description (Visible on printout). /// Is voucher enabled. - 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?)) + /// 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; @@ -188,6 +249,10 @@ public enum VoucherSubTypeEnum this.VoucherSubType = voucherSubType; this.Description = description; this.IsEnabled = isEnabled; + this.IsPromoted = isPromoted; + this.StoreNames = storeNames; + this.IsAvailableOnAllStores = isAvailableOnAllStores; + this.ChannelRestrictions = channelRestrictions; } /// @@ -221,6 +286,28 @@ public enum VoucherSubTypeEnum [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 /// @@ -236,6 +323,10 @@ public override string ToString() 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(); } @@ -304,6 +395,26 @@ public bool Equals(VoucherSummary input) 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) ); } @@ -330,6 +441,14 @@ public override int GetHashCode() 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 index 5c263f61..babf3f3e 100644 --- a/src/Flipdish/Model/VoucherUpdatedEvent.cs +++ b/src/Flipdish/Model/VoucherUpdatedEvent.cs @@ -40,8 +40,11 @@ public partial class VoucherUpdatedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -52,7 +55,10 @@ public partial class VoucherUpdatedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -118,6 +124,13 @@ public partial class VoucherUpdatedEvent : IEquatable [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 /// @@ -125,6 +138,20 @@ public partial class VoucherUpdatedEvent : IEquatable [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 /// @@ -142,7 +169,10 @@ public override string ToString() 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(); } @@ -222,10 +252,25 @@ public bool Equals(VoucherUpdatedEvent input) (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)) ); } @@ -256,8 +301,14 @@ public override int GetHashCode() 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 index 0c1bb1e7..52491759 100644 --- a/src/Flipdish/Model/VoucherWithStats.cs +++ b/src/Flipdish/Model/VoucherWithStats.cs @@ -103,7 +103,13 @@ public enum VoucherTypeEnum /// Enum CreditNote for value: CreditNote /// [EnumMember(Value = "CreditNote")] - CreditNote = 4 + CreditNote = 4, + + /// + /// Enum FreeDelivery for value: FreeDelivery + /// + [EnumMember(Value = "FreeDelivery")] + FreeDelivery = 5 } /// @@ -113,63 +119,6 @@ public enum VoucherTypeEnum [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; } - /// /// Currency of the voucher /// /// Currency of the voucher @@ -863,6 +812,114 @@ public enum CurrencyEnum [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. @@ -873,16 +930,15 @@ public enum CurrencyEnum /// Voucher Id. /// Voucher Status. /// Voucher Type. - /// Voucher Sub Type. /// Currency of the voucher. - /// Stores that this voucher applies to. /// Stores that this voucher applies to. - /// Add item details. + /// 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. @@ -895,9 +951,17 @@ public enum CurrencyEnum /// 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). - 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?), VoucherSubTypeEnum? voucherSubType = default(VoucherSubTypeEnum?), CurrencyEnum? currency = default(CurrencyEnum?), List stores = default(List), List storeNames = default(List), AddItemDetails addItemDetails = default(AddItemDetails), CreditNoteDetails creditNoteDetails = default(CreditNoteDetails), LumpDiscountDetails lumpDiscountDetails = default(LumpDiscountDetails), PercentDiscountDetails percentDiscountDetails = default(PercentDiscountDetails), string code = default(string), string description = default(string), 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?), DateTime? startDate = default(DateTime?), DateTime? expiryDate = default(DateTime?)) + /// 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; @@ -907,16 +971,15 @@ public enum CurrencyEnum this.VoucherId = voucherId; this.Status = status; this.VoucherType = voucherType; - this.VoucherSubType = voucherSubType; this.Currency = currency; - this.Stores = stores; this.StoreNames = storeNames; - this.AddItemDetails = addItemDetails; + 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; @@ -929,8 +992,16 @@ public enum CurrencyEnum 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; } /// @@ -978,14 +1049,6 @@ public enum CurrencyEnum - - /// - /// Stores that this voucher applies to - /// - /// Stores that this voucher applies to - [DataMember(Name="Stores", EmitDefaultValue=false)] - public List Stores { get; set; } - /// /// Stores that this voucher applies to /// @@ -994,11 +1057,11 @@ public enum CurrencyEnum public List StoreNames { get; set; } /// - /// Add item details + /// Promotion details /// - /// Add item details - [DataMember(Name="AddItemDetails", EmitDefaultValue=false)] - public AddItemDetails AddItemDetails { get; set; } + /// Promotion details + [DataMember(Name="PromotionDetails", EmitDefaultValue=false)] + public PromotionDetails PromotionDetails { get; set; } /// /// Credit note details @@ -1035,6 +1098,13 @@ public enum CurrencyEnum [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 /// @@ -1119,6 +1189,27 @@ public enum CurrencyEnum [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) /// @@ -1133,6 +1224,29 @@ public enum CurrencyEnum [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 /// @@ -1149,16 +1263,15 @@ public override string ToString() sb.Append(" VoucherId: ").Append(VoucherId).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(" Currency: ").Append(Currency).Append("\n"); - sb.Append(" Stores: ").Append(Stores).Append("\n"); sb.Append(" StoreNames: ").Append(StoreNames).Append("\n"); - sb.Append(" AddItemDetails: ").Append(AddItemDetails).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"); @@ -1171,8 +1284,16 @@ public override string ToString() 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(); } @@ -1247,30 +1368,20 @@ public bool Equals(VoucherWithStats input) (this.VoucherType != null && this.VoucherType.Equals(input.VoucherType)) ) && - ( - this.VoucherSubType == input.VoucherSubType || - (this.VoucherSubType != null && - this.VoucherSubType.Equals(input.VoucherSubType)) - ) && ( this.Currency == input.Currency || (this.Currency != null && this.Currency.Equals(input.Currency)) ) && - ( - this.Stores == input.Stores || - this.Stores != null && - this.Stores.SequenceEqual(input.Stores) - ) && ( this.StoreNames == input.StoreNames || this.StoreNames != null && this.StoreNames.SequenceEqual(input.StoreNames) ) && ( - this.AddItemDetails == input.AddItemDetails || - (this.AddItemDetails != null && - this.AddItemDetails.Equals(input.AddItemDetails)) + this.PromotionDetails == input.PromotionDetails || + (this.PromotionDetails != null && + this.PromotionDetails.Equals(input.PromotionDetails)) ) && ( this.CreditNoteDetails == input.CreditNoteDetails || @@ -1297,6 +1408,11 @@ public bool Equals(VoucherWithStats input) (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 && @@ -1357,6 +1473,21 @@ public bool Equals(VoucherWithStats input) (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 && @@ -1366,6 +1497,31 @@ public bool Equals(VoucherWithStats input) 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)) ); } @@ -1394,16 +1550,12 @@ public override int GetHashCode() 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.Currency != null) hashCode = hashCode * 59 + this.Currency.GetHashCode(); - if (this.Stores != null) - hashCode = hashCode * 59 + this.Stores.GetHashCode(); if (this.StoreNames != null) hashCode = hashCode * 59 + this.StoreNames.GetHashCode(); - if (this.AddItemDetails != null) - hashCode = hashCode * 59 + this.AddItemDetails.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) @@ -1414,6 +1566,8 @@ public override int GetHashCode() 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) @@ -1438,10 +1592,26 @@ public override int GetHashCode() 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/WebhookSubscriptionCreatedEvent.cs b/src/Flipdish/Model/WebhookSubscriptionCreatedEvent.cs index 8ef28275..4341a915 100644 --- a/src/Flipdish/Model/WebhookSubscriptionCreatedEvent.cs +++ b/src/Flipdish/Model/WebhookSubscriptionCreatedEvent.cs @@ -37,8 +37,11 @@ public partial class WebhookSubscriptionCreatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -46,7 +49,10 @@ public partial class WebhookSubscriptionCreatedEvent : IEquatable @@ -91,6 +97,13 @@ public partial class WebhookSubscriptionCreatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -98,6 +111,20 @@ public partial class WebhookSubscriptionCreatedEvent : IEquatable + /// 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 /// @@ -112,7 +139,10 @@ public override string ToString() 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(); } @@ -177,10 +207,25 @@ public bool Equals(WebhookSubscriptionCreatedEvent input) (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)) ); } @@ -205,8 +250,14 @@ public override int GetHashCode() 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 index ae6176f8..36af97b2 100644 --- a/src/Flipdish/Model/WebhookSubscriptionDeletedEvent.cs +++ b/src/Flipdish/Model/WebhookSubscriptionDeletedEvent.cs @@ -37,8 +37,11 @@ public partial class WebhookSubscriptionDeletedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -46,7 +49,10 @@ public partial class WebhookSubscriptionDeletedEvent : IEquatable @@ -91,6 +97,13 @@ public partial class WebhookSubscriptionDeletedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -98,6 +111,20 @@ public partial class WebhookSubscriptionDeletedEvent : IEquatable + /// 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 /// @@ -112,7 +139,10 @@ public override string ToString() 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(); } @@ -177,10 +207,25 @@ public bool Equals(WebhookSubscriptionDeletedEvent input) (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)) ); } @@ -205,8 +250,14 @@ public override int GetHashCode() 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/WebhookSubscriptionUpdatedEvent.cs b/src/Flipdish/Model/WebhookSubscriptionUpdatedEvent.cs index 8b5cde83..b78e3537 100644 --- a/src/Flipdish/Model/WebhookSubscriptionUpdatedEvent.cs +++ b/src/Flipdish/Model/WebhookSubscriptionUpdatedEvent.cs @@ -37,8 +37,11 @@ public partial class WebhookSubscriptionUpdatedEvent : IEquatableThe time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -46,7 +49,10 @@ public partial class WebhookSubscriptionUpdatedEvent : IEquatable @@ -91,6 +97,13 @@ public partial class WebhookSubscriptionUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -98,6 +111,20 @@ public partial class WebhookSubscriptionUpdatedEvent : IEquatable + /// 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 /// @@ -112,7 +139,10 @@ public override string ToString() 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(); } @@ -177,10 +207,25 @@ public bool Equals(WebhookSubscriptionUpdatedEvent input) (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)) ); } @@ -205,8 +250,14 @@ public override int GetHashCode() 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/WebsiteUpdatedEvent.cs b/src/Flipdish/Model/WebsiteUpdatedEvent.cs index 3e8e67af..3588bb24 100644 --- a/src/Flipdish/Model/WebsiteUpdatedEvent.cs +++ b/src/Flipdish/Model/WebsiteUpdatedEvent.cs @@ -39,8 +39,11 @@ public partial class WebsiteUpdatedEvent : IEquatable /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - 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 ipAddress = default(string)) + /// 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; @@ -50,7 +53,10 @@ public partial class WebsiteUpdatedEvent : IEquatable this.CreateTime = createTime; this.Position = position; this.AppId = appId; + this.OrgId = orgId; this.IpAddress = ipAddress; + this.ActivityId = activityId; + this.ActivityType = activityType; } /// @@ -109,6 +115,13 @@ public partial class WebsiteUpdatedEvent : IEquatable [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 /// @@ -116,6 +129,20 @@ public partial class WebsiteUpdatedEvent : IEquatable [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 /// @@ -132,7 +159,10 @@ public override string ToString() 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(); } @@ -207,10 +237,25 @@ public bool Equals(WebsiteUpdatedEvent input) (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)) ); } @@ -239,8 +284,14 @@ public override int GetHashCode() 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 index 84f6438b..c18b7aba 100644 --- a/src/Flipdish/Model/WebsiteVanityUrlUpdatedEvent.cs +++ b/src/Flipdish/Model/WebsiteVanityUrlUpdatedEvent.cs @@ -31,28 +31,41 @@ 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 event name. /// The identitfier of the event. /// The time of creation of the event. /// Position. /// App id. + /// Org id. /// Ip Address. - public WebsiteVanityUrlUpdatedEvent(string description = default(string), UserEventInfo user = default(UserEventInfo), string vanityUrl = default(string), string eventName = default(string), Guid? flipdishEventId = default(Guid?), DateTime? createTime = default(DateTime?), int? position = default(int?), string appId = default(string), string ipAddress = default(string)) + /// 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.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; } + /// /// Description /// @@ -74,13 +87,6 @@ public partial class WebsiteVanityUrlUpdatedEvent : IEquatable - /// The event name - /// - /// The event name - [DataMember(Name="EventName", EmitDefaultValue=false)] - public string EventName { get; set; } - /// /// The identitfier of the event /// @@ -109,6 +115,13 @@ public partial class WebsiteVanityUrlUpdatedEvent : IEquatable + /// Org id + /// + /// Org id + [DataMember(Name="OrgId", EmitDefaultValue=false)] + public string OrgId { get; set; } + /// /// Ip Address /// @@ -116,6 +129,20 @@ public partial class WebsiteVanityUrlUpdatedEvent : IEquatable + /// 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 /// @@ -124,15 +151,18 @@ 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(" 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(); } @@ -167,6 +197,11 @@ public bool Equals(WebsiteVanityUrlUpdatedEvent input) return false; return + ( + this.EventName == input.EventName || + (this.EventName != null && + this.EventName.Equals(input.EventName)) + ) && ( this.Description == input.Description || (this.Description != null && @@ -182,11 +217,6 @@ public bool Equals(WebsiteVanityUrlUpdatedEvent input) (this.VanityUrl != null && this.VanityUrl.Equals(input.VanityUrl)) ) && - ( - this.EventName == input.EventName || - (this.EventName != null && - this.EventName.Equals(input.EventName)) - ) && ( this.FlipdishEventId == input.FlipdishEventId || (this.FlipdishEventId != null && @@ -207,10 +237,25 @@ public bool Equals(WebsiteVanityUrlUpdatedEvent input) (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)) ); } @@ -223,14 +268,14 @@ 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.EventName != null) - hashCode = hashCode * 59 + this.EventName.GetHashCode(); if (this.FlipdishEventId != null) hashCode = hashCode * 59 + this.FlipdishEventId.GetHashCode(); if (this.CreateTime != null) @@ -239,8 +284,14 @@ public override int GetHashCode() 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/RequestLoginPinResposne.cs b/src/Flipdish/Model/WhiteLabelLanguageModel.cs similarity index 60% rename from src/Flipdish/Model/RequestLoginPinResposne.cs rename to src/Flipdish/Model/WhiteLabelLanguageModel.cs index 63061c8c..1d853077 100644 --- a/src/Flipdish/Model/RequestLoginPinResposne.cs +++ b/src/Flipdish/Model/WhiteLabelLanguageModel.cs @@ -23,26 +23,26 @@ namespace Flipdish.Model { /// - /// Request login PIN response + /// White label language model /// [DataContract] - public partial class RequestLoginPinResposne : IEquatable + public partial class WhiteLabelLanguageModel : IEquatable { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Login PIN sent via email to user. - public RequestLoginPinResposne(bool? loginPinSentViaEmail = default(bool?)) + /// Language ID. + public WhiteLabelLanguageModel(string languageId = default(string)) { - this.LoginPinSentViaEmail = loginPinSentViaEmail; + this.LanguageId = languageId; } /// - /// Login PIN sent via email to user + /// Language ID /// - /// Login PIN sent via email to user - [DataMember(Name="LoginPinSentViaEmail", EmitDefaultValue=false)] - public bool? LoginPinSentViaEmail { get; set; } + /// Language ID + [DataMember(Name="LanguageId", EmitDefaultValue=false)] + public string LanguageId { get; set; } /// /// Returns the string presentation of the object @@ -51,8 +51,8 @@ public partial class RequestLoginPinResposne : IEquatableBoolean public override bool Equals(object input) { - return this.Equals(input as RequestLoginPinResposne); + return this.Equals(input as WhiteLabelLanguageModel); } /// - /// Returns true if RequestLoginPinResposne instances are equal + /// Returns true if WhiteLabelLanguageModel instances are equal /// - /// Instance of RequestLoginPinResposne to be compared + /// Instance of WhiteLabelLanguageModel to be compared /// Boolean - public bool Equals(RequestLoginPinResposne input) + public bool Equals(WhiteLabelLanguageModel input) { if (input == null) return false; return ( - this.LoginPinSentViaEmail == input.LoginPinSentViaEmail || - (this.LoginPinSentViaEmail != null && - this.LoginPinSentViaEmail.Equals(input.LoginPinSentViaEmail)) + this.LanguageId == input.LanguageId || + (this.LanguageId != null && + this.LanguageId.Equals(input.LanguageId)) ); } @@ -103,8 +103,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.LoginPinSentViaEmail != null) - hashCode = hashCode * 59 + this.LoginPinSentViaEmail.GetHashCode(); + if (this.LanguageId != null) + hashCode = hashCode * 59 + this.LanguageId.GetHashCode(); return hashCode; } }